diff options
| author | Andreas Sturmlechner <asturm@gentoo.org> | 2024-12-06 23:41:45 +0100 |
|---|---|---|
| committer | Andreas Sturmlechner <asturm@gentoo.org> | 2024-12-12 21:58:59 +0100 |
| commit | e023b5c41e613f513ef8db389bf698274515c549 (patch) | |
| tree | 39d427b3e7cfa1078b0988f7b21298e499103fd2 /eclass/plasma.kde.org.eclass | |
| parent | 42a0234582907c844098bc1da057c28e6a75189b (diff) | |
| download | kde-e023b5c41e613f513ef8db389bf698274515c549.tar.gz kde-e023b5c41e613f513ef8db389bf698274515c549.tar.bz2 kde-e023b5c41e613f513ef8db389bf698274515c549.zip | |
plasma.kde.org.eclass: Introduce KDE_CATV
Holds main Plasma release number (major.minor.micro) for use on same-category
dependencies.
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/plasma.kde.org.eclass')
| -rw-r--r-- | eclass/plasma.kde.org.eclass | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/eclass/plasma.kde.org.eclass b/eclass/plasma.kde.org.eclass index 1a626de37bf..6612028e298 100644 --- a/eclass/plasma.kde.org.eclass +++ b/eclass/plasma.kde.org.eclass @@ -25,6 +25,13 @@ esac if [[ -z ${_PLASMA_KDE_ORG_ECLASS} ]]; then _PLASMA_KDE_ORG_ECLASS=1 +# @ECLASS_VARIABLE: KDE_CATV +# @DESCRIPTION: +# Holds main Plasma release number (major.minor.micro) for use on same-category +# dependencies. +KDE_CATV=$(ver_cut 1-3) +readonly KDE_CATV + # @ECLASS_VARIABLE: KDE_PV_UNRELEASED # @INTERNAL # @DESCRIPTION: @@ -64,10 +71,10 @@ if [[ ${KDE_BUILD_TYPE} == live ]]; then elif [[ -z ${KDE_ORG_COMMIT} ]]; then case ${PV} in 5.??.[6-9][05]* | 6.?.[6-9][05]* ) - _KDE_SRC_URI+="unstable/plasma/$(ver_cut 1-3)/" + _KDE_SRC_URI+="unstable/plasma/${KDE_CATV}/" RESTRICT+=" mirror" ;; - *) _KDE_SRC_URI+="stable/plasma/$(ver_cut 1-3)/" ;; + *) _KDE_SRC_URI+="stable/plasma/${KDE_CATV}/" ;; esac SRC_URI="${_KDE_SRC_URI}${KDE_ORG_TAR_PN}-${PV}.tar.xz" |
