1 |
commit: 013f93f7c42e3943ebf093422a7e239aa2265cd0 |
2 |
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Aug 3 13:04:27 2016 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 31 14:23:26 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=013f93f7 |
7 |
|
8 |
kde5.eclass: Fix doc install if LINGUAS is undefined |
9 |
|
10 |
eclass/kde5.eclass | 6 ++++-- |
11 |
1 file changed, 4 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass |
14 |
index 887a84b..c1dd3b5 100644 |
15 |
--- a/eclass/kde5.eclass |
16 |
+++ b/eclass/kde5.eclass |
17 |
@@ -455,6 +455,7 @@ EOF |
18 |
# when required |
19 |
if [[ -d po && -v LINGUAS ]] ; then |
20 |
pushd po > /dev/null || die |
21 |
+ local lang |
22 |
for lang in *; do |
23 |
if [[ -d ${lang} ]] && ! has ${lang} ${LINGUAS} ; then |
24 |
rm -r ${lang} || die |
25 |
@@ -470,9 +471,10 @@ EOF |
26 |
popd > /dev/null || die |
27 |
fi |
28 |
|
29 |
- if [[ ${KDE_BUILD_TYPE} = release ]] ; then |
30 |
- if [[ ${KDE_HANDBOOK} != false && -d ${KDE_DOC_DIR} && ${CATEGORY} != kde-apps ]] ; then |
31 |
+ if [[ ${KDE_BUILD_TYPE} = release && ${CATEGORY} != kde-apps ]] ; then |
32 |
+ if [[ ${KDE_HANDBOOK} != false && -d ${KDE_DOC_DIR} && -v LINGUAS ]] ; then |
33 |
pushd ${KDE_DOC_DIR} > /dev/null || die |
34 |
+ local lang |
35 |
for lang in *; do |
36 |
if ! has ${lang} ${LINGUAS} ; then |
37 |
cmake_comment_add_subdirectory ${lang} |