diff options
| author | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2016-11-25 15:53:58 +0100 |
|---|---|---|
| committer | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2016-11-25 15:59:20 +0100 |
| commit | 7dfe00ffcb33caeb04dfb8493ce4fdb15fe79204 (patch) | |
| tree | 5fb6fdb318ade87136b9c1eeb6d2241359b4a646 /eclass | |
| parent | 2b96470276845d89a7af008ca21b3316e1a82bef (diff) | |
| download | kde-7dfe00ffcb33caeb04dfb8493ce4fdb15fe79204.tar.gz kde-7dfe00ffcb33caeb04dfb8493ce4fdb15fe79204.tar.bz2 kde-7dfe00ffcb33caeb04dfb8493ce4fdb15fe79204.zip | |
kde5.eclass: Fix install with L10N=""
Diffstat (limited to 'eclass')
| -rw-r--r-- | eclass/kde5.eclass | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass index a6fdfa404f1..53b5eb4d832 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 |
