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 0186B158086 for ; Sun, 10 Oct 2021 14:12:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 52486E087E; Sun, 10 Oct 2021 14:12:11 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 351D7E087E for ; Sun, 10 Oct 2021 14:12:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 15EFB342FD7 for ; Sun, 10 Oct 2021 14:12:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 29F32EA for ; Sun, 10 Oct 2021 14:12:08 +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: <1633874740.8bcf692473430521869bd5f9ad58598feb083ebe.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.11.ebuild X-VCS-Directories: dev-util/uftrace/ X-VCS-Committer: amadio X-VCS-Committer-Name: Guilherme Amadio X-VCS-Revision: 8bcf692473430521869bd5f9ad58598feb083ebe X-VCS-Branch: master Date: Sun, 10 Oct 2021 14:12:08 +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: 3da09d9c-7107-4c9e-b8ae-4194bcbb11dd X-Archives-Hash: 3762575f09824288c766ce9ab099edeb commit: 8bcf692473430521869bd5f9ad58598feb083ebe Author: Guilherme Amadio gentoo org> AuthorDate: Sun Oct 10 14:05:40 2021 +0000 Commit: Guilherme Amadio gentoo org> CommitDate: Sun Oct 10 14:05:40 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bcf6924 dev-util/uftrace: version bump to 0.11 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Guilherme Amadio gentoo.org> dev-util/uftrace/Manifest | 1 + dev-util/uftrace/uftrace-0.11.ebuild | 70 ++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) diff --git a/dev-util/uftrace/Manifest b/dev-util/uftrace/Manifest index 8348aba2e20..174cc649937 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.11.tar.gz 1120956 BLAKE2B e3bda84a7323cc50780950e502856e28a380249a0f518ad3f7950c4147f0ab635e84b978395eb9025e6b47ecf7eefddcde59356a22f1c8a1d60ddf9820dc3d41 SHA512 519ca13665ba97cea4c349d81b4b5cacd8d3d9b2188ef5edb447f6b783cb7a92356bc0f9e63b67427a896d8df671f58091113e1de3fffd8d8000417a9fdb6e46 diff --git a/dev-util/uftrace/uftrace-0.11.ebuild b/dev-util/uftrace/uftrace-0.11.ebuild new file mode 100644 index 00000000000..31a949ddbd3 --- /dev/null +++ b/dev-util/uftrace/uftrace-0.11.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( luajit ) +PYTHON_COMPAT=( python3_{8..10} ) + +inherit bash-completion-r1 lua-single python-single-r1 toolchain-funcs + +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="capstone lua python unwind" + +REQUIRED_USE=" + lua? ( ${LUA_REQUIRED_USE} ) + python? ( ${PYTHON_REQUIRED_USE} ) +" + +RESTRICT="test" + +RDEPEND=" + sys-libs/ncurses:= + virtual/libelf:= + capstone? ( dev-libs/capstone:0= ) + lua? ( ${LUA_DEPS} ) + python? ( ${PYTHON_DEPS} ) + unwind? ( sys-libs/libunwind:= ) +" +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) + $(use_with unwind libunwind) + $(use_with python libpython) + ) + if use lua && use lua_single_target_luajit; then + myconf+=( + --with-libluajit + ) + else + myconf+=( + --without-libluajit + ) + fi + CC=$(tc-getCC) LD=$(tc-getLD) econf "${myconf[@]}" +} + +src_compile() { + emake V=1 +} + +src_install() { + default + + dodoc doc/*.{md,gif,png} + newbashcomp misc/bash-completion.sh uftrace +}