commit:     0daf768ae1459d9210586f1f4c32dda9547f7341
Author:     Johannes Huber <johu <AT> gmx <DOT> de>
AuthorDate: Fri Apr  4 21:35:02 2025 +0000
Commit:     Johannes Huber <johu <AT> gmx <DOT> de>
CommitDate: Fri Apr  4 21:35:02 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0daf768a

gui-apps/hyprsunset: improve live

- sort deps
- live/release switch for easy version bumps

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

 gui-apps/hyprsunset/hyprsunset-9999.ebuild | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/gui-apps/hyprsunset/hyprsunset-9999.ebuild 
b/gui-apps/hyprsunset/hyprsunset-9999.ebuild
index bad110fdd..3db97109e 100644
--- a/gui-apps/hyprsunset/hyprsunset-9999.ebuild
+++ b/gui-apps/hyprsunset/hyprsunset-9999.ebuild
@@ -1,26 +1,34 @@
 # 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="An application to enable a blue-light filter on Hyprland"
 HOMEPAGE="https://wiki.hyprland.org/Hypr-Ecosystem/hyprsunset";
-EGIT_REPO_URI="https://github.com/hyprwm/hyprsunset.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="
-       gui-wm/hyprland:=
        dev-libs/wayland
        >=gui-libs/hyprutils-0.2.3:=
+       gui-wm/hyprland:=
 "
 
 DEPEND="
        ${RDEPEND}
-       dev-libs/wayland-protocols
        >=dev-libs/hyprland-protocols-0.4.0
+       dev-libs/wayland-protocols
        >=dev-util/hyprwayland-scanner-0.4.0
        dev-util/wayland-scanner
 "

Reply via email to