From 0daf768ae1459d9210586f1f4c32dda9547f7341 Mon Sep 17 00:00:00 2001 From: Johannes Huber Date: Fri, 4 Apr 2025 23:35:02 +0200 Subject: [PATCH] gui-apps/hyprsunset: improve live - sort deps - live/release switch for easy version bumps Signed-off-by: Johannes Huber --- 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 bad110fddf..3db97109e1 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 "