summaryrefslogtreecommitdiff
path: root/eclass/kde5.eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2015-07-05 21:57:30 +0200
committerAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2015-07-09 00:36:37 +0200
commitd84a719bf80664380e35a47abd0683463c5f1bc7 (patch)
tree2dd753238f39f9a927a49c63cb919d6c2ae95a14 /eclass/kde5.eclass
parent22de953845b275045356f7f9e9d85fce756d3289 (diff)
downloadkde-d84a719bf80664380e35a47abd0683463c5f1bc7.tar.gz
kde-d84a719bf80664380e35a47abd0683463c5f1bc7.tar.bz2
kde-d84a719bf80664380e35a47abd0683463c5f1bc7.zip
[eclass] Add KDE_DOC_DIR variable
Defaults to "doc". Otherwise, use alternative KDE handbook path.
Diffstat (limited to 'eclass/kde5.eclass')
-rw-r--r--eclass/kde5.eclass9
1 files changed, 7 insertions, 2 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index d54badd82c2..43fb4b1204f 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -77,6 +77,11 @@ fi
# generate and install KDE handbook.
: ${KDE_HANDBOOK:=false}
+# @ECLASS-VARIABLE: KDE_DOC_DIR
+# @DESCRIPTION:
+# Defaults to "doc". Otherwise, use alternative KDE handbook path.
+: ${KDE_DOC_DIR:=doc}
+
# @ECLASS-VARIABLE: KDE_TEST
# @DESCRIPTION:
# If set to "false", do nothing.
@@ -366,7 +371,7 @@ kde5_src_prepare() {
# only enable handbook when required
if ! use_if_iuse handbook ; then
- comment_add_subdirectory doc
+ comment_add_subdirectory ${KDE_DOC_DIR}
fi
# enable only the requested translations
@@ -388,7 +393,7 @@ kde5_src_prepare() {
fi
if [[ ${KDE_HANDBOOK} = true ]] ; then
- pushd doc > /dev/null
+ pushd ${KDE_DOC_DIR} > /dev/null
for lang in *; do
if ! has ${lang} ${LINGUAS} ; then
comment_add_subdirectory ${lang}