diff options
author | Neal Nelson <ports@nicandneal.net> | 2022-11-28 17:34:18 +0000 |
---|---|---|
committer | Nuno Teixeira <eduardo@FreeBSD.org> | 2022-11-28 17:40:20 +0000 |
commit | 415aa8df9d225599f057a56617e3becaae6a0a84 (patch) | |
tree | 20979232db076c87e251b934461b473ee42bbbda /lang/nim/Makefile | |
parent | databases/sqlite3: Update to 3.40.0 (diff) |
lang/nim: Update to 1.6.10
ChangeLog: https://nim-lang.org/blog/2022/11/23/version-1610-released.html
PR: 267984
MFH: 2022Q4 (bugfixes)
Diffstat (limited to 'lang/nim/Makefile')
-rw-r--r-- | lang/nim/Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lang/nim/Makefile b/lang/nim/Makefile index 93aeac2d05aa..52efcb06fa1c 100644 --- a/lang/nim/Makefile +++ b/lang/nim/Makefile @@ -1,5 +1,5 @@ PORTNAME= nim -DISTVERSION= 1.6.8 +DISTVERSION= 1.6.10 CATEGORIES= lang MASTER_SITES= https://nim-lang.org/download/ @@ -19,8 +19,6 @@ USES= compiler:c11 cpe tar:xz CPE_VENDOR= nim-lang -MAKE_JOBS_UNSAFE= yes - OPTIONS_DEFINE= DOCS TOOLS OPTIONS_DEFAULT= TOOLS OPTIONS_EXCLUDE_powerpc64= DOCS @@ -46,6 +44,13 @@ post-patch: @${REINPLACE_CMD} -e s/%%GCC_DEFAULT%%/${GCC_DEFAULT}/ \ ${WRKSRC}/build.sh ${WRKSRC}/config/nim.cfg .endif + # Make a fake nimdoc.css so that we can change the expected target + # to where it should be, instead of where the nim project hard + # code it to be. + ${MKDIR} ${WRKSRC}/share/doc/nim + ${LN} -s ${WRKSRC}/doc/nimdoc.css ${WRKSRC}/share/doc/nim/nimdoc.css + ${MKDIR} ${WRKSRC}/share/nim + ${LN} -s ${WRKSRC}/tools/dochack ${WRKSRC}/share/nim/dochack do-build: cd ${WRKSRC} && ${SETENV} CC="${CC}" LINKER="${CC}" \ @@ -93,6 +98,10 @@ do-install-TOOLS-on: .for t in ${TLIST} ${INSTALL_PROGRAM} ${WRKSRC}/bin/${t} ${STAGEDIR}${PREFIX}/bin .endfor + ${MKDIR} ${STAGEDIR}${PREFIX}/share/nim/dochack + ${INSTALL_SCRIPT} ${WRKSRC}/tools/dochack/dochack.nim ${STAGEDIR}${PREFIX}/share/nim/dochack + ${INSTALL_SCRIPT} ${WRKSRC}/tools/dochack/dochack.js ${STAGEDIR}${PREFIX}/share/nim/dochack + ${INSTALL_SCRIPT} ${WRKSRC}/tools/dochack/fuzzysearch.nim ${STAGEDIR}${PREFIX}/share/nim/dochack do-test: cd ${WRKSRC} && ${SETENV} ./koch test all -d:release \ |