commit: 212ef97914f409c33cf386aa88e1a17263b8011d
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 23 05:43:17 2024 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Dec 23 17:08:14 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=212ef979
frameworks.kde.org.eclass: Simplify SLOT assignment
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
eclass/frameworks.kde.org.eclass | 15 +++++++--------
1 file 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