commit:     d57290d4bfea89e31f93047a634d4f74b25c167b
Author:     Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Fri Dec 16 23:49:32 2016 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Sun Dec 18 10:02:50 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d57290d4

kde5.eclass: Fix configure with >=kde-apps/kde-l10n-16.12.0 L10N=sr

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 <AT> gentoo.org>

 eclass/kde5.eclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 3669536..ebdd790 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -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
 }
 

Reply via email to