summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2015-11-05 04:20:02 +1100
committerMichael Palimaka <kensington@gentoo.org>2015-11-05 04:22:54 +1100
commita987517f8c83ba8028d8dae005f11b0466a32a55 (patch)
treefa6cd5bc4ef50430eed6ee0684c8b7a82068a798 /eclass
parent643397322c5828a28ea8c7980ceabdab641d2527 (diff)
downloadkde-a987517f8c83ba8028d8dae005f11b0466a32a55.tar.gz
kde-a987517f8c83ba8028d8dae005f11b0466a32a55.tar.bz2
kde-a987517f8c83ba8028d8dae005f11b0466a32a55.zip
kde5.eclass: introduce "forceoptional" value for KDE_HANDBOOK
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kde5.eclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 315779f35e1..4ddcea7c886 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -80,6 +80,8 @@ fi
# If set to "false", do nothing.
# Otherwise, add "+handbook" to IUSE, add the appropriate dependency, and
# generate and install KDE handbook.
+# If set to "forceoptional", remove a KF5DocTools dependency from the root
+# CMakeLists.txt in addition to the above.
: ${KDE_HANDBOOK:=false}
# @ECLASS-VARIABLE: KDE_DOC_DIR
@@ -471,7 +473,7 @@ kde5_src_prepare() {
popd > /dev/null || die
fi
- if [[ ${KDE_HANDBOOK} = true && -d ${KDE_DOC_DIR} && ${CATEGORY} != kde-apps ]] ; then
+ if [[ ${KDE_HANDBOOK} != false && -d ${KDE_DOC_DIR} && ${CATEGORY} != kde-apps ]] ; then
pushd ${KDE_DOC_DIR} > /dev/null || die
for lang in *; do
if ! has ${lang} ${LINGUAS} ; then
@@ -511,6 +513,12 @@ kde5_src_prepare() {
;;
esac
+ if [[ ${KDE_HANDBOOK} = forceoptional ]] ; then
+ if ! use_if_iuse handbook ; then
+ punt_bogus_dep KF5 DocTools
+ fi
+ fi
+
cmake-utils_src_prepare
}