svn commit: r546051 - in head/lang/nim: . files
Loïc Bartoletti
lbartoletti at FreeBSD.org
Mon Aug 24 06:48:36 UTC 2020
Author: lbartoletti
Date: Mon Aug 24 06:48:36 2020
New Revision: 546051
URL: https://svnweb.freebsd.org/changeset/ports/546051
Log:
lang/nim: Fix cssSource for nim doc
Nim doc expected to find nimdoc.css in ${PREFIX}/doc/nimdoc.css but our doc directory is ${PREFIX}/share/doc/nim/
PR: 248814
Approved by: Neal Nelson (maintainer)
Added:
head/lang/nim/files/patch-compiler_docgen.nim (contents, props changed)
Modified:
head/lang/nim/Makefile
Modified: head/lang/nim/Makefile
==============================================================================
--- head/lang/nim/Makefile Mon Aug 24 06:43:14 2020 (r546050)
+++ head/lang/nim/Makefile Mon Aug 24 06:48:36 2020 (r546051)
@@ -3,6 +3,7 @@
PORTNAME= nim
PORTVERSION= 1.2.6
+PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= https://nim-lang.org/download/
Added: head/lang/nim/files/patch-compiler_docgen.nim
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/lang/nim/files/patch-compiler_docgen.nim Mon Aug 24 06:48:36 2020 (r546051)
@@ -0,0 +1,11 @@
+--- compiler/docgen.nim.orig 2020-08-21 12:50:46 UTC
++++ compiler/docgen.nim
+@@ -1163,7 +1163,7 @@ proc writeOutput*(d: PDoc, useWarning = false) =
+ rawMessage(d.conf, if useWarning: warnCannotOpenFile else: errCannotOpenFile,
+ outfile.string)
+ elif not d.wroteCss:
+- let cssSource = $d.conf.getPrefixDir() / "doc" / "nimdoc.css"
++ let cssSource = $d.conf.getPrefixDir() / "share/doc/nim" / "nimdoc.css"
+ let cssDest = $dir / nimdocOutCss
+ copyFile(cssSource, cssDest)
+ d.wroteCss = true
More information about the svn-ports-all
mailing list