From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D371213835A for ; Mon, 31 May 2021 15:24:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A8510E0821; Mon, 31 May 2021 15:24:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 902B3E0821 for ; Mon, 31 May 2021 15:24:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0618A335C9A for ; Mon, 31 May 2021 15:24:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6217078E for ; Mon, 31 May 2021 15:24:35 +0000 (UTC) From: "Guilherme Amadio" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Guilherme Amadio" Message-ID: <1622474657.dff842ad75fcc6f0f2232c31927559383b969ad2.amadio@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/uftrace/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/uftrace/Manifest dev-util/uftrace/uftrace-0.10.ebuild X-VCS-Directories: dev-util/uftrace/ X-VCS-Committer: amadio X-VCS-Committer-Name: Guilherme Amadio X-VCS-Revision: dff842ad75fcc6f0f2232c31927559383b969ad2 X-VCS-Branch: master Date: Mon, 31 May 2021 15:24:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 66b3be64-ca81-4386-922c-6ba23c704a29 X-Archives-Hash: f06b79fc99345802461eea4bb9f34490 commit: dff842ad75fcc6f0f2232c31927559383b969ad2 Author: Guilherme Amadio gentoo org> AuthorDate: Mon May 31 14:53:19 2021 +0000 Commit: Guilherme Amadio gentoo org> CommitDate: Mon May 31 15:24:17 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dff842ad dev-util/uftrace: version bump to 0.10 Fixes: https://bugs.gentoo.org/724278 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Guilherme Amadio gentoo.org> dev-util/uftrace/Manifest | 1 + dev-util/uftrace/uftrace-0.10.ebuild | 62 ++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) diff --git a/dev-util/uftrace/Manifest b/dev-util/uftrace/Manifest index 129dd72f884..a9e6c5f4a0b 100644 --- a/dev-util/uftrace/Manifest +++ b/dev-util/uftrace/Manifest @@ -1 +1,2 @@ +DIST uftrace-0.10.tar.gz 1111530 BLAKE2B 29388523e1009276ba4609d85e5979e823d028ff647239aa02ec2cac5ae21c7812c7699d47c09c0b9289a0debb39a2f502615547c8e658a821d5078e3b12c6fe SHA512 788234e4156974a70f06d02527e56e5fac821e8b66363dc5fc55d68797c374043c0b66b18b4ab1488b9647e08969e8dc94a64d6bb1a38ccad4cf98eaecc6e919 DIST uftrace-0.9.4.tar.gz 1068091 BLAKE2B cbf9ead0e2c0e8d59be379e65617cfa310fd4134cfbbc8091c489913f108e8a7a0b81e33d46032f3717a5bb8127cbeeeb246e3be0c37da03981dac4bacc07119 SHA512 f73ad4461051b9c61668161e077897d118ac556d234ff204e32bf14ecdc2c0df148da30ea5d5054641e79ea20b29261d6f637908f5047f5669207ef244865358 diff --git a/dev-util/uftrace/uftrace-0.10.ebuild b/dev-util/uftrace/uftrace-0.10.ebuild new file mode 100644 index 00000000000..48c35a456db --- /dev/null +++ b/dev-util/uftrace/uftrace-0.10.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( luajit ) + +inherit bash-completion-r1 lua-single + +DESCRIPTION="Function (graph) tracer for user-space" +HOMEPAGE="https://github.com/namhyung/uftrace" +SRC_URI="https://github.com/namhyung/uftrace/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="bash-completion capstone lua" + +REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )" + +RESTRICT="test" + +RDEPEND=" + sys-libs/ncurses:= + virtual/libelf:= + capstone? ( dev-libs/capstone:0= ) + lua? ( ${LUA_DEPS} ) +" +DEPEND="${RDEPEND}" + +src_prepare() { + default + sed -i -e "s/ARCH/MYARCH/g" -e "/ldconfig/d" -e "/bash.completion/d" Makefile || die +} + +src_configure() { + local myconf=( + --libdir="${EPREFIX}"/usr/$(get_libdir)/uftrace + $(use_with capstone) + --without-libpython + ) + if use lua && use lua_single_target_luajit; then + myconf+=( + --with-libluajit + ) + else + myconf+=( + --without-libluajit + ) + fi + econf "${myconf[@]}" +} + +src_compile() { + emake V=1 +} + +src_install() { + default + dodoc doc/*.{md,gif,png} + use bash-completion && newbashcomp misc/bash-completion.sh uftrace +}