1 |
commit: bf096829a1577b14677ed810d6171c1b7fa4b523 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 28 21:32:10 2018 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 28 21:32:25 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf096829 |
7 |
|
8 |
dev-lang/nim: fix USE=doc building, bug #667182 |
9 |
|
10 |
Use 'koch doc' instead of 'koch web'. Old command |
11 |
does not generate html output anymore. |
12 |
|
13 |
While at it dropped XDG_CACHE_HOME to avoid user-defined dorectory. |
14 |
|
15 |
Reported-by: Toralf Förster |
16 |
Closes: https://bugs.gentoo.org/667182 |
17 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
18 |
|
19 |
dev-lang/nim/nim-0.19.0.ebuild | 6 ++++-- |
20 |
1 file changed, 4 insertions(+), 2 deletions(-) |
21 |
|
22 |
diff --git a/dev-lang/nim/nim-0.19.0.ebuild b/dev-lang/nim/nim-0.19.0.ebuild |
23 |
index c86fab3680e..abc572c107f 100644 |
24 |
--- a/dev-lang/nim/nim-0.19.0.ebuild |
25 |
+++ b/dev-lang/nim/nim-0.19.0.ebuild |
26 |
@@ -39,6 +39,8 @@ nim_use_enable() { |
27 |
} |
28 |
|
29 |
src_compile() { |
30 |
+ export XDG_CACHE_HOME=${T}/cache #667182 |
31 |
+ |
32 |
_run ./build.sh |
33 |
|
34 |
_run ./bin/nim --parallelBuild:$(makeopts_jobs) c koch |
35 |
@@ -48,7 +50,7 @@ src_compile() { |
36 |
PATH="./bin:$PATH" _run ./koch --stable tools |
37 |
|
38 |
if use doc; then |
39 |
- PATH="./bin:$PATH" _run ./koch web |
40 |
+ PATH="./bin:$PATH" _run ./koch doc |
41 |
fi |
42 |
} |
43 |
|
44 |
@@ -72,7 +74,7 @@ src_install() { |
45 |
|
46 |
if use doc; then |
47 |
insinto /usr/share/doc/${PF} |
48 |
- dodoc doc/*.html |
49 |
+ dodoc doc/html/*.html |
50 |
fi |
51 |
|
52 |
newbashcomp tools/nim.bash-completion ${PN} |