Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/babeltrace2/
Date: Wed, 01 Sep 2021 00:06:01
Message-Id: 1630454755.acb29b6581937571b4b6a4b3e9e37d4ea7078222.Alessandro-Barbieri@gentoo
1 commit: acb29b6581937571b4b6a4b3e9e37d4ea7078222
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Wed Sep 1 00:04:10 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Wed Sep 1 00:05:55 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=acb29b65
7
8 dev-util/babeltrace2: initial import
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 dev-util/babeltrace2/Manifest | 1 +
13 dev-util/babeltrace2/babeltrace2-2.0.4.ebuild | 87 +++++++++++++++++++++++++++
14 dev-util/babeltrace2/metadata.xml | 17 ++++++
15 3 files changed, 105 insertions(+)
16
17 diff --git a/dev-util/babeltrace2/Manifest b/dev-util/babeltrace2/Manifest
18 new file mode 100644
19 index 000000000..4f386cc15
20 --- /dev/null
21 +++ b/dev-util/babeltrace2/Manifest
22 @@ -0,0 +1 @@
23 +DIST babeltrace2-2.0.4.tar.bz2 3300594 BLAKE2B f20f752c066ed20a0f477c7b42719053a91d87c8d5fc9d52c641e1f13de105da1319774b3a3abbc9e11ae66a5025d079c072679b4697d62ea6946a1828ad78cf SHA512 56c827497cf241b183ba03a1d960143894901f5f49836a9494126a1a6e5007202fd57277784f64ba3ab15af7e532cfecc32917ebb7736fecca53033f000b0155
24
25 diff --git a/dev-util/babeltrace2/babeltrace2-2.0.4.ebuild b/dev-util/babeltrace2/babeltrace2-2.0.4.ebuild
26 new file mode 100644
27 index 000000000..84b96172a
28 --- /dev/null
29 +++ b/dev-util/babeltrace2/babeltrace2-2.0.4.ebuild
30 @@ -0,0 +1,87 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +# pypy3: obtaining PYTHON_CONFIG not supported
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +
39 +inherit autotools python-single-r1
40 +
41 +DESCRIPTION="A command-line tool and library to read and convert trace files"
42 +HOMEPAGE="https://babeltrace.org"
43 +SRC_URI="https://www.efficios.com/files/babeltrace/${P}.tar.bz2"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64"
48 +IUSE="debug doc man python test"
49 +RESTRICT="!test? ( test )"
50 +
51 +RDEPEND="
52 + dev-libs/glib:2
53 + dev-libs/elfutils
54 +
55 + python? (
56 + ${PYTHON_DEPS}
57 + virtual/libcrypt
58 + )
59 +"
60 +DEPEND="${RDEPEND}"
61 +BDEPEND="
62 + sys-devel/bison
63 + sys-devel/flex
64 + doc? (
65 + app-doc/doxygen
66 + python? ( dev-python/sphinx )
67 + )
68 + man? (
69 + app-text/asciidoc
70 + app-text/xmlto
71 + )
72 + python? ( dev-lang/swig )
73 +"
74 +
75 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
76 +
77 +pkg_setup() {
78 + use python && python-single-r1_pkg_setup
79 +}
80 +
81 +src_prepare() {
82 + default
83 + eautoreconf
84 +}
85 +
86 +src_configure() {
87 + use debug && export BABELTRACE_DEBUG_MODE=1
88 +
89 + local myconf=(
90 + --disable-built-in-plugins
91 + --disable-built-in-python-plugin-support
92 + --disable-compile-warnings
93 + --disable-static
94 + --enable-debug-info
95 + --enable-shared
96 +
97 + $(use_enable doc api-doc)
98 + $(use_enable man man-pages)
99 + $(use_enable python python-bindings)
100 + $(use_enable python python-plugins)
101 + $(use_enable test glibtest)
102 + )
103 +
104 + if use python; then
105 + export PYTHON_CONFIG="$(python_get_PYTHON_CONFIG)"
106 + myconf+=( "--with-python_prefix=$(python_get_sitedir)" )
107 + use doc && myconf+=( "--enable-python-bindings-doc" )
108 + fi
109 +
110 + econf "${myconf[@]}"
111 +}
112 +
113 +src_install() {
114 + default
115 + use doc && docompress -x "${ED}/usr/doc/${PF}/api"
116 + find "${D}" -name '*.la' -delete || die
117 +}
118
119 diff --git a/dev-util/babeltrace2/metadata.xml b/dev-util/babeltrace2/metadata.xml
120 new file mode 100644
121 index 000000000..79767e000
122 --- /dev/null
123 +++ b/dev-util/babeltrace2/metadata.xml
124 @@ -0,0 +1,17 @@
125 +<?xml version="1.0" encoding="UTF-8"?>
126 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
127 +<pkgmetadata>
128 + <maintainer type="person">
129 + <email>lssndrbarbieri@×××××.com</email>
130 + <name>Alessandro Barbieri</name>
131 + </maintainer>
132 + <longdescription lang="en">
133 +Babeltrace /ˈbæbəltreɪs/, an EfficiOS project, is an open-source trace manipulation toolkit.
134 +The Babeltrace 2 project offers a library with a C API, Python 3 bindings, and a command-line tool which makes it very easy for mere mortals to view, convert, transform, and analyze traces.
135 +Babeltrace 2 is also the reference parser implementation of the Common Trace Format (CTF), a very versatile trace format followed by various tracers and tools such as LTTng and barectf. The Babeltrace 2 library and its Python bindings can read and write CTF traces.
136 + </longdescription>
137 + <upstream>
138 + <bugs-to>https://bugs.lttng.org/projects/babeltrace</bugs-to>
139 + <remote-id type="github">efficios/babeltrace</remote-id>
140 + </upstream>
141 +</pkgmetadata>