summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2017-04-20 17:34:56 +0200
committerJohannes Huber <johu@gentoo.org>2017-04-20 18:22:39 +0200
commit6a042ca93acfe1ac0ff94b5da9e13566d86b55d2 (patch)
treecb4104a878e17f4d4557e5ca6252eac3c3554f41 /eclass/kde5.eclass
parentdev-python/traits: removed syntax conversion for tests (diff)
downloadgentoo-6a042ca93acfe1ac0ff94b5da9e13566d86b55d2.tar.gz
gentoo-6a042ca93acfe1ac0ff94b5da9e13566d86b55d2.tar.bz2
gentoo-6a042ca93acfe1ac0ff94b5da9e13566d86b55d2.zip
kde5*eclass: KDE Applications 17.04.0 improvements
Sync with kde overlay.
Diffstat (limited to 'eclass/kde5.eclass')
-rw-r--r--eclass/kde5.eclass23
1 files changed, 16 insertions, 7 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 106383bb05c3..e071a82b5d0e 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -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