commit: 4ab18c0eb95f77f908684abe6e9b9a5a02cea66b
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Fri Nov 25 14:53:58 2016 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sat Nov 26 16:14:01 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ab18c0e
kde5.eclass: Fix install with L10N=""
eclass/kde5.eclass | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index a6fdfa4..53b5eb4 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -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