summaryrefslogtreecommitdiff
path: root/eclass/plasma.kde.org.eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2023-11-29 21:23:17 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2023-11-29 21:27:20 +0100
commit4933c28677189614a6025a68939207ad78b5e014 (patch)
tree541e61a1ca3dc8bbae8146d255e1601f53cf6604 /eclass/plasma.kde.org.eclass
parent6719012606ef35c6385c40a5b491a7d7d0bcd96e (diff)
downloadkde-4933c28677189614a6025a68939207ad78b5e014.tar.gz
kde-4933c28677189614a6025a68939207ad78b5e014.tar.bz2
kde-4933c28677189614a6025a68939207ad78b5e014.zip
plasma.kde.org.eclass: Add _PSLOT major version mapping, SLOT 5 blocker
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/plasma.kde.org.eclass')
-rw-r--r--eclass/plasma.kde.org.eclass25
1 files changed, 24 insertions, 1 deletions
diff --git a/eclass/plasma.kde.org.eclass b/eclass/plasma.kde.org.eclass
index 367ad94a613..8326a7b5ed3 100644
--- a/eclass/plasma.kde.org.eclass
+++ b/eclass/plasma.kde.org.eclass
@@ -31,6 +31,16 @@ _PLASMA_KDE_ORG_ECLASS=1
# For proper description see kde.org.eclass manpage.
KDE_PV_UNRELEASED=( )
+# @ECLASS_VARIABLE: _PSLOT
+# @INTERNAL
+# @DESCRIPTION:
+# KDE Plasma major version mapping, implied by package version. This is being
+# used throughout the eclass as a switch between Plasma 5 and 6 packages.
+_PSLOT=6
+if $(ver_test -lt 5.27.50); then
+ _PSLOT=5
+fi
+
inherit kde.org
HOMEPAGE="https://kde.org/plasma-desktop"
@@ -39,7 +49,7 @@ HOMEPAGE="https://kde.org/plasma-desktop"
# @INTERNAL
# @DESCRIPTION:
# For proper description see kde.org.eclass manpage.
-KDE_ORG_SCHEDULE_URI+="/Plasma_5"
+KDE_ORG_SCHEDULE_URI+="/Plasma_${_PSLOT}"
# @ECLASS_VARIABLE: _KDE_SRC_URI
# @INTERNAL
@@ -63,4 +73,17 @@ elif [[ -z ${KDE_ORG_COMMIT} ]]; then
SRC_URI="${_KDE_SRC_URI}${KDE_ORG_NAME}-${PV}.tar.xz"
fi
+if [[ ${_PSLOT} == 6 ]]; then
+ case ${PN} in
+ kglobalacceld | \
+ kwayland | \
+ libplasma | \
+ ocean-sound-theme | \
+ plasma-activities | \
+ plasma-activities-stats | \
+ plasma5support) ;;
+ *) RDEPEND+=" !kde-plasma/${PN}:5" ;;
+ esac
+fi
+
fi