commit:     3d6334cf017b80b0f48a0aaef540b79f865fbfd3
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 18 11:40:16 2018 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Mon Jun 18 11:40:16 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d6334cf

dev-util/strace: update live ebuild

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 dev-util/strace/strace-9999.ebuild | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/dev-util/strace/strace-9999.ebuild 
b/dev-util/strace/strace-9999.ebuild
index f9e3966c500..bac8d4b752b 100644
--- a/dev-util/strace/strace-9999.ebuild
+++ b/dev-util/strace/strace-9999.ebuild
@@ -18,9 +18,14 @@ HOMEPAGE="https://strace.io/";
 
 LICENSE="BSD"
 SLOT="0"
-IUSE="aio perl static unwind"
+IUSE="aio perl static unwind elfutils"
 
-LIB_DEPEND="unwind? ( sys-libs/libunwind[static-libs(+)] )"
+REQUIRED_USE="?? ( unwind elfutils )"
+
+LIB_DEPEND="
+       unwind? ( sys-libs/libunwind[static-libs(+)] )
+       elfutils? ( dev-libs/elfutils[static-libs(+)] )
+"
 # strace only uses the header from libaio to decode structs
 DEPEND="
        static? ( ${LIB_DEPEND} )
@@ -66,7 +71,8 @@ src_configure() {
        # Don't require mpers support on non-multilib systems. #649560
        econf \
                --enable-mpers=check \
-               $(use_with unwind libunwind)
+               $(use_with unwind libunwind) \
+               $(use_with elfutils libdw)
 }
 
 src_test() {
@@ -80,6 +86,6 @@ src_test() {
 
 src_install() {
        default
-       use perl || rm "${ED}"/usr/bin/strace-graph
+       use perl || rm "${ED%/}"/usr/bin/strace-graph
        dodoc CREDITS
 }

Reply via email to