commit:     19e11cbc52ba3e7ab832ee4a34024250f5e8ceb5
Author:     Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Tue Sep 17 11:32:25 2024 +0000
Commit:     Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Tue Sep 17 11:37:25 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=19e11cbc

gui-apps/satty: fix dobin location

Bug: https://bugs.gentoo.org/939187
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>

 gui-apps/satty/satty-0.14.0.ebuild | 8 +-------
 gui-apps/satty/satty-9999.ebuild   | 8 +-------
 2 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/gui-apps/satty/satty-0.14.0.ebuild 
b/gui-apps/satty/satty-0.14.0.ebuild
index b5fbbd601..76135c5be 100644
--- a/gui-apps/satty/satty-0.14.0.ebuild
+++ b/gui-apps/satty/satty-0.14.0.ebuild
@@ -261,13 +261,7 @@ src_unpack() {
 src_install() {
        dodoc README.md
 
-       if use debug ; then
-               cd target/debug || die
-       else
-               cd target/release  || die
-       fi
-
-       dobin satty
+       dobin "$(cargo_target_dir)"/satty
        #Just add the icon and desktop file
        doicon "${S}/assets/satty.svg"
        domenu "${S}/satty.desktop"

diff --git a/gui-apps/satty/satty-9999.ebuild b/gui-apps/satty/satty-9999.ebuild
index 1c3a8a837..262d43dfb 100644
--- a/gui-apps/satty/satty-9999.ebuild
+++ b/gui-apps/satty/satty-9999.ebuild
@@ -52,13 +52,7 @@ src_unpack() {
 src_install() {
        dodoc README.md
 
-       if use debug ; then
-               cd target/debug || die
-       else
-               cd target/release  || die
-       fi
-
-       dobin satty
+       dobin "$(cargo_target_dir)"/satty
        #Just add the icon and desktop file
        doicon "${S}/assets/satty.svg"
        domenu "${S}/satty.desktop"

Reply via email to