kde5.eclass: Add KDE_DOX_DIR variable
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Wed, 7 Oct 2015 23:13:50 +0000 (01:13 +0200)
committerMichael Palimaka <kensington@gentoo.org>
Mon, 26 Oct 2015 17:20:01 +0000 (04:20 +1100)
Defaults to ".". Otherwise, use alternative KDE doxygen path

eclass/kde5.eclass

index 85d2cd77450adec02ff962e214c34ace3066b3da..374c048152b7c39a81523eac874bb29cdf5e2d9b 100644 (file)
@@ -64,6 +64,11 @@ else
        : ${KDE_DOXYGEN:=false}
 fi
 
+# @ECLASS-VARIABLE: KDE_DOX_DIR
+# @DESCRIPTION:
+# Defaults to ".". Otherwise, use alternative KDE doxygen path.
+: ${KDE_DOX_DIR:=.}
+
 # @ECLASS-VARIABLE: KDE_EXAMPLES
 # @DESCRIPTION:
 # If set to "false", unconditionally ignore a top-level examples subdirectory.
@@ -488,7 +493,7 @@ kde5_src_compile() {
 
        # Build doxygen documentation if applicable
        if use_if_iuse doc ; then
-               kgenapidox . || die
+               kgenapidox ${KDE_DOX_DIR} || die
        fi
 }