commit:     5187a389969d8125f5275f4ae8e0744b563089a6
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Fri Apr  4 16:16:08 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Fri Apr  4 16:20:40 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5187a389

gui-apps/hyprshot: sync live

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

 gui-apps/hyprshot/hyprshot-9999.ebuild | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/gui-apps/hyprshot/hyprshot-9999.ebuild 
b/gui-apps/hyprshot/hyprshot-9999.ebuild
index 3d29e726e..085e84d4c 100644
--- a/gui-apps/hyprshot/hyprshot-9999.ebuild
+++ b/gui-apps/hyprshot/hyprshot-9999.ebuild
@@ -1,31 +1,32 @@
-# Copyright 2024 Gentoo Authors
+# Copyright 2024-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-inherit git-r3
 
-DESCRIPTION="Hyprshot is an utility to easily take screenshot in Hyprland 
using your mouse"
+inherit git-r3 optfeature
+
+DESCRIPTION="Utility to easily take screenshots in Hyprland using your mouse"
 HOMEPAGE="https://github.com/Gustash/Hyprshot/";
 EGIT_REPO_URI="https://github.com/Gustash/Hyprshot.git/";
 
 LICENSE="GPL-3"
 SLOT="0"
 
-IUSE="+xdg +freeze"
-
 RDEPEND="
        app-misc/jq
-       app-shells/bash
        gui-apps/grim
        gui-apps/slurp
        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