kde-apps/kde-l10n: Drop ktp translations
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Mon, 31 Aug 2015 20:23:50 +0000 (22:23 +0200)
committerAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Tue, 1 Sep 2015 21:06:07 +0000 (23:06 +0200)
Before move to kde applications, translations were kept internal -
that makes old ktp:4 packages collide with kde-apps/kde-l10n

Package-Manager: portage-2.2.20.1

kde-apps/kde-l10n/kde-l10n-15.08.0-r1.ebuild

index 2e5e8a539c1b3d7170160894630913ad41373f30..4c2dbb923393eba69dc4a3fb18fe7b64855ac436 100644 (file)
@@ -17,6 +17,7 @@ RDEPEND="
        !<kde-apps/kde4-l10n-${PV}
        !kde-apps/kde4-l10n[-minimal]
        !<kde-apps/kdepim-l10n-${PV}
+       !<kde-apps/ktp-l10n-${PV}
 "
 
 KEYWORDS=" ~amd64 ~x86"
@@ -71,6 +72,13 @@ src_prepare() {
                                                -exec sed -i -e "/add_subdirectory( *${subdir} *)/ s/^/#/" {} +
                                done
 
+                               # Remove ktp translations (part of kde-apps/ktp-l10n)
+                               # Drop that hack (and kde-apps/ktp-l10n) after ktp:4 removal
+                               find "${S}"/${DIR}/5/${LNG}/messages/kdenetwork -type f \
+                                       \( -name kaccounts*po -o -name kcm_ktp*po -o -name kcmtelepathy*po \
+                                       -o -name kded_ktp*po -o -name ktp*po -o -name plasma*ktp*po \) \
+                                       -delete
+
                                # Handbook optional
                                sed -e '/KF5DocTools/ s/ REQUIRED//'\
                                        -i "${S}"/${DIR}/5/${LNG}/CMakeLists.txt || die