mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
* initial llvm16 rework * update openmp * start i686 builds * fix getrealdeps grep with multiple exclusions * fix crew conflicts handling _build packages, fix getrealdeps handling _build packages * add more libs to gcc_lib * update libssp * add armv7 builds * add builds * suggested changes * update rubocop
64 lines
2.2 KiB
Ruby
64 lines
2.2 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 '3.26.3'
|
|
license 'CMake'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/Kitware/CMake.git'
|
|
git_hashtag "v#{version}"
|
|
|
|
binary_url({
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/cmake/3.26.3_armv7l/cmake-3.26.3-chromeos-armv7l.tar.zst',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/cmake/3.26.3_armv7l/cmake-3.26.3-chromeos-armv7l.tar.zst',
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/cmake/3.26.3_i686/cmake-3.26.3-chromeos-i686.tar.zst',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/cmake/3.26.3_x86_64/cmake-3.26.3-chromeos-x86_64.tar.zst'
|
|
})
|
|
binary_sha256({
|
|
aarch64: 'd34f102d0a7a780cbb62c36fad3be03e36cb645b4d9a3dbcf08f887bfc2b0f53',
|
|
armv7l: 'd34f102d0a7a780cbb62c36fad3be03e36cb645b4d9a3dbcf08f887bfc2b0f53',
|
|
i686: 'dbdb8eb039fce12920255b85229f979cfb33b5d848b3810afe9ee97a8b8ca7dc',
|
|
x86_64: '7606cedd3efc463333b9a9360d98570bd65acbf32b9bc0f65feccf4e871eac8d'
|
|
})
|
|
|
|
depends_on 'bz2'
|
|
depends_on 'curl'
|
|
depends_on 'expat'
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'jsoncpp'
|
|
depends_on 'libarchive'
|
|
depends_on 'libnghttp2'
|
|
depends_on 'librhash'
|
|
depends_on 'libuv'
|
|
depends_on 'llvm16_lib' => :build
|
|
depends_on 'ncurses' # R
|
|
depends_on 'xzutils'
|
|
depends_on 'zlibpkg'
|
|
depends_on 'zstd'
|
|
|
|
def self.build
|
|
system "mold -run cmake -B builddir \
|
|
-G Ninja \
|
|
#{CREW_CMAKE_OPTIONS} \
|
|
-DCMAKE_USE_SYSTEM_LIBRARIES=ON \
|
|
-DBUILD_QtDialog=NO"
|
|
system "#{CREW_NINJA} -C builddir"
|
|
end
|
|
|
|
# Failed tests:
|
|
# BundleUtilities (armv7l,x86_64)
|
|
# BootstrapTest (armv7l,i686,x86_64)
|
|
# CustomCommand (armv7l)
|
|
# RunCMake.CMakeRelease (armv7l,i686,x86_64)
|
|
def self.check
|
|
system "#{CREW_NINJA} -C builddir test || true"
|
|
end
|
|
|
|
def self.install
|
|
system "DESTDIR=#{CREW_DEST_DIR} #{CREW_NINJA} -C builddir install"
|
|
FileUtils.mv "#{CREW_DEST_PREFIX}/doc/", "#{CREW_DEST_PREFIX}/share/"
|
|
end
|
|
end
|