summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2024-12-23 06:43:17 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2024-12-23 18:08:14 +0100
commit212ef97914f409c33cf386aa88e1a17263b8011d (patch)
tree6fe3b380ff9f05a3be21d2053322eb82bdd4f12a /eclass
parentkde-misc/krusader: drop 2.9.0_pre20241214 (diff)
downloadgentoo-212ef97914f409c33cf386aa88e1a17263b8011d.tar.gz
gentoo-212ef97914f409c33cf386aa88e1a17263b8011d.tar.bz2
gentoo-212ef97914f409c33cf386aa88e1a17263b8011d.zip
frameworks.kde.org.eclass: Simplify SLOT assignment
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/frameworks.kde.org.eclass15
1 files changed, 7 insertions, 8 deletions
diff --git a/eclass/frameworks.kde.org.eclass b/eclass/frameworks.kde.org.eclass
index e1dc77c93561..f66a6b7efba5 100644
--- a/eclass/frameworks.kde.org.eclass
+++ b/eclass/frameworks.kde.org.eclass
@@ -46,15 +46,14 @@ SLOT=6
if 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
+case ${PN} in
+ extra-cmake-modules)
+ SLOT=0
+ ;;
+ *)
SLOT=${SLOT}/${KDE_CATV}
- else
- SLOT=${SLOT}/9999
- fi
-fi
+ ;;
+esac
# @ECLASS_VARIABLE: KDE_ORG_SCHEDULE_URI
# @INTERNAL