public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-build/b2/
Date: Fri, 18 Apr 2025 17:21:29 +0000 (UTC)	[thread overview]
Message-ID: <1744996750.ae15f501be7780640b3d5791ee78400acce96a9e.soap@gentoo> (raw)

commit:     ae15f501be7780640b3d5791ee78400acce96a9e
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 18 17:19:10 2025 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Apr 18 17:19:10 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae15f501

dev-build/b2: add 5.3.2

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 dev-build/b2/Manifest        |  1 +
 dev-build/b2/b2-5.3.2.ebuild | 72 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)

diff --git a/dev-build/b2/Manifest b/dev-build/b2/Manifest
index 9a5eb0d60340..2f9f3570be5e 100644
--- a/dev-build/b2/Manifest
+++ b/dev-build/b2/Manifest
@@ -1 +1,2 @@
 DIST b2-5.2.1.tar.gz 1189393 BLAKE2B 26ddc5fa038e899c8e08a27cd79d9b3e39f7a7b6244ea77be4dbe2dff3a7d7309936898362759197850c38789a97c27ca2bf2995ceb14e223fc7045d645328c9 SHA512 5ff2f5735cb34159acc0f8b39a45787bb46731a819658d9374971e8a87e65997249d542c44fe7c7ee197d24ef380c4f523f8c946ac43a97a6ea7a86c91538a36
+DIST b2-5.3.2.tar.gz 1195900 BLAKE2B cc64ce9f70d1afcfdd43a4c709124fff5c9fa15c79c4309b4869451cf767c2ec3bd6834219e325256f9dc7b9ffa4cb00b74a2a9359be98be86656a98ce386bde SHA512 347c73fd3156fb2a050c8c928715836717ecec41dd05ace665e27955235a6dbb6a85086a98e03e5e37ace2a35b951f2c131e02c3eeb2355cb7b9571ebd12678d

diff --git a/dev-build/b2/b2-5.3.2.ebuild b/dev-build/b2/b2-5.3.2.ebuild
new file mode 100644
index 000000000000..7ccb9a9b0581
--- /dev/null
+++ b/dev-build/b2/b2-5.3.2.ebuild
@@ -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
+}


             reply	other threads:[~2025-04-18 17:21 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-18 17:21 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-07-18  9:09 [gentoo-commits] repo/gentoo:master commit in: dev-build/b2/ David Seifert
2025-07-12 12:26 Arthur Zamarin
2025-07-11 16:05 Arthur Zamarin
2025-07-11 16:05 Arthur Zamarin
2025-07-11 16:05 Arthur Zamarin
2025-07-11 16:05 Arthur Zamarin
2025-07-11 16:05 Arthur Zamarin
2024-11-13 11:22 David Seifert
2024-11-12 19:54 Sam James
2024-11-08  2:49 Sam James
2024-11-04 16:47 Arthur Zamarin
2024-11-03 18:28 Sam James
2024-11-03 18:28 Sam James
2024-11-03 18:28 Sam James
2024-11-03 18:28 Sam James
2024-11-03 18:05 Sam James
2024-07-04 13:31 David Seifert
2024-03-02 13:08 Arthur Zamarin
2024-02-13  9:54 David Seifert
2024-02-12 16:27 Sam James
2024-02-12 16:27 Sam James
2024-02-12 13:07 Sam James
2024-02-12 13:05 Sam James
2024-02-12 13:05 Sam James
2024-02-12 13:05 Sam James
2024-02-12 13:05 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1744996750.ae15f501be7780640b3d5791ee78400acce96a9e.soap@gentoo \
    --to=soap@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox