gui-apps/hyprsunset: improve live

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

Signed-off-by: Johannes Huber <johu@gmx.de>
This commit is contained in:
Johannes Huber
2025-04-04 23:35:02 +02:00
parent 89d18710eb
commit 0daf768ae1

View File

@@ -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
"