From 4aaf4c541bda074db0ce1584b978351a0f1fdf19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Duarte?= Date: Mon, 27 Nov 2023 08:39:59 +0000 Subject: [PATCH] gui-apps/satty: fix debug useflag and add xdg eclass MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: https://bugs.gentoo.org/917672 Closes: https://bugs.gentoo.org/917672 Signed-off-by: Gonçalo Duarte --- 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"