mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
media-gfx/hydrus: Fix building without the doc flag
Closes: https://bugs.gentoo.org/834950 Signed-off-by: Ekaterina Vaartis <vaartis@kotobank.ch> Closes: https://github.com/gentoo/gentoo/pull/24482 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
@@ -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}"/.
|
||||
|
||||
@@ -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}"/.
|
||||
|
||||
Reference in New Issue
Block a user