diff options
author | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2015-07-05 21:57:30 +0200 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2015-08-13 23:25:23 +1000 |
commit | f3b24193eec5b25b278c8c23194fd9b9c91f5192 (patch) | |
tree | 689b7cad4a619eeaf71bf519650c6482dbaaccf0 /eclass | |
parent | x11-apps/xrectsel: fix header for git (diff) | |
download | gentoo-f3b24193eec5b25b278c8c23194fd9b9c91f5192.tar.gz gentoo-f3b24193eec5b25b278c8c23194fd9b9c91f5192.tar.bz2 gentoo-f3b24193eec5b25b278c8c23194fd9b9c91f5192.zip |
kde5.eclass: Add KDE_DOC_DIR variable
Defaults to "doc". Otherwise, use alternative KDE handbook path.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kde5.eclass | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass index 384ccb9daf31..d5582a360b3f 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 @@ -387,8 +392,8 @@ kde5_src_prepare() { popd > /dev/null fi - if [[ ${KDE_HANDBOOK} = true ]] ; then - pushd doc > /dev/null + if [[ ${KDE_HANDBOOK} = true && -d ${KDE_DOC_DIR} ]] ; then + pushd ${KDE_DOC_DIR} > /dev/null for lang in *; do if ! has ${lang} ${LINGUAS} ; then comment_add_subdirectory ${lang} |