summaryrefslogtreecommitdiff
path: root/eclass/plasma.kde.org.eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-15 20:53:45 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-15 20:53:45 +0000
commit20e7188871e6d724b707132f925b9872536a91a0 (patch)
tree1b8d527714db0a937011ad650939d9152d36506c /eclass/plasma.kde.org.eclass
parente4769acf6646f4b0ef28cb695cec8ed128aba920 (diff)
gentoo auto-resync : 15:12:2023 - 20:53:45
Diffstat (limited to 'eclass/plasma.kde.org.eclass')
-rw-r--r--eclass/plasma.kde.org.eclass31
1 files changed, 29 insertions, 2 deletions
diff --git a/eclass/plasma.kde.org.eclass b/eclass/plasma.kde.org.eclass
index 367ad94a6139..7a829b859676 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
@@ -57,10 +67,27 @@ elif [[ -z ${KDE_ORG_COMMIT} ]]; then
_KDE_SRC_URI+="unstable/plasma/$(ver_cut 1-3)/"
RESTRICT+=" mirror"
;;
+ 5.9?.0* )
+ _KDE_SRC_URI+="unstable/plasma/$(ver_cut 1-3)/"
+ RESTRICT+=" mirror"
+ ;;
*) _KDE_SRC_URI+="stable/plasma/$(ver_cut 1-3)/" ;;
esac
- SRC_URI="${_KDE_SRC_URI}${KDE_ORG_NAME}-${PV}.tar.xz"
+ SRC_URI="${_KDE_SRC_URI}${KDE_ORG_TAR_PN}-${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