summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2022-12-11 18:57:31 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2023-11-26 00:33:24 +0100
commit5c3bfa331387b445ac36c3fe71ec6c956e9ffe6c (patch)
treeb3ed8d30c1429b2428b49a8b8c9f0a957134da93 /eclass
parentframeworks.kde.org.eclass: Switch 5.9999 to kf5 branch (diff)
downloadgentoo-5c3bfa331387b445ac36c3fe71ec6c956e9ffe6c.tar.gz
gentoo-5c3bfa331387b445ac36c3fe71ec6c956e9ffe6c.tar.bz2
gentoo-5c3bfa331387b445ac36c3fe71ec6c956e9ffe6c.zip
frameworks.kde.org.eclass: Support KF6, set ECM to SLOT=0
Define SLOT=6 properly for >=5.240, excluding 5.9999 git master was set to 5.240 for KF6 ports, unstable KF6 releases use numbers 5.245 and above. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/frameworks.kde.org.eclass15
1 files changed, 13 insertions, 2 deletions
diff --git a/eclass/frameworks.kde.org.eclass b/eclass/frameworks.kde.org.eclass
index af8e7b86f5a2..5d54b736c91b 100644
--- a/eclass/frameworks.kde.org.eclass
+++ b/eclass/frameworks.kde.org.eclass
@@ -35,8 +35,19 @@ inherit kde.org
HOMEPAGE="https://develop.kde.org/products/frameworks/"
-SLOT=5/${PV}
-[[ ${KDE_BUILD_TYPE} == release ]] && SLOT=$(ver_cut 1)/$(ver_cut 1-2)
+SLOT=6
+if [[ ${PV} == 5.9999 ]] || ver_test ${PV} -lt 5.240; then
+ SLOT=5
+fi
+if [[ ${PN} == extra-cmake-modules ]]; then
+ SLOT=0
+else
+ if [[ ${KDE_BUILD_TYPE} == release ]]; then
+ SLOT=${SLOT}/$(ver_cut 1-2)
+ else
+ SLOT=${SLOT}/9999
+ fi
+fi
# @ECLASS_VARIABLE: KDE_ORG_SCHEDULE_URI
# @INTERNAL