commit:     5bb557be0105d41e53a7c4dfdc8835ba238b6063
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 11 17:40:22 2021 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Oct 11 18:21:28 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bb557be

app-misc/broot: fix install with USE=debug

With USE=debug, two -*/out exist (came contents) and the
path changes. Using an array to select only one path.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 app-misc/broot/broot-1.6.4.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app-misc/broot/broot-1.6.4.ebuild 
b/app-misc/broot/broot-1.6.4.ebuild
index 5c89cd8a5a5..c44d5d72e04 100644
--- a/app-misc/broot/broot-1.6.4.ebuild
+++ b/app-misc/broot/broot-1.6.4.ebuild
@@ -250,7 +250,8 @@ src_install() {
 
        doman "${T}"/${PN}.1
 
-       cd target/release/build/${PN}-*/out || die
+       local build_dir=( target/$(usex debug{,} release)/build/${PN}-*/out )
+       cd ${build_dir[0]} || die
 
        newbashcomp ${PN}.bash ${PN}
        newbashcomp br.bash br

Reply via email to