kde5.eclass: Fix configure with >=kde-apps/kde-l10n-16.12.0 L10N=sr
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Fri, 16 Dec 2016 23:49:32 +0000 (00:49 +0100)
committerJohannes Huber <johu@gentoo.org>
Sun, 18 Dec 2016 10:02:50 +0000 (11:02 +0100)
Upstream added a subdirectory that should not be added to the project.

Closes: https://github.com/gentoo/gentoo/pull/3139
Signed-off-by: Johannes Huber <johu@gentoo.org>
eclass/kde5.eclass

index 3669536737d3df9daeccec893602809a551593ad..ebdd790de334439a9b57010add947dd0004c26d9 100644 (file)
@@ -773,7 +773,9 @@ _l10n_variant_subdir_buster() {
        esac
 
        for subdir in $(find ${dir} -mindepth 1 -maxdepth 1 -type d | sed -e "s:^\./::"); do
-               echo "add_subdirectory(${subdir##*/})" >> ${dir}/CMakeLists.txt
+               if [[ ${subdir##*/} != "cmake_modules" ]] ; then
+                       echo "add_subdirectory(${subdir##*/})" >> ${dir}/CMakeLists.txt || die
+               fi
        done
 }