kde5.eclass: Fix install with L10N=""
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Fri, 25 Nov 2016 14:53:58 +0000 (15:53 +0100)
committerMichael Palimaka <kensington@gentoo.org>
Sat, 26 Nov 2016 16:14:01 +0000 (03:14 +1100)
eclass/kde5.eclass

index a6fdfa404f1c8b41f192a60055cbccec828fe8f3..53b5eb4d832f90cab83194259c622fe345e66862 100644 (file)
@@ -500,13 +500,17 @@ kde5_src_prepare() {
                        rm -r kde-l10n-sr-${PV} || die "Failed to remove sr parent lingua"
                fi
 
-               # add all l10n directories to cmake
                cat <<-EOF > CMakeLists.txt || die
-project(${PN})
-cmake_minimum_required(VERSION 2.8.12)
-$(printf "add_subdirectory( %s )\n" \
-       `find . -mindepth 1 -maxdepth 1 -type d | sed -e "s:^\./::"`)
-EOF
+               project(${PN})
+               cmake_minimum_required(VERSION 2.8.12)
+               EOF
+               # add all l10n directories to cmake
+               if [[ -n ${A} ]]; then
+                       cat <<-EOF >> CMakeLists.txt || die
+                       $(printf "add_subdirectory( %s )\n" \
+                               `find . -mindepth 1 -maxdepth 1 -type d | sed -e "s:^\./::"`)
+                       EOF
+               fi
 
                # for KF5: drop KDE4-based part; for KDE4: drop KF5-based part
                case ${l10npart} in