mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
* cmake -> 4.3.1 in updater-cmake-4.3.1 * updater-cmake-4.3.1: Package File Update Run on linux/386 container. * updater-cmake-4.3.1: Package File Update Run on linux/amd64 container. * updater-cmake-4.3.1: Package File Update Run on linux/arm/v7 container. --------- Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
59 lines
1.9 KiB
Ruby
59 lines
1.9 KiB
Ruby
require 'package'
|
|
|
|
class Cmake < Package
|
|
description 'CMake is an open-source, cross-platform family of tools designed to build, test and package software.'
|
|
homepage 'https://cmake.org/'
|
|
version '4.3.1'
|
|
license 'CMake'
|
|
compatibility 'all'
|
|
source_url 'https://gitlab.kitware.com/cmake/cmake.git'
|
|
git_hashtag "v#{version.split('-').first}"
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '1c32aca384253af38a75ac37bda8b0c92ddadfd5830f395e0c94ea5f12e4156a',
|
|
armv7l: '1c32aca384253af38a75ac37bda8b0c92ddadfd5830f395e0c94ea5f12e4156a',
|
|
i686: '06f7c36240846fc7e827fdf7de5264dc60dd2cf11685a697c74719faa78da0ed',
|
|
x86_64: '028057ca55870f54a8dc4af2494326a2bd0083f87eaf0d03c27361397429839d'
|
|
})
|
|
|
|
depends_on 'bzip2' => :build
|
|
depends_on 'cppdap' => :build
|
|
depends_on 'curl' => :build
|
|
depends_on 'expat' => :build
|
|
depends_on 'gcc_lib' => :executable
|
|
depends_on 'glibc' => :executable
|
|
depends_on 'jsoncpp' => :build
|
|
depends_on 'libarchive' => :build
|
|
depends_on 'libidn2' => :executable
|
|
depends_on 'libnghttp2' => :build
|
|
depends_on 'librhash' => :build
|
|
depends_on 'libuv' => :build
|
|
depends_on 'llvm_lib' => :build
|
|
depends_on 'ncurses' => :executable
|
|
depends_on 'openssl' => :executable
|
|
depends_on 'xzutils' => :build
|
|
depends_on 'zlib' => :build
|
|
depends_on 'zstd' => :build
|
|
|
|
def self.build
|
|
FileUtils.mkdir_p 'builddir'
|
|
system '../bootstrap && make', chdir: 'builddir'
|
|
end
|
|
|
|
def self.install
|
|
system "make DESTDIR=#{CREW_DEST_DIR} install", chdir: 'builddir'
|
|
FileUtils.mv "#{CREW_DEST_PREFIX}/doc/", "#{CREW_DEST_PREFIX}/share/"
|
|
end
|
|
|
|
# Failed tests:
|
|
# BundleUtilities (armv7l,x86_64)
|
|
# BootstrapTest (armv7l,i686,x86_64)
|
|
# CMakeLib.testDebuggerNamedPipe-Project (armv7l,i686,x86_64)
|
|
# CMakeLib.testDebuggerNamedPipe-Script (armv7l,i686,x86_64)
|
|
# RunCMake.CMakeRelease (armv7l,i686,x86_64)
|
|
def self.check
|
|
system "#{CREW_NINJA} -C builddir test || true"
|
|
end
|
|
end
|