commit:     0dcbe478843b99daf634f28cbf9395eef408ba79
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu May 18 15:48:46 2023 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu May 18 15:54:49 2023 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=0dcbe478

frameworks.kde.org.eclass: Fixup for KF6 support

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 eclass/frameworks.kde.org.eclass | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/eclass/frameworks.kde.org.eclass b/eclass/frameworks.kde.org.eclass
index 81ac235d01..456902d39c 100644
--- a/eclass/frameworks.kde.org.eclass
+++ b/eclass/frameworks.kde.org.eclass
@@ -37,10 +37,13 @@ HOMEPAGE="https://develop.kde.org/products/frameworks/";
 
 _SLOT=6
 _SUBSLOT=${PV}
-[[ ${KDE_BUILD_TYPE} == release ]] && _SUBSLOT=$(ver_cut 1-2)
+if [[ ${KDE_BUILD_TYPE} == release ]]; then
+       _SUBSLOT=$(ver_cut 1-2)
+else
+       _SUBSLOT=9999
+fi
 if [[ ${PV/.*} == 5 ]]; then
        _SLOT=5
-       [[ ${KDE_BUILD_TYPE} == live ]] && _SUBSLOT=9999
 fi
 SLOT=${_SLOT}/${_SUBSLOT}
 unset _SLOT _SUBSLOT
@@ -59,7 +62,9 @@ _KDE_SRC_URI="mirror://kde/"
 
 case ${KDE_BUILD_TYPE} in
        live)
-               [[ ${PV} == 5.9999 ]] && EGIT_BRANCH="kf5"
+               if [[ ${PV} == 5.9999 ]]; then
+                       EGIT_BRANCH="kf5"
+               fi
                ;;
        *)
                if [[ -z ${KDE_ORG_COMMIT} ]]; then

Reply via email to