commit: 0676d93602cc9dbf08a32731eb189f156bc15634 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Apr 21 07:21:48 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Apr 21 07:39:52 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0676d936
dev-util/babeltrace: add 2.0.6 The PR was obsolete was several changes happened inbetween and rebasing it didn't seem worth it. Closes: https://github.com/gentoo/gentoo/pull/38464 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-util/babeltrace/Manifest | 1 + dev-util/babeltrace/babeltrace-2.0.6.ebuild | 61 +++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/dev-util/babeltrace/Manifest b/dev-util/babeltrace/Manifest index f02b267c6893..440ec3781eb3 100644 --- a/dev-util/babeltrace/Manifest +++ b/dev-util/babeltrace/Manifest @@ -1,2 +1,3 @@ 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 diff --git a/dev-util/babeltrace/babeltrace-2.0.6.ebuild b/dev-util/babeltrace/babeltrace-2.0.6.ebuild new file mode 100644 index 000000000000..f26351663c07 --- /dev/null +++ b/dev-util/babeltrace/babeltrace-2.0.6.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} pypy3 ) +inherit 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} )" + +RDEPEND=">=dev-libs/glib-2.28:2 + elfutils? ( >=dev-libs/elfutils-0.154 ) + python? ( ${PYTHON_DEPS} ) +" + +BDEPEND="${RDEPEND} + >=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_configure() { + use python && export PYTHON_CONFIG="${EPYTHON}-config" + econf \ + $(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 +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die +}
