*) die "EAPI=${EAPI:-0} is not supported" ;;
esac
+# determine the build type
+if [[ ${PV} = *9999* ]]; then
+ KDE_BUILD_TYPE="live"
+else
+ KDE_BUILD_TYPE="release"
+fi
+export KDE_BUILD_TYPE
+
+case ${CATEGORY} in
+ kde-frameworks)
+ [[ ${KDE_BUILD_TYPE} = live ]] && : ${FRAMEWORKS_MINIMAL:=9999}
+ ;;
+ kde-plasma)
+ if [[ $(get_version_component_range 2) -eq 8 && $(get_version_component_range 3) -lt 50 ]]; then
+ : ${FRAMEWORKS_MINIMAL:=5.26.0} # special 5.8 LTS rule to not get overwritten below
+ elif ! [[ $(get_version_component_range 2) -le 8 && $(get_version_component_range 3) -lt 50 ]]; then
+ : ${FRAMEWORKS_MINIMAL:=5.28.0}
+ fi
+ [[ ${KDE_BUILD_TYPE} = live ]] && : ${FRAMEWORKS_MINIMAL:=9999}
+ ;;
+ kde-apps)
+ local vcr2=$((10#$(get_version_component_range 2)))
+ if ! [[ $(get_version_component_range 1) -le 16 && ${vcr2} -lt 9 ]]; then
+ : ${FRAMEWORKS_MINIMAL:=5.28.0}
+ fi
+ unset vcr2
+ ;;
+esac
+
# @ECLASS-VARIABLE: QT_MINIMAL
# @DESCRIPTION:
# Minimal Qt version to require for the package.
*) die "KDE_SCM: ${KDE_SCM} is not supported" ;;
esac
-# determine the build type
-if [[ ${PV} = *9999* ]]; then
- KDE_BUILD_TYPE="live"
-else
- KDE_BUILD_TYPE="release"
-fi
-export KDE_BUILD_TYPE
-
# @FUNCTION: _check_gcc_version
# @INTERNAL
# @DESCRIPTION:
case ${KDE_AUTODEPS} in
false) ;;
*)
- if [[ ${KDE_BUILD_TYPE} = live ]]; then
- case ${CATEGORY} in
- kde-frameworks)
- : ${FRAMEWORKS_MINIMAL:=9999}
- ;;
- kde-plasma)
-
- : ${FRAMEWORKS_MINIMAL:=9999}
- ;;
- *) ;;
- esac
- fi
-
- if [[ ${CATEGORY} = kde-plasma && ${FRAMEWORKS_MINIMAL} != 9999 ]]; then
- if ! [[ $(get_version_component_range 2) -le 8 && $(get_version_component_range 3) -lt 50 ]]; then
- : ${FRAMEWORKS_MINIMAL:=5.27.0}
- fi
- fi
-
- if [[ ${CATEGORY} = kde-apps ]]; then
- local vcr2=$((10#$(get_version_component_range 2)))
- if ! [[ $(get_version_component_range 1) -le 16 && ${vcr2} -lt 9 ]]; then
- : ${FRAMEWORKS_MINIMAL:=5.28.0}
- fi
- unset vcr2
- fi
-
DEPEND+=" $(add_frameworks_dep extra-cmake-modules)"
RDEPEND+=" >=kde-frameworks/kf-env-3"
COMMONDEPEND+=" $(add_qt_dep qtcore)"