diff options
| author | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2016-11-17 15:24:16 +0100 |
|---|---|---|
| committer | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2016-11-17 20:19:24 +0100 |
| commit | 14ad094657f03c6b9e7c5fa179602691f54ecdb3 (patch) | |
| tree | a5dece31c87299678138aac7efff72c4d43bfd46 /eclass/kde5-functions.eclass | |
| parent | 5088d0588be6c93e6f6ea396a3b87a011a44a834 (diff) | |
| download | kde-14ad094657f03c6b9e7c5fa179602691f54ecdb3.tar.gz kde-14ad094657f03c6b9e7c5fa179602691f54ecdb3.tar.bz2 kde-14ad094657f03c6b9e7c5fa179602691f54ecdb3.zip | |
kde5-functions.eclass: Move *_MINIMAL setup here from kde5.eclass
Makes sure that 5.8 LTS stable branch does not raise FRAMEWORKS_MINIMAL
Also bumping FRAMEWORKS_MINIMAL to 5.28.0 for >=Plasma-5.9
Diffstat (limited to 'eclass/kde5-functions.eclass')
| -rw-r--r-- | eclass/kde5-functions.eclass | 37 |
1 files changed, 29 insertions, 8 deletions
diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass index a6bf976663b..1724a6910b2 100644 --- a/eclass/kde5-functions.eclass +++ b/eclass/kde5-functions.eclass @@ -23,6 +23,35 @@ case ${EAPI} in *) 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. @@ -70,14 +99,6 @@ case ${KDE_SCM} in *) 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: |
