commit:     2f1b6afe266c1d9ead2393dae1bb4ddbffc95f54
Author:     François Bissey <frp.bissey <AT> gmail <DOT> com>
AuthorDate: Mon Mar 15 08:07:15 2021 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Tue Mar 16 22:42:05 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f1b6afe

sci-mathematics/topcom: define HTML_DOCS only when doc is in USE.

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Bug: https://bugs.gentoo.org/776310
Signed-off-by: François René Pierre Bissey <frp.bissey <AT> gmail.com>
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 sci-mathematics/topcom/topcom-0.17.8-r1.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sci-mathematics/topcom/topcom-0.17.8-r1.ebuild 
b/sci-mathematics/topcom/topcom-0.17.8-r1.ebuild
index a3496c642f6..36196048f94 100644
--- a/sci-mathematics/topcom/topcom-0.17.8-r1.ebuild
+++ b/sci-mathematics/topcom/topcom-0.17.8-r1.ebuild
@@ -24,7 +24,6 @@ RDEPEND="${DEPEND}"
 BDEPEND="app-shells/tcsh"
 
 PATCHES=( "${FILESDIR}/${P}-buildsystem.patch" )
-HTML_DOCS=( "${DISTDIR}/TOPCOM-manual.html" )
 
 src_prepare () {
        default
@@ -43,13 +42,16 @@ src_configure() {
 }
 
 src_install () {
+       if use doc ; then
+               HTML_DOCS=( "${DISTDIR}/TOPCOM-manual.html" )
+       fi
+
        default
 
        if use examples; then
                docompress -x "/usr/share/doc/${PF}/examples"
                dodoc -r examples
        fi
-       use doc && einstalldocs
 
        mv "${ED}/usr/bin/cube" "${ED}/usr/bin/topcom_cube" || die
 

Reply via email to