diff options
Diffstat (limited to 'dev-util/uftrace')
-rw-r--r-- | dev-util/uftrace/Manifest | 1 | ||||
-rw-r--r-- | dev-util/uftrace/uftrace-0.9.4-r100.ebuild | 61 |
2 files changed, 62 insertions, 0 deletions
diff --git a/dev-util/uftrace/Manifest b/dev-util/uftrace/Manifest index aa472228504d..450da37a9fd7 100644 --- a/dev-util/uftrace/Manifest +++ b/dev-util/uftrace/Manifest @@ -1,3 +1,4 @@ DIST uftrace-0.9.4.tar.gz 1068091 BLAKE2B cbf9ead0e2c0e8d59be379e65617cfa310fd4134cfbbc8091c489913f108e8a7a0b81e33d46032f3717a5bb8127cbeeeb246e3be0c37da03981dac4bacc07119 SHA512 f73ad4461051b9c61668161e077897d118ac556d234ff204e32bf14ecdc2c0df148da30ea5d5054641e79ea20b29261d6f637908f5047f5669207ef244865358 +EBUILD uftrace-0.9.4-r100.ebuild 1137 BLAKE2B 78c1fe9945a099d538963d188ebf91f83018620659567b713a0c0b169ed7aa9c5687ae126d534b0d060f95c4f8897413baebff50acceea6b31f45060136bf815 SHA512 2a111b38989d73bfb15af823ad98417946200a71fa6851e22828d7fbc5ce4ff30157bb4908c41f993290e9b9e4a7558816bdc02eba45bb6737cc53e9a1ee7a7b EBUILD uftrace-0.9.4.ebuild 906 BLAKE2B 1dac005c9729ba654a2fb47bb9f62ea3133980bc13b15082a0f456ac11916e405eb68a0b82f2fb4aee8fb08195cc02036dd3a642be920e1d7815b26faef9c709 SHA512 6d2efb66d03e8f0aa828167d7803da3582e43e87c885ce5ed70d59b150d41b3db2206dc50358603f9ab98b418e6ef299d4d6b3161760ae24264f57723ed9ce31 MISC metadata.xml 438 BLAKE2B 573900b49b5a09077887b8703137b6e33cfe992340299f397601fee032b474fc1127ff96f07a8db6da9bb9592e0ef1f45c996dff40fefeb63a15a233de2fee98 SHA512 b272ef1b4664a53c3d00445285a550f8bf9abcb100417febe7e177b803cc2414b32bf5c6900113dcccea0449a5e23c14543b349c3e6452f5ca1a37d6639214d3 diff --git a/dev-util/uftrace/uftrace-0.9.4-r100.ebuild b/dev-util/uftrace/uftrace-0.9.4-r100.ebuild new file mode 100644 index 000000000000..87ccea5aec88 --- /dev/null +++ b/dev-util/uftrace/uftrace-0.9.4-r100.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2020 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" +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=( + $(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 +} |