diff options
author | David Seifert <soap@gentoo.org> | 2023-03-11 20:15:09 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2023-03-11 20:15:09 +0100 |
commit | b13f22a665bed9e0028acace1d180b0bf3a6c240 (patch) | |
tree | bcf428f4991da58e00b2b03a36017089b796a861 /dev-util/b2 | |
parent | app-containers/docker: drop USE=hardened hacks (diff) | |
download | gentoo-b13f22a665bed9e0028acace1d180b0bf3a6c240.tar.gz gentoo-b13f22a665bed9e0028acace1d180b0bf3a6c240.tar.bz2 gentoo-b13f22a665bed9e0028acace1d180b0bf3a6c240.zip |
dev-util/b2: add 4.9.5
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-util/b2')
-rw-r--r-- | dev-util/b2/Manifest | 1 | ||||
-rw-r--r-- | dev-util/b2/b2-4.9.5.ebuild | 66 |
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-util/b2/Manifest b/dev-util/b2/Manifest index 38bd7479eb2d..25e80ce04388 100644 --- a/dev-util/b2/Manifest +++ b/dev-util/b2/Manifest @@ -1 +1,2 @@ DIST b2-4.9.3.tar.gz 975934 BLAKE2B 8d16e7227676786408f0d84efb577806e304a9181b89656dad1243b5b0b48e67d4226fa51ea97d4ea10110e4ea86f3ae2884d711fa4b04e36bdaa68dff0a4710 SHA512 8f861074a50720ad5469277a469523ef5f87ef2aab65d745f4c5e6af0ed8f40af91c43cd42b7845982c065974026ce1ecc77a831cd0c698c7e22fa848cc81009 +DIST b2-4.9.5.tar.gz 977680 BLAKE2B 9025554e4c68257a8d12af9db22c3c3e4c13a5244c7ca474fb935a76fb8fdf2a0a7778756a7b022de90d6585edb758e8dbc54e012f2340ab055b1294709625e8 SHA512 398398e1437554aad0dc123bbf30bd61b26266058b872eb18dd84941cccf3bbc8903944c09add7bf5f05fb8424539fd4358e9b1bcdd4dbfbc84d4f41710e92e6 diff --git a/dev-util/b2/b2-4.9.5.ebuild b/dev-util/b2/b2-4.9.5.ebuild new file mode 100644 index 000000000000..903794b235b9 --- /dev/null +++ b/dev-util/b2/b2-4.9.5.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edo 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://www.bfgroup.xyz/b2/" +SRC_URI="https://github.com/bfgroup/b2/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${P}/src" + +LICENSE="Boost-1.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~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" + +RDEPEND="!dev-util/boost-build" + +PATCHES=( + "${FILESDIR}"/${PN}-4.9.2-disable_python_rpath.patch + "${FILESDIR}"/${PN}-4.9.2-darwin-gentoo-toolchain.patch + "${FILESDIR}"/${PN}-4.9.2-add-none-feature-options.patch + "${FILESDIR}"/${PN}-4.9.2-no-implicit-march-flags.patch + "${FILESDIR}"/${PN}-4.9.2-odr.patch +) + +src_configure() { + # need to enable LFS explicitly for 64-bit offsets on 32-bit hosts (#761100) + append-lfs-flags +} + +src_compile() { + cd engine || die + + # upstream doesn't want separate flags for CPPFLAGS/LDFLAGS + # https://github.com/bfgroup/b2/pull/187#issuecomment-1335688424 + edo ${CONFIG_SHELL:-${BASH}} ./build.sh cxx --cxx="$(tc-getCXX)" --cxxflags="${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS}" -d+2 --without-python +} + +src_test() { + # Forget tests, b2 is a lost cause + : +} + +src_install() { + dobin engine/b2 + + insinto /usr/share/b2/src + doins -r "${FILESDIR}/site-config.jam" \ + bootstrap.jam build-system.jam ../example/user-config.jam \ + build kernel options tools util + + find "${ED}"/usr/share/b2/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 +} |