commit:     b889a2448ef8bb88dcac0db6a3ca7e2f60e37791
Author:     Johannes Huber <johu <AT> gmx <DOT> de>
AuthorDate: Sun May  4 10:12:23 2025 +0000
Commit:     Johannes Huber <johu <AT> gmx <DOT> de>
CommitDate: Sun May  4 10:19:15 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b889a244

gui-apps/hyprpicker: improve live

- Introduce release switch for easy version bumps
- Sort dependencies alphabetically

Signed-off-by: Johannes Huber <johu <AT> gmx.de>

 gui-apps/hyprpicker/hyprpicker-9999.ebuild | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/gui-apps/hyprpicker/hyprpicker-9999.ebuild 
b/gui-apps/hyprpicker/hyprpicker-9999.ebuild
index da61e135d..ac268848a 100644
--- a/gui-apps/hyprpicker/hyprpicker-9999.ebuild
+++ b/gui-apps/hyprpicker/hyprpicker-9999.ebuild
@@ -1,27 +1,35 @@
-# Copyright 2024 Gentoo Authors
+# Copyright 2024-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit cmake git-r3
+inherit cmake
 
 DESCRIPTION="A wlroots-compatible Wayland color picker that does not suck"
 HOMEPAGE="https://github.com/hyprwm/hyprpicker";
-EGIT_REPO_URI="https://github.com/hyprwm/${PN}.git/";
+
+if [[ "${PV}" = *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/hyprwm/${PN^}.git";
+else
+       
SRC_URI="https://github.com/hyprwm/${PN^}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
 
 LICENSE="BSD"
 SLOT="0"
 
 RDEPEND="
        dev-libs/wayland
+       >=dev-util/hyprwayland-scanner-0.4.2
+       gui-libs/hyprutils:=
        x11-libs/cairo
        x11-libs/libxkbcommon
        x11-libs/pango
-       >=gui-libs/hyprutils-0.2.0:=
 "
+DEPEND="${RDEPEND}"
 
 BDEPEND="
-       ${RDEPEND}
        dev-libs/wayland-protocols
        dev-util/wayland-scanner
        media-libs/libglvnd

Reply via email to