sys-devel/clang: Fix installing extra tool docs to docdir
authorMichał Górny <mgorny@gentoo.org>
Thu, 6 Apr 2017 07:40:27 +0000 (09:40 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 6 Apr 2017 12:47:55 +0000 (14:47 +0200)
sys-devel/clang/clang-4.0.0-r1.ebuild
sys-devel/clang/clang-9999.ebuild

index cd232123da279a2a852621756eb53336a1ab4d22..b8ce12c11d4d76ced4e350dd26a19cd0e5134c46 100644 (file)
@@ -187,6 +187,7 @@ multilib_src_configure() {
                )
                use doc && mycmakeargs+=(
                        -DCLANG_INSTALL_SPHINX_HTML_DIR="${EPREFIX}/usr/share/doc/${PF}/html"
+                       -DCLANG-TOOLS_INSTALL_SPHINX_HTML_DIR="${EPREFIX}/usr/share/doc/${PF}/tools-extra"
                        -DSPHINX_WARNINGS_AS_ERRORS=OFF
                )
        else
@@ -293,4 +294,6 @@ multilib_src_install_all() {
        fi
 
        docompress "/usr/lib/llvm/${SLOT}/share/man"
+       # match 'html' non-compression
+       use doc && docompress -x "/usr/share/doc/${PF}/tools-extra"
 }
index 03ed29156ba4f986081528436e9ffa440b4957dc..cd95492a02c5bd4ce4ee0285714f28a9f4ad6eb2 100644 (file)
@@ -184,6 +184,7 @@ multilib_src_configure() {
                )
                use doc && mycmakeargs+=(
                        -DCLANG_INSTALL_SPHINX_HTML_DIR="${EPREFIX}/usr/share/doc/${PF}/html"
+                       -DCLANG-TOOLS_INSTALL_SPHINX_HTML_DIR="${EPREFIX}/usr/share/doc/${PF}/tools-extra"
                        -DSPHINX_WARNINGS_AS_ERRORS=OFF
                )
        else
@@ -290,4 +291,6 @@ multilib_src_install_all() {
        fi
 
        docompress "/usr/lib/llvm/${SLOT}/share/man"
+       # match 'html' non-compression
+       use doc && docompress -x "/usr/share/doc/${PF}/tools-extra"
 }