commit: 4aaf4c541bda074db0ce1584b978351a0f1fdf19 Author: Gonçalo Duarte <gonegrier.duarte <AT> gmail <DOT> com> AuthorDate: Mon Nov 27 08:39:59 2023 +0000 Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com> CommitDate: Mon Nov 27 08:41:24 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4aaf4c54
gui-apps/satty: fix debug useflag and add xdg eclass Bug: https://bugs.gentoo.org/917672 Closes: https://bugs.gentoo.org/917672 Signed-off-by: Gonçalo Duarte <gonegrier.duarte <AT> gmail.com> gui-apps/satty/satty-0.7.0.ebuild | 10 ++++++++-- gui-apps/satty/satty-9999.ebuild | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/gui-apps/satty/satty-0.7.0.ebuild b/gui-apps/satty/satty-0.7.0.ebuild index e52738eda1..2a51092078 100644 --- a/gui-apps/satty/satty-0.7.0.ebuild +++ b/gui-apps/satty/satty-0.7.0.ebuild @@ -169,7 +169,7 @@ CRATES=" zvariant_utils-1.0.1 " -inherit cargo desktop +inherit cargo desktop xdg DESCRIPTION="A screenshot annotation tool inspired by Swappy and Flameshot." HOMEPAGE="https://github.com/gabm/satty" @@ -197,7 +197,13 @@ QA_FLAGS_IGNORED="usr/bin/${PN}" src_install() { dodoc README.md - cd target/release || die + + if use debug ; then + cd target/debug || die + else + cd target/release || die + fi + dobin satty #Just add the icon and desktop file doicon "${S}/assets/satty.svg" diff --git a/gui-apps/satty/satty-9999.ebuild b/gui-apps/satty/satty-9999.ebuild index 8c15115af7..40a73d547d 100644 --- a/gui-apps/satty/satty-9999.ebuild +++ b/gui-apps/satty/satty-9999.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cargo git-r3 desktop +inherit cargo git-r3 desktop xdg DESCRIPTION="A screenshot annotation tool inspired by Swappy and Flameshot." HOMEPAGE="https://github.com/gabm/satty" @@ -30,7 +30,13 @@ src_unpack() { src_install() { dodoc README.md - cd target/release || die + + if use debug ; then + cd target/debug || die + else + cd target/release || die + fi + dobin satty #Just add the icon and desktop file doicon "${S}/assets/satty.svg"
