Files
chromebrew/packages/boost.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* Add binary_compression value to each package

* Remove binary_url values and arrays

* Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
2024-01-25 11:03:31 -05:00

42 lines
1.3 KiB
Ruby

require 'package'
class Boost < Package
description 'Boost provides free peer-reviewed portable C++ source libraries.'
homepage 'https://www.boost.org/'
@_ver = '1.84.0'
version "#{@_ver}-py3.12"
license 'Boost-1.0'
compatibility 'all'
source_url "https://boostorg.jfrog.io/artifactory/main/release/#{@_ver}/source/boost_#{@_ver.gsub('.', '_')}.tar.bz2"
source_sha256 'cc4b893acf645c9d4b698e9a0f08ca8846aa5d6c68275c14c3e7949c24109454'
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'f0861c474039eeec5fcf4c745776db81d7d2566712b6bc28db37f496bb0db4aa',
armv7l: 'f0861c474039eeec5fcf4c745776db81d7d2566712b6bc28db37f496bb0db4aa',
i686: 'e7475427878b8b1e2573bc580c95d27f3d8982aaf257a65cce4cfa310f444104',
x86_64: '47848028e90509037f9bfb0f9996cd1470f6809d12cf07a149d103260d85e295'
})
depends_on 'bzip2' # R
depends_on 'gcc_lib' # R
depends_on 'glibc' # R
depends_on 'icu4c' # R
depends_on 'python3' => :build
depends_on 'xzutils' # R
depends_on 'zlibpkg' # R
depends_on 'zstd' # R
def self.build
system './bootstrap.sh'
end
def self.install
system "./b2 \
--build-dir=${PWD}/builddir \
-a --prefix=#{CREW_DEST_PREFIX} \
--libdir=#{CREW_DEST_LIB_PREFIX} \
install"
end
end