commit:     3f9aedcfece36796bc2eeace947b03e7e4450896
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Fri Apr  4 15:50:48 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Fri Apr  4 16:15:11 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3f9aedcf

gui-apps/hyprshot: improve ebuild a bit

- improve DESCRIPTION
- remove USE flags & add optfeatures
  - they were controlling runtime dependencies, which is incorrect

Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>

 .../{hyprshot-1.3.0.ebuild => hyprshot-1.3.0-r1.ebuild}    | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/gui-apps/hyprshot/hyprshot-1.3.0.ebuild 
b/gui-apps/hyprshot/hyprshot-1.3.0-r1.ebuild
similarity index 66%
rename from gui-apps/hyprshot/hyprshot-1.3.0.ebuild
rename to gui-apps/hyprshot/hyprshot-1.3.0-r1.ebuild
index ee8b5e9e7..7db972012 100644
--- a/gui-apps/hyprshot/hyprshot-1.3.0.ebuild
+++ b/gui-apps/hyprshot/hyprshot-1.3.0-r1.ebuild
@@ -3,18 +3,17 @@
 
 EAPI=8
 
-DESCRIPTION="Hyprshot is a utility to easily take screenshot in Hyprland using 
your mouse"
+inherit optfeature
+
+DESCRIPTION="Utility to easily take screenshots in Hyprland using your mouse"
 HOMEPAGE="https://github.com/Gustash/Hyprshot/";
 SRC_URI="https://github.com/Gustash/Hyprshot/archive/refs/tags/${PV}.tar.gz -> 
${P}.tar.gz"
-
 S="${WORKDIR}"/Hyprshot-${PV}
 
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64"
 
-IUSE="+xdg +freeze"
-
 RDEPEND="
        app-misc/jq
        gui-apps/grim
@@ -22,11 +21,14 @@ RDEPEND="
        gui-apps/wl-clipboard
        gui-wm/hyprland
        x11-libs/libnotify
-       xdg? ( x11-misc/xdg-user-dirs )
-       freeze? ( gui-apps/hyprpicker )
 "
 
 src_install() {
        dobin hyprshot
        einstalldocs
 }
+
+pkg_postinst() {
+       optfeature "Screen freezing with --freeze" gui-apps/hyprpicker
+       optfeature "$XDG_PICTURES_DIR detection" x11-misc/xdg-user-dirs
+}

Reply via email to