summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2016-08-03 15:04:27 +0200
committerMichael Palimaka <kensington@gentoo.org>2016-09-01 00:23:26 +1000
commit013f93f7c42e3943ebf093422a7e239aa2265cd0 (patch)
tree419792f75365739a5ccc71e418bed840ba485189 /eclass
parentkde5.eclass: Don't remove existing po/${PN}.pot file (diff)
downloadgentoo-013f93f7c42e3943ebf093422a7e239aa2265cd0.tar.gz
gentoo-013f93f7c42e3943ebf093422a7e239aa2265cd0.tar.bz2
gentoo-013f93f7c42e3943ebf093422a7e239aa2265cd0.zip
kde5.eclass: Fix doc install if LINGUAS is undefined
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kde5.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 887a84bd9f69..c1dd3b5d6815 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -455,6 +455,7 @@ EOF
# when required
if [[ -d po && -v LINGUAS ]] ; then
pushd po > /dev/null || die
+ local lang
for lang in *; do
if [[ -d ${lang} ]] && ! has ${lang} ${LINGUAS} ; then
rm -r ${lang} || die
@@ -470,9 +471,10 @@ EOF
popd > /dev/null || die
fi
- if [[ ${KDE_BUILD_TYPE} = release ]] ; then
- if [[ ${KDE_HANDBOOK} != false && -d ${KDE_DOC_DIR} && ${CATEGORY} != kde-apps ]] ; then
+ if [[ ${KDE_BUILD_TYPE} = release && ${CATEGORY} != kde-apps ]] ; then
+ if [[ ${KDE_HANDBOOK} != false && -d ${KDE_DOC_DIR} && -v LINGUAS ]] ; then
pushd ${KDE_DOC_DIR} > /dev/null || die
+ local lang
for lang in *; do
if ! has ${lang} ${LINGUAS} ; then
cmake_comment_add_subdirectory ${lang}