summaryrefslogtreecommitdiff
path: root/dev-util/boost-build
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-08-14 10:30:13 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-08-14 10:30:13 +0100
commit616579b5d773c50af31ee56f00105d96ce641ca2 (patch)
tree2ad4d3ba1429bd93a36ab99a2f5ec3490412115e /dev-util/boost-build
parent068424b26532f3551a81421a9be67ed206e5c11a (diff)
gentoo resync : 14.08.2021
Diffstat (limited to 'dev-util/boost-build')
-rw-r--r--dev-util/boost-build/Manifest3
-rw-r--r--dev-util/boost-build/boost-build-1.77.0.ebuild73
-rw-r--r--dev-util/boost-build/files/boost-build-1.77.0-darwin-gentoo-toolchain.patch26
3 files changed, 102 insertions, 0 deletions
diff --git a/dev-util/boost-build/Manifest b/dev-util/boost-build/Manifest
index c9f98aeeb065..d095a531068e 100644
--- a/dev-util/boost-build/Manifest
+++ b/dev-util/boost-build/Manifest
@@ -5,7 +5,10 @@ AUX boost-build-1.73.0-add-none-feature-options.patch 475 BLAKE2B 5211dbc9188056
AUX boost-build-1.74.0-no-implicit-march-flags.patch 16904 BLAKE2B cd37f24ca075760dd220926b081ab898f0f61e9de22e1dbc119afd5d746f3a7d215065332c96af9f64299e9374d994655d196430ad7deac592a42e7d165b0bdf SHA512 d07b55530d26c63b7453d265e27ba6a1e902f67f2b74e581a0286f563e0b2afa833bbdeb625be1a0beec255ead811eecb10d3a6f45c27cb929dc224430c60a8c
AUX boost-build-1.76.0-python-numpy.patch 791 BLAKE2B 48751f726120b69511e7bbf0f4ff1454218d67de7f61b68127d70da2631f09a76448e5c660bf8d64288a4098331ac3ac4e626f068afeb8cf46cea9f45ae46dbf SHA512 3358c08450c998d665e5fe3599bb7f900acada856f602ab9a592aa1845ea6244a70c56f135fbd45f8c62dcc7fd083b4b026c222d39afdb82b95a532f09308fcc
AUX boost-build-1.76.0-respect-user-flags.patch 456 BLAKE2B 02a383d7a969220da3a40bfe822a807c67734a286f65c3d1dbda18c263593cc6940f5ed260bea1d1ccc20c0726b04859ce2d97c151d10b067206f79d417af237 SHA512 06df6dbf1bc48f224a77ccef202f0cde61c594e6be23418196fbc274bb8e1b6e16a8f2ef9fd45d112cb57af8987df23282e0b1bd4bf4ca6603127b573f54810b
+AUX boost-build-1.77.0-darwin-gentoo-toolchain.patch 646 BLAKE2B 96420764d7504ff08899fa92384180adee851ccba0e9395d4efbe93644a8e505ad9bab6f5a56ef382bbb2ec2ab5cab4d50e35dacab5fde059f8370cdf58491f0 SHA512 029135d74cf046cfae23a2762130da40200819e9edf0df0b4d9ba3e9a787bea69975e3d92540d19d5680ab98a8c7786fa3e44801d675bd8fd943e9e02c13c45d
AUX site-config.jam 688 BLAKE2B e43a7ad1a94d113a7f890e8b634770f5c60556101d428d83f655bbbe72c46b587485886a9941d05a2ae4319fc325f1e0ecfb9b660158b81c5e9fd02e0b1c0530 SHA512 b65bf1be3133f9f66d3139b00f195a288591bb20a13ba35041507c2c33d7d2da6047c3b02dc27bc4eb21798b91e1262a60e294b7fd4af90808b9de0f5af517df
DIST boost_1_76_0.tar.bz2 110073117 BLAKE2B 45445e6a9725cb99131e0b831b2fac0840d083692c13887b41adeac5cb8b3732026db3641d6be20591a676b78a87fcf363eb9b1508f87ed26039bba6a1ced533 SHA512 5d68bed98c57e03b4cb2420d9b856e5f0669561a6142a4b0c9c8a58dc5b6b28e16ccbb16ac559c3a3198c45769a246bf996b96cb7b6a019dd15f05c2270e9429
+DIST boost_1_77_0.tar.bz2 110361537 BLAKE2B 106aeb09ec7705b595f2ca966a76c53c649eac6fac50d88c156862e0991c33c89a2f3a09edcbcb453fa44bf71cdde030b35d0a0889ad97b65f3a868cb877a532 SHA512 39b45c9b60bc5a2a4c669a4463d1272c1e093376b2fb374d7f20a84ea10a3e23bb04b335a735a83a04575731f874d9bff77e89acd947524b3fbbae1b26ae1f2f
EBUILD boost-build-1.76.0-r2.ebuild 2160 BLAKE2B 863623d5adae1f31b70db03ef0259f123037ee1a40117ef9e615e9f2e0da848946a6efa4fff878a8a93dfd8fe987d3b5a64142d0263921712d841fd383869227 SHA512 0793cfbad9c7b9fd8e4e163bceaf3501b09c72f0b41ebbd3b91e5065a47a1d5cf32c623551ecdfeb8101de23bf262455b8c8c48886a3fe16228b872d85f2dcbd
+EBUILD boost-build-1.77.0.ebuild 2121 BLAKE2B 3a413313d8a7897b53f6a3133acbd1533ab697d32dfe63a4038258d4554cefb28d3674d0b1a870bac40fbca9ac78788b2c106b322400e7dbb214535d790b6322 SHA512 d7f7353aceded5dcd7cffa312eb8e4420798e77b8c9fabc6381972757cbb05b24eea88c4bbb58e69b01fa72bd417b8dadc47dd382495a572b58bd1b78cae1b54
MISC metadata.xml 319 BLAKE2B 1033a43af352d26e4a99158b781300b38a97b0e52bf6a140d12b862c52feada5110f6fc8a62a22ad3635a10b98418d6a6810b9fde767cd68f2ac109493517d10 SHA512 adf5a4ccdb69f576918b3ccf54e7b900b1270428a579cfd752706b91d2bf3cf2718de3a37e7b35633560f1d6fc3eb7a84fb8537dac3f67230147ef041cf27b0d
diff --git a/dev-util/boost-build/boost-build-1.77.0.ebuild b/dev-util/boost-build/boost-build-1.77.0.ebuild
new file mode 100644
index 000000000000..234c67c0f3fd
--- /dev/null
+++ b/dev-util/boost-build/boost-build-1.77.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+MY_PV="$(ver_rs 1- _)"
+
+DESCRIPTION="A system for large project software construction, simple to use and powerful"
+HOMEPAGE="https://boostorg.github.io/build/"
+SRC_URI="https://boostorg.jfrog.io/artifactory/main/release/${PV}/source/boost_${MY_PV}.tar.bz2"
+S="${WORKDIR}/boost_${MY_PV}/tools/build/src"
+
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="examples"
+RESTRICT="test"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.71.0-disable_python_rpath.patch
+ "${FILESDIR}"/${PN}-1.77.0-darwin-gentoo-toolchain.patch
+ "${FILESDIR}"/${PN}-1.73.0-add-none-feature-options.patch
+ "${FILESDIR}"/${PN}-1.76.0-respect-user-flags.patch
+ "${FILESDIR}"/${PN}-1.74.0-no-implicit-march-flags.patch
+)
+
+src_unpack() {
+ tar xojf "${DISTDIR}/${A}" boost_${MY_PV}/tools/build || die "unpacking tar failed"
+}
+
+src_prepare() {
+ default
+
+ pushd .. >/dev/null || die
+ eapply "${FILESDIR}"/${PN}-1.71.0-fix-test.patch
+ popd >/dev/null || die
+}
+
+src_configure() {
+ # need to enable LFS explicitly for 64-bit offsets on 32-bit hosts (#761100)
+ append-lfs-flags
+}
+
+src_compile() {
+ cd engine || die
+ ${CONFIG_SHELL:-${BASH}} ./build.sh cxx --cxx="$(tc-getCXX)" --cxxflags="${CXXFLAGS}" -d+2 --without-python || die "building bjam failed"
+}
+
+src_test() {
+ # Forget tests, bjam is a lost cause
+ :
+}
+
+src_install() {
+ dobin engine/{bjam,b2}
+
+ insinto /usr/share/boost-build/src
+ doins -r "${FILESDIR}/site-config.jam" \
+ ../boost-build.jam bootstrap.jam build-system.jam ../example/user-config.jam *.py \
+ build kernel options tools util
+
+ find "${ED}"/usr/share/boost-build/src -iname '*.py' -delete || die
+
+ dodoc ../notes/{changes,release_procedure,build_dir_option,relative_source_paths}.txt
+
+ if use examples; then
+ docinto examples
+ dodoc -r ../example/.
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
diff --git a/dev-util/boost-build/files/boost-build-1.77.0-darwin-gentoo-toolchain.patch b/dev-util/boost-build/files/boost-build-1.77.0-darwin-gentoo-toolchain.patch
new file mode 100644
index 000000000000..2690e5fe5d97
--- /dev/null
+++ b/dev-util/boost-build/files/boost-build-1.77.0-darwin-gentoo-toolchain.patch
@@ -0,0 +1,26 @@
+Avoid adding all kinds of things to the toolchain's flags that within
+Gentoo (Prefix) we really shouldn't, such as sysroot, deployment target,
+arch, etc.
+
+--- a/tools/darwin.jam
++++ b/tools/darwin.jam
+@@ -240,6 +240,9 @@
+ }
+ }
+
++ # leave compiler flags etc. up to the toolchain
++ return $(version-feature) ;
++
+ if $(version-feature)
+ {
+ if $(.debug-configuration)
+@@ -448,7 +451,8 @@
+ support-ppc64 = ;
+ }
+ }
+- switch $(arch)
++ # Gentoo Prefix toolchain doesn't do multi-arch, so don't try either
++ switch $(donotaddarchpleaseXXXarch)
+ {
+ case combined :
+ {