kde-apps/kde4-l10n: Drop block against kde-base/kdepim-l10n
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Thu, 27 Aug 2015 19:38:20 +0000 (21:38 +0200)
committerAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Tue, 1 Sep 2015 20:58:04 +0000 (22:58 +0200)
15.08.0 does not contain the conflicting files anymore.

Package-Manager: portage-2.2.20.1

kde-apps/kde4-l10n/files/kde4-l10n-15.07.90-remove-dirs
kde-apps/kde4-l10n/kde4-l10n-15.08.0-r1.ebuild [moved from kde-apps/kde4-l10n/kde4-l10n-15.08.0.ebuild with 89% similarity]

index 4c4ea64b4ae88f4293ee555d1e9ab45112238fc7..005cab196344d7966942450cf741510ea751ffa6 100644 (file)
@@ -47,4 +47,3 @@ docs/kde-workspace/kcontrol kcmaccess
 docs/kde-workspace/kcontrol kcmstyle
 docs/kde-workspace/kcontrol solid-actions
 docs/kde-workspace/kcontrol splashscreen
-
similarity index 89%
rename from kde-apps/kde4-l10n/kde4-l10n-15.08.0.ebuild
rename to kde-apps/kde4-l10n/kde4-l10n-15.08.0-r1.ebuild
index 65c2b29d0f661bb0aab8041765d2480fbe91ff58..ef8076384291b8d58e1c09f5e710c8d34895b12e 100644 (file)
@@ -16,7 +16,6 @@ DEPEND="
 "
 RDEPEND="
        !<kde-apps/kde-l10n-${PV}
-       !kde-base/kdepim-l10n
 "
 
 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
@@ -88,8 +87,8 @@ src_prepare() {
 
                                        # Remove dirs
                                        while read path; do
-                                               if [[ -e "${SDIR}"/${path%\ *}/CMakeLists.txt ]] ; then
-                                                       sed -e "/${path#*\ }/ s/^/#/"\
+                                               if [[ -n ${path} && -e "${SDIR}"/${path%\ *}/CMakeLists.txt ]] ; then
+                                                       sed -e ":${path#*\ }: s:^:#:"\
                                                                -i "${SDIR}"/${path%\ *}/CMakeLists.txt
                                                fi
                                        done < <(grep -v "^#" "${REMOVE_DIRS}")
@@ -104,14 +103,10 @@ src_prepare() {
                                        done
                                else
                                        if [[ -d "${KMNAME}-${LNG}-${LV}" ]] ; then
-                                               # Create missing kdepim directories
-                                               local subdirs="kdepim kdepimlibs kdepim-runtime"
-                                               for path in ${subdirs}; do
-                                                       mkdir -p "${SDIR}"/messages/${path} || die
-                                                       echo "add_subdirectory(${path})" >> \
-                                                               "${SDIR}"/messages/CMakeLists.txt
+                                               # Do not try to copy kdepim localisation
+                                               for path in kdepim kdepimlibs kdepim-runtime; do
+                                                       rm -rf "${KMNAME}-${LNG}-${LV}/messages/${path}" || die
                                                done
-                                               unset subdirs
                                                # Merge legacy localisation
                                                for path in $(find "${KMNAME}-${LNG}-${LV}" -name "*.po"); do
                                                        cp -rn "${path}" "${path/${LV}/${PV}/4/${LNG}}" || die
@@ -122,6 +117,8 @@ src_prepare() {
                        fi
                done
        fi
+
+       kde4-base_src_prepare
 }
 
 src_configure() {