Gentoo Archives: gentoo-commits

From: Guilherme Amadio <amadio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/uftrace/
Date: Mon, 31 May 2021 15:24:39
Message-Id: 1622474657.dff842ad75fcc6f0f2232c31927559383b969ad2.amadio@gentoo
1 commit: dff842ad75fcc6f0f2232c31927559383b969ad2
2 Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 31 14:53:19 2021 +0000
4 Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
5 CommitDate: Mon May 31 15:24:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dff842ad
7
8 dev-util/uftrace: version bump to 0.10
9
10 Fixes: https://bugs.gentoo.org/724278
11 Package-Manager: Portage-3.0.19, Repoman-3.0.3
12 Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>
13
14 dev-util/uftrace/Manifest | 1 +
15 dev-util/uftrace/uftrace-0.10.ebuild | 62 ++++++++++++++++++++++++++++++++++++
16 2 files changed, 63 insertions(+)
17
18 diff --git a/dev-util/uftrace/Manifest b/dev-util/uftrace/Manifest
19 index 129dd72f884..a9e6c5f4a0b 100644
20 --- a/dev-util/uftrace/Manifest
21 +++ b/dev-util/uftrace/Manifest
22 @@ -1 +1,2 @@
23 +DIST uftrace-0.10.tar.gz 1111530 BLAKE2B 29388523e1009276ba4609d85e5979e823d028ff647239aa02ec2cac5ae21c7812c7699d47c09c0b9289a0debb39a2f502615547c8e658a821d5078e3b12c6fe SHA512 788234e4156974a70f06d02527e56e5fac821e8b66363dc5fc55d68797c374043c0b66b18b4ab1488b9647e08969e8dc94a64d6bb1a38ccad4cf98eaecc6e919
24 DIST uftrace-0.9.4.tar.gz 1068091 BLAKE2B cbf9ead0e2c0e8d59be379e65617cfa310fd4134cfbbc8091c489913f108e8a7a0b81e33d46032f3717a5bb8127cbeeeb246e3be0c37da03981dac4bacc07119 SHA512 f73ad4461051b9c61668161e077897d118ac556d234ff204e32bf14ecdc2c0df148da30ea5d5054641e79ea20b29261d6f637908f5047f5669207ef244865358
25
26 diff --git a/dev-util/uftrace/uftrace-0.10.ebuild b/dev-util/uftrace/uftrace-0.10.ebuild
27 new file mode 100644
28 index 00000000000..48c35a456db
29 --- /dev/null
30 +++ b/dev-util/uftrace/uftrace-0.10.ebuild
31 @@ -0,0 +1,62 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +LUA_COMPAT=( luajit )
38 +
39 +inherit bash-completion-r1 lua-single
40 +
41 +DESCRIPTION="Function (graph) tracer for user-space"
42 +HOMEPAGE="https://github.com/namhyung/uftrace"
43 +SRC_URI="https://github.com/namhyung/uftrace/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm64"
48 +IUSE="bash-completion capstone lua"
49 +
50 +REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )"
51 +
52 +RESTRICT="test"
53 +
54 +RDEPEND="
55 + sys-libs/ncurses:=
56 + virtual/libelf:=
57 + capstone? ( dev-libs/capstone:0= )
58 + lua? ( ${LUA_DEPS} )
59 +"
60 +DEPEND="${RDEPEND}"
61 +
62 +src_prepare() {
63 + default
64 + sed -i -e "s/ARCH/MYARCH/g" -e "/ldconfig/d" -e "/bash.completion/d" Makefile || die
65 +}
66 +
67 +src_configure() {
68 + local myconf=(
69 + --libdir="${EPREFIX}"/usr/$(get_libdir)/uftrace
70 + $(use_with capstone)
71 + --without-libpython
72 + )
73 + if use lua && use lua_single_target_luajit; then
74 + myconf+=(
75 + --with-libluajit
76 + )
77 + else
78 + myconf+=(
79 + --without-libluajit
80 + )
81 + fi
82 + econf "${myconf[@]}"
83 +}
84 +
85 +src_compile() {
86 + emake V=1
87 +}
88 +
89 +src_install() {
90 + default
91 + dodoc doc/*.{md,gif,png}
92 + use bash-completion && newbashcomp misc/bash-completion.sh uftrace
93 +}