commit:     a129a441c8d8daea825f8d9162735fa95e2c18d4
Author:     Ekaterina Vaartis <vaartis <AT> kotobank <DOT> ch>
AuthorDate: Fri Mar 11 08:33:27 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Mar 11 14:37:20 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a129a441

media-gfx/hydrus: Fix building without the doc flag

Closes: https://bugs.gentoo.org/834950
Signed-off-by: Ekaterina Vaartis <vaartis <AT> kotobank.ch>
Closes: https://github.com/gentoo/gentoo/pull/24482
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-gfx/hydrus/hydrus-476.ebuild  | 11 +++++++----
 media-gfx/hydrus/hydrus-9999.ebuild | 11 +++++++----
 2 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/media-gfx/hydrus/hydrus-476.ebuild 
b/media-gfx/hydrus/hydrus-476.ebuild
index 2e1663b11f1f..74762f9de40f 100644
--- a/media-gfx/hydrus/hydrus-476.ebuild
+++ b/media-gfx/hydrus/hydrus-476.ebuild
@@ -116,13 +116,16 @@ src_install() {
        rm test.py hydrus/hydrus_test.py || die
        rm -r hydrus/test/ static/testing/ || die
 
-       # ${S}/_build = ${DOCS_OUTDIR}/.. and these have already been copied, 
remove it before installation
        # ${DOCS[@]} files are copied into doc
        # ${S}/docs/ is the markdown source code for documentation
        # .gitignore/.github files aren't needed for the program to work, same 
with mkdocs files
-       rm -r "${S}/_build" "${DOCS[@]}" "${S}/docs/" .gitignore .github/ 
mkdocs.yml mkdocs-gh-pages.yml || die
-       # The program expects to find documentation here, so add a symlink to 
doc
-       dosym "${doc}/html" /opt/hydrus/help
+       rm -r "${DOCS[@]}" "${S}/docs/" .gitignore .github/ mkdocs.yml 
mkdocs-gh-pages.yml || die
+       if use doc; then
+               # ${S}/_build = ${DOCS_OUTDIR}/.. , these have already been 
copied, remove before installation
+               rm -r "${S}/_build" || die
+               # The program expects to find documentation here, so add a 
symlink to doc
+               dosym "${doc}/html" /opt/hydrus/help
+       fi
 
        insinto /opt/hydrus
        doins -r "${S}"/.

diff --git a/media-gfx/hydrus/hydrus-9999.ebuild 
b/media-gfx/hydrus/hydrus-9999.ebuild
index 2e1663b11f1f..74762f9de40f 100644
--- a/media-gfx/hydrus/hydrus-9999.ebuild
+++ b/media-gfx/hydrus/hydrus-9999.ebuild
@@ -116,13 +116,16 @@ src_install() {
        rm test.py hydrus/hydrus_test.py || die
        rm -r hydrus/test/ static/testing/ || die
 
-       # ${S}/_build = ${DOCS_OUTDIR}/.. and these have already been copied, 
remove it before installation
        # ${DOCS[@]} files are copied into doc
        # ${S}/docs/ is the markdown source code for documentation
        # .gitignore/.github files aren't needed for the program to work, same 
with mkdocs files
-       rm -r "${S}/_build" "${DOCS[@]}" "${S}/docs/" .gitignore .github/ 
mkdocs.yml mkdocs-gh-pages.yml || die
-       # The program expects to find documentation here, so add a symlink to 
doc
-       dosym "${doc}/html" /opt/hydrus/help
+       rm -r "${DOCS[@]}" "${S}/docs/" .gitignore .github/ mkdocs.yml 
mkdocs-gh-pages.yml || die
+       if use doc; then
+               # ${S}/_build = ${DOCS_OUTDIR}/.. , these have already been 
copied, remove before installation
+               rm -r "${S}/_build" || die
+               # The program expects to find documentation here, so add a 
symlink to doc
+               dosym "${doc}/html" /opt/hydrus/help
+       fi
 
        insinto /opt/hydrus
        doins -r "${S}"/.

Reply via email to