sys-apps/corefreq: add version check

-9999 was added without the conditional version check. This commit
adds it for ease of use, and maintainability.

Signed-off-by: bakedsnake <bakedsnake@vagrantz.xyz>
This commit is contained in:
bakedsnake committed 2026-08-12 21:35:56 +02:00
1 parent caf614897c
commit 30b3ad2fa2
1 file changed
+11 -2
@@ -3,11 +3,20 @@
EAPI=8
inherit linux-mod-r1 systemd toolchain-funcs git-r3
inherit linux-mod-r1 systemd toolchain-funcs
DESCRIPTION="CPU monitoring and tuning software designed for 64-bit processors"
HOMEPAGE="https://github.com/cyring"
EGIT_REPO_URI="https://github.com/cyring/CoreFreq.git"
if [[ "${PV}" = *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/cyring/CoreFreq.git"
else
SRC_URI="https://github.com/cyring/CoreFreq/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/CoreFreq-${PV}"
KEYWORDS="-* ~amd64"
fi
LICENSE="GPL-2"
SLOT="0"