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@gmail.com>
This commit is contained in:
Gonçalo Duarte
2023-11-27 08:39:59 +00:00
parent 9b50533c11
commit 4aaf4c541b
2 changed files with 16 additions and 4 deletions

View File

@@ -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"

View File

@@ -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"