commit:     f2cd8c1e3ea46173ab2f884b8b8ef9e36cc7f49f
Author:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  3 21:10:39 2018 +0000
Commit:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Sun Jun  3 21:18:11 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2cd8c1e

app-doc/doxygen: fix warning about unused variable if USE=-doc

Closes: https://bugs.gentoo.org/652064
Package-Manager: Portage-2.3.40, Repoman-2.3.9

 app-doc/doxygen/doxygen-1.8.14.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app-doc/doxygen/doxygen-1.8.14.ebuild 
b/app-doc/doxygen/doxygen-1.8.14.ebuild
index 502086e771c..871e295e975 100644
--- a/app-doc/doxygen/doxygen-1.8.14.ebuild
+++ b/app-doc/doxygen/doxygen-1.8.14.ebuild
@@ -99,13 +99,15 @@ src_prepare() {
 
 src_configure() {
        local mycmakeargs=(
-               -DDOC_INSTALL_DIR="share/doc/${P}"
                -Duse_libclang=$(usex clang)
                -Dbuild_doc=$(usex doc)
                -Dbuild_search=$(usex doxysearch)
                -Dbuild_wizard=$(usex qt5)
                -Duse_sqlite3=$(usex sqlite)
                )
+       use doc && mycmakeargs+=(
+               -DDOC_INSTALL_DIR="share/doc/${P}"
+               )
 
        cmake-utils_src_configure
 }

Reply via email to