kde5*eclass: KDE Applications 17.04.0 improvements
authorJohannes Huber <johu@gentoo.org>
Thu, 20 Apr 2017 15:34:56 +0000 (17:34 +0200)
committerJohannes Huber <johu@gentoo.org>
Thu, 20 Apr 2017 16:22:39 +0000 (18:22 +0200)
Sync with kde overlay.

eclass/kde5-functions.eclass
eclass/kde5.eclass

index c4e2ad774bf2c2789d402f64b4e430c0a445e7ee..ba4abbd449059d17f00c197b01c9748479b6d322 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: kde5-functions.eclass
@@ -43,6 +43,14 @@ case ${CATEGORY} in
                        : ${QT_MINIMAL:=5.7.1}
                fi
                ;;
+       kde-apps)
+               if [[ $(get_version_component_range 1) -ge 17 ]]; then
+                       : ${FRAMEWORKS_MINIMAL:=5.32.0}
+               fi
+               if [[ ${KDE_BUILD_TYPE} = live ]]; then
+                       : ${QT_MINIMAL:=5.7.1}
+               fi
+               ;;
 esac
 
 # @ECLASS-VARIABLE: QT_MINIMAL
index 106383bb05c32aeee50d0ee0091a4eeb27bee19a..e071a82b5d0ed8faa5086da3c656fa27421821dc 100644 (file)
@@ -172,13 +172,21 @@ case ${KDE_AUTODEPS} in
                RDEPEND+=" >=kde-frameworks/kf-env-4"
                COMMONDEPEND+=" $(add_qt_dep qtcore)"
 
-               if [[ ${CATEGORY} = kde-frameworks || ${CATEGORY} = kde-plasma && ${PN} != polkit-kde-agent ]]; then
-                       RDEPEND+=" !<kde-apps/kde4-l10n-15.12.3-r1"
-               fi
-
-               if [[ ${KDE_BLOCK_SLOT4} = true && ${CATEGORY} = kde-apps ]]; then
-                       RDEPEND+=" !kde-apps/${PN}:4"
-               fi
+               case ${CATEGORY} in
+                       kde-frameworks | \
+                       kde-plasma)
+                               RDEPEND+=" !<kde-apps/kde4-l10n-15.12.3-r1"
+                               ;;
+                       kde-apps)
+                               [[ ${KDE_BLOCK_SLOT4} = true ]] && RDEPEND+=" !kde-apps/${PN}:4"
+                               [[ $(get_version_component_range 1) -ge 17 ]] && \
+                                       RDEPEND+="
+                                               !kde-apps/kde-l10n
+                                               !<kde-apps/kde4-l10n-16.12.0:4
+                                               !kde-apps/kdepim-l10n:5
+                                       "
+                               ;;
+               esac
                ;;
 esac
 
@@ -546,6 +554,7 @@ kde5_src_prepare() {
                                rm -r ${lang} || die
                                if [[ -e CMakeLists.txt ]] ; then
                                        cmake_comment_add_subdirectory ${lang}
+                                       sed -e "/add_subdirectory([[:space:]]*${lang}\/.*[[:space:]]*)/d" -i CMakeLists.txt || die
                                fi
                        elif [[ -f ${lang} ]] && ! has ${lang/.po/} ${LINGUAS} ; then
                                if [[ ${lang} != CMakeLists.txt && ${lang} != ${PN}.pot ]] ; then