commit:     0993d496f280182e027b48da3fa42612a0c42200
Author:     Konstantin Tutsch <mail <AT> konstantintutsch <DOT> de>
AuthorDate: Wed Oct 11 08:13:14 2023 +0000
Commit:     Konstantin Tutsch <mail <AT> konstantintutsch <DOT> de>
CommitDate: Wed Oct 11 08:14:21 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0993d496

media-sound/spot: respect cargo release target

Closes: https://bugs.gentoo.org/915570
Signed-off-by: Konstantin Tutsch <mail <AT> konstantintutsch.de>

 media-sound/spot/spot-0.4.0.ebuild | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/media-sound/spot/spot-0.4.0.ebuild 
b/media-sound/spot/spot-0.4.0.ebuild
index 008440bb03..b61f0e8d6f 100644
--- a/media-sound/spot/spot-0.4.0.ebuild
+++ b/media-sound/spot/spot-0.4.0.ebuild
@@ -442,9 +442,15 @@ src_compile() {
        cargo_src_compile
 
        # meson_src_install won't find spot binary otherwise because cargo.sh 
isn't used for compiling
-       mv "${WORKDIR}/${P}/target/release/spot" \
-          "${WORKDIR}/${P}-build/src/spot" \
-          || die
+       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
 }
 
 src_install() {

Reply via email to