commit:     93cfe49e5bad433f65d74070bbd20b35b080ae0a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 21 07:33:10 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Apr 21 07:39:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93cfe49e

dev-util/babeltrace: add 2.1.1

Closes: https://bugs.gentoo.org/953444
Closes: https://bugs.gentoo.org/952429
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/babeltrace/Manifest                |  1 +
 dev-util/babeltrace/babeltrace-2.1.1.ebuild | 77 +++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)

diff --git a/dev-util/babeltrace/Manifest b/dev-util/babeltrace/Manifest
index 440ec3781eb3..351a8c213162 100644
--- a/dev-util/babeltrace/Manifest
+++ b/dev-util/babeltrace/Manifest
@@ -1,3 +1,4 @@
 DIST babeltrace-1.5.11.tar.bz2 998592 BLAKE2B 
8d11c0322072464fd2a187ebc1320e3cec1007e8c56f04e9bb845d94b4e0399febce91eb49c1a75c829f5182d9cb5c93c0d647c311c38133e548c30bd0905d59
 SHA512 
a3158bb9d0306c1cab6ac3d16ba542605ad60b13ecb10fe740a3b95168f0ead87d31483a06d49a15341f7ef6def16765d9a6045f40a60cd8b94070d979c0c3d1
 DIST babeltrace2-2.0.5.tar.bz2 3252593 BLAKE2B 
31a8f3c080e4a6b6e33c224ec4a64d5ff12724a5697954cb92b88c569d6f2019f49ddcb88f82d36be3007c7b5d1334370202d1c0e89122acf340a7cb9e399fa3
 SHA512 
63469cb0796c720b18bfc09569875eb9a44d2f8a776228bfa503af8ba613b2988b2d20be870f41451e5d6146a3dfb08de6284131d25f1a86137deb75c3a4d514
 DIST babeltrace2-2.0.6.tar.bz2 3280798 BLAKE2B 
840819500ede57972fcd8f80db355f1207c6bed83b1a1bf8da8330296f12b768419b8c66b6428ba27e50c37cfaa4d2984e193189b7a1d43111edc543b9154e10
 SHA512 
53107313e4870f6d28484102da2406f6e6eb13751035162b02ca7495d34409d3a8c7d3c14747924f4cf4620eaea113d8ceebf29872fed00bc38cc6e4329cca5d
+DIST babeltrace2-2.1.1.tar.bz2 4579958 BLAKE2B 
8710232e07642f155d4c554c865dfa98fb109fdabecfafe3cfecf70ed3e99113645b6cc4f82de40db439e47d2eee826e4a750700d16e25ea63d3ecc6a4d9443e
 SHA512 
46b26353ffdf9eb3e878545992364f963227ee9e350b2ae1c4359736d7aa1544185bfe7e0de020bf8b91efa76307e997a58300401151f3d8310c1fc5e9581fa7

diff --git a/dev-util/babeltrace/babeltrace-2.1.1.ebuild 
b/dev-util/babeltrace/babeltrace-2.1.1.ebuild
new file mode 100644
index 000000000000..7bada3915218
--- /dev/null
+++ b/dev-util/babeltrace/babeltrace-2.1.1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} pypy3 )
+inherit flag-o-matic libtool python-single-r1
+
+DESCRIPTION="A command-line tool and library to read and convert trace files"
+HOMEPAGE="https://babeltrace.org/";
+SRC_URI="https://www.efficios.com/files/${PN}/${PN}$(ver_cut 1)-${PV}.tar.bz2"
+S="${WORKDIR}/${PN}$(ver_cut 1)-${PV}"
+
+LICENSE="GPL-2"
+SLOT="0/$(ver_cut 1)"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+IUSE="doc +elfutils +man plugins python"
+REQUIRED_USE="plugins? ( python ) python? ( ${PYTHON_REQUIRED_USE} )"
+
+DEPEND="
+       >=dev-libs/glib-2.28:2
+       elfutils? ( >=dev-libs/elfutils-0.154 )
+       python? ( ${PYTHON_DEPS} )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+       >=sys-devel/bison-2.5
+       app-alternatives/lex
+       python? (
+               >=dev-lang/swig-3.0
+               $(python_gen_cond_dep 'dev-python/setuptools[${PYTHON_USEDEP}]' 
python3_12)
+               doc? ( >=dev-python/sphinx-1.3 )
+       )
+       doc? ( >=app-text/doxygen-1.8.6 )
+       man? (
+               >=app-text/asciidoc-8.6.8
+               >=app-text/xmlto-0.0.25
+       )
+"
+
+pkg_setup() {
+       use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+       default
+
+       # Needed for LTO -Werror
+       elibtoolize
+}
+
+src_configure() {
+       # ODR violation in currentCtfScanner. Not yet reported upstream
+       # as bug tracker account is pending approval.
+       filter-lto
+
+       use python && export PYTHON_CONFIG="${EPYTHON}-config"
+
+       local myeconfargs=(
+               $(use_enable doc api-doc)
+               $(use_enable elfutils debug-info)
+               $(use_enable man man-pages)
+               $(use_enable python python-bindings)
+               $(usex python $(use_enable doc python-bindings-doc) 
--disable-python-bindings-doc)
+               $(use_enable plugins python-plugins)
+               --disable-built-in-plugins
+               --disable-built-in-python-plugin-support
+               --disable-Werror
+       )
+
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       default
+       find "${D}" -name '*.la' -delete || die
+}

Reply via email to