Files
chromebrew/packages/cmake.rb
2024-06-08 08:51:53 -04:00

58 lines
1.9 KiB
Ruby

require 'buildsystems/cmake'
class Cmake < CMake
description 'CMake is an open-source, cross-platform family of tools designed to build, test and package software.'
homepage 'https://cmake.org/'
version '3.29.5'
license 'CMake'
compatibility 'all'
source_url 'https://github.com/Kitware/CMake.git'
git_hashtag "v#{version}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: '9a8f5c79ebc751cd2ed0f15f2684fd68ffb8a8a553cf6b0f319c53806c08dfda',
armv7l: '9a8f5c79ebc751cd2ed0f15f2684fd68ffb8a8a553cf6b0f319c53806c08dfda',
i686: 'c9991b840d171d40912e0374011186b1becaca24295d4932e8aa5953c66da82c',
x86_64: '31619fdf5e02ee173d5724ac6ed4c79ad0c0d8456df6bd216bc0c28b745170f1'
})
depends_on 'bzip2' => :build
depends_on 'cppdap' # R
depends_on 'curl' # R
depends_on 'expat' # R
depends_on 'gcc_lib' # R
depends_on 'glibc' # R
depends_on 'jsoncpp' # R
depends_on 'libarchive' # R
depends_on 'libnghttp2' => :build
depends_on 'librhash' # R
depends_on 'libuv' # R
depends_on 'llvm18_lib' => :build
depends_on 'ncurses' # R
depends_on 'xzutils' => :build
depends_on 'zlibpkg' # R
depends_on 'zstd' => :build
cmake_options '-DCMAKE_USE_SYSTEM_LIBRARIES=ON \
-DBUILD_QtDialog=NO'
# 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
@current_installed_cmake = `cmake --version | head -n 1 | awk '{print \$3}'`.chomp
return if @current_installed_cmake == version
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