summaryrefslogtreecommitdiff
path: root/lang/nim/Makefile
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2017-05-20 01:10:03 +0000
committerWen Heping <wen@FreeBSD.org>2017-05-20 01:10:03 +0000
commit2e254e95390273641d8b083d85630c33cecdaf06 (patch)
tree8552e623e857251686e8d1e69961c7930f8c0aeb /lang/nim/Makefile
parentRevert r441276 and properly fix build failures with JAVA option. (diff)
- Update to 0.17.0
PR: 219381 Submitted by: ports@nicandneal.net(maintainer)
Notes
Notes: svn path=/head/; revision=441280
Diffstat (limited to 'lang/nim/Makefile')
-rw-r--r--lang/nim/Makefile18
1 files changed, 16 insertions, 2 deletions
diff --git a/lang/nim/Makefile b/lang/nim/Makefile
index 5d091ec4c13b..8b03ed939ea1 100644
--- a/lang/nim/Makefile
+++ b/lang/nim/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= nim
-PORTVERSION= 0.16.0
+PORTVERSION= 0.17.0
CATEGORIES= lang
MASTER_SITES= http://nim-lang.org/download/
@@ -16,13 +16,18 @@ BROKEN_mips64= Does not build: build.sh: clang: not found
BROKEN_powerpc64= Does not build: build.sh: clang: not found
BROKEN_sparc64= Does not build: build.sh: clang: not found
-OPTIONS_DEFINE= DOCS
+TOOLS_DESC= Build and install nimgrep and nimsuggest
+
+OPTIONS_DEFINE= DOCS TOOLS
+OPTIONS_SUB= yes
MAKE_JOBS_UNSAFE= yes
USES= compiler tar:xz
.include <bsd.port.pre.mk>
+TLIST= nimgrep nimsuggest
+
post-patch:
.if ${COMPILER_TYPE} == clang
@${REINPLACE_CMD} -e '/cc =/s/gcc/clang/' ${WRKSRC}/config/nim.cfg
@@ -36,8 +41,17 @@ do-build:
cd ${WRKSRC} && ./koch boot --parallelBuild=${MAKE_JOBS_NUMBER} \
-d:release
+do-build-TOOLS-on:
+ cd ${WRKSRC} && ./koch tools --parallelBuild=${MAKE_JOBS_NUMBER} \
+ -d:release
+
do-install:
cd ${WRKSRC} && ${SH} install.sh ${STAGEDIR}${PREFIX}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/nim
+do-install-TOOLS-on:
+.for t in ${TLIST}
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/${t} ${STAGEDIR}${PREFIX}/bin
+.endfor
+
.include <bsd.port.post.mk>