commit:     c9c4d5e713a374a346b0621ddf1afd1c1b6e6424
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Apr  6 23:52:57 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Apr  7 21:40:00 2017 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=c9c4d5e7

kde5.eclass: Add blocker against kde-apps/kde{,pim}-l10n

Changes in translation handling:
https://mail.kde.org/pipermail/kde-distro-packagers/2017-April/000276.html

 eclass/kde5.eclass | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index f1519b798d..245a1427f3 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -172,13 +172,17 @@ 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/kdepim-l10n:5"
+                               ;;
+               esac
                ;;
 esac
 

Reply via email to