summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2018-09-28 22:32:10 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2018-09-28 22:32:25 +0100
commitbf096829a1577b14677ed810d6171c1b7fa4b523 (patch)
tree99d845a2ad43c16d778bdddc6def9f852ba80110 /dev-lang/nim/nim-0.19.0.ebuild
parentwww-client/firefox: define PYTHON_COMPAT in ebuild (diff)
downloadgentoo-bf096829a1577b14677ed810d6171c1b7fa4b523.tar.gz
gentoo-bf096829a1577b14677ed810d6171c1b7fa4b523.tar.bz2
gentoo-bf096829a1577b14677ed810d6171c1b7fa4b523.zip
dev-lang/nim: fix USE=doc building, bug #667182
Use 'koch doc' instead of 'koch web'. Old command does not generate html output anymore. While at it dropped XDG_CACHE_HOME to avoid user-defined dorectory. Reported-by: Toralf Förster Closes: https://bugs.gentoo.org/667182 Package-Manager: Portage-2.3.50, Repoman-2.3.11
Diffstat (limited to 'dev-lang/nim/nim-0.19.0.ebuild')
-rw-r--r--dev-lang/nim/nim-0.19.0.ebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/dev-lang/nim/nim-0.19.0.ebuild b/dev-lang/nim/nim-0.19.0.ebuild
index c86fab3680e..abc572c107f 100644
--- a/dev-lang/nim/nim-0.19.0.ebuild
+++ b/dev-lang/nim/nim-0.19.0.ebuild
@@ -39,6 +39,8 @@ nim_use_enable() {
}
src_compile() {
+ export XDG_CACHE_HOME=${T}/cache #667182
+
_run ./build.sh
_run ./bin/nim --parallelBuild:$(makeopts_jobs) c koch
@@ -48,7 +50,7 @@ src_compile() {
PATH="./bin:$PATH" _run ./koch --stable tools
if use doc; then
- PATH="./bin:$PATH" _run ./koch web
+ PATH="./bin:$PATH" _run ./koch doc
fi
}
@@ -72,7 +74,7 @@ src_install() {
if use doc; then
insinto /usr/share/doc/${PF}
- dodoc doc/*.html
+ dodoc doc/html/*.html
fi
newbashcomp tools/nim.bash-completion ${PN}