dev-build/b2: add 5.3.3

Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert 2025-11-30 15:56:13 +01:00
parent 8ef3aad4cb
commit 96e83b3627
No known key found for this signature in database
GPG Key ID: CE36E117202E3842
2 changed files with 73 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST b2-5.3.2.tar.gz 1195900 BLAKE2B cc64ce9f70d1afcfdd43a4c709124fff5c9fa15c79c4309b4869451cf767c2ec3bd6834219e325256f9dc7b9ffa4cb00b74a2a9359be98be86656a98ce386bde SHA512 347c73fd3156fb2a050c8c928715836717ecec41dd05ace665e27955235a6dbb6a85086a98e03e5e37ace2a35b951f2c131e02c3eeb2355cb7b9571ebd12678d
DIST b2-5.3.3.tar.gz 1196146 BLAKE2B d5899fec2bcc9acf0e9785d1c81408008410df59a07e97d0ab81de0f7b50094bb38749f0b47856fc35cefd3560f6ece6fdecaa28a25784cbcafbe44e4a47b2de SHA512 9fc40f746fbc056d3bcd863a5f04028bc4b896c0c96229424833a4819666820678e7456e16374323b31716648428af4453a2235cd086234c8b16b03e07eb91f3

View File

@ -0,0 +1,72 @@
# Copyright 1999-2025 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 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-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
)
src_configure() {
# need to enable LFS explicitly for 64-bit offsets on 32-bit hosts (#761100)
append-lfs-flags
}
src_compile() {
cd engine || die
# don't call windres since it leads to broken relocations
export B2_DONT_EMBED_MANIFEST=1
# 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="-pthread ${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" \
build-system.jam ../example/user-config.jam \
build contrib 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
}