commit:     5e1d95cb0da72e3453b6aff99a1ae83f5af0700d
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Sat Sep  7 12:25:54 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sat Sep  7 12:25:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5e1d95cb

media-sound/spot: fix cargo target dir

Closes: https://bugs.gentoo.org/915570
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 media-sound/spot/spot-0.4.0.ebuild | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/media-sound/spot/spot-0.4.0.ebuild 
b/media-sound/spot/spot-0.4.0.ebuild
index 4b1313ed7..fbfec2d0c 100644
--- a/media-sound/spot/spot-0.4.0.ebuild
+++ b/media-sound/spot/spot-0.4.0.ebuild
@@ -442,15 +442,7 @@ src_compile() {
        cargo_src_compile
 
        # meson_src_install won't find spot binary otherwise because cargo.sh 
isn't used for compiling
-       if use debug; then
-               mv "${WORKDIR}/${P}/target/debug/spot" \
-                  "${WORKDIR}/${P}-build/src/spot" \
-                  || die
-       else
-               mv "${WORKDIR}/${P}/target/release/spot" \
-                  "${WORKDIR}/${P}-build/src/spot" \
-                  || die
-       fi
+       mv "$(cargo_target_dir)/spot" "${WORKDIR}/${P}-build/src/spot"
 }
 
 src_install() {

Reply via email to