kde-apps/kde-l10n: Revision bump drops kdepim translations
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Thu, 27 Aug 2015 19:42:01 +0000 (21:42 +0200)
committerAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Tue, 1 Sep 2015 20:58:04 +0000 (22:58 +0200)
These are going to be split out into kde-apps/kdepim-l10n

Package-Manager: portage-2.2.20.1

kde-apps/kde-l10n/kde-l10n-15.08.0-r1.ebuild [moved from kde-apps/kde-l10n/kde-l10n-15.08.0.ebuild with 87% similarity]

similarity index 87%
rename from kde-apps/kde-l10n/kde-l10n-15.08.0.ebuild
rename to kde-apps/kde-l10n/kde-l10n-15.08.0-r1.ebuild
index 4e5275129ed9319d35ef148c0f47334960adc331..2e5e8a539c1b3d7170160894630913ad41373f30 100644 (file)
@@ -15,6 +15,8 @@ DEPEND="
 "
 RDEPEND="
        !<kde-apps/kde4-l10n-${PV}
+       !kde-apps/kde4-l10n[-minimal]
+       !<kde-apps/kdepim-l10n-${PV}
 "
 
 KEYWORDS=" ~amd64 ~x86"
@@ -63,6 +65,12 @@ src_prepare() {
                                sed -e '/add_subdirectory(4)/ s/^/#/'\
                                        -i "${S}"/${DIR}/CMakeLists.txt || die
 
+                               # Remove kdepim translations (part of kde-apps/kdepim-l10n)
+                               for subdir in kdepim kdepimlibs kdepim-runtime pim; do
+                                       find "${S}/${DIR}" -name CMakeLists.txt -type f \
+                                               -exec sed -i -e "/add_subdirectory( *${subdir} *)/ s/^/#/" {} +
+                               done
+
                                # Handbook optional
                                sed -e '/KF5DocTools/ s/ REQUIRED//'\
                                        -i "${S}"/${DIR}/5/${LNG}/CMakeLists.txt || die