View | Details | Raw Unified | Return to bug 218135
Collapse All | Expand All

(-)nim/Makefile (-1 / +17 lines)
Lines 16-28 Link Here
16
BROKEN_powerpc64=	Does not build
16
BROKEN_powerpc64=	Does not build
17
BROKEN_sparc64=		Does not build: build.sh: clang: not found
17
BROKEN_sparc64=		Does not build: build.sh: clang: not found
18
18
19
OPTIONS_DEFINE=	DOCS
19
TOOLS_DESC=	Build and/or install tools: nimble, nimgrep & nimsuggest
20
21
OPTIONS_DEFINE=	DOCS TOOLS
22
OPTIONS_SUB=	yes
20
23
21
MAKE_JOBS_UNSAFE=	yes
24
MAKE_JOBS_UNSAFE=	yes
22
USES=		compiler tar:xz
25
USES=		compiler tar:xz
23
26
27
OPTIONS_DEFAULT=	TOOLS
28
24
.include <bsd.port.pre.mk>
29
.include <bsd.port.pre.mk>
25
30
31
TLIST=		nimble nimgrep nimsuggest
32
26
post-patch:
33
post-patch:
27
.if ${COMPILER_TYPE} == clang
34
.if ${COMPILER_TYPE} == clang
28
	@${REINPLACE_CMD} -e '/cc =/s/gcc/clang/' ${WRKSRC}/config/nim.cfg
35
	@${REINPLACE_CMD} -e '/cc =/s/gcc/clang/' ${WRKSRC}/config/nim.cfg
Lines 36-43 Link Here
36
	cd ${WRKSRC} && ./koch boot --parallelBuild=${MAKE_JOBS_NUMBER} \
43
	cd ${WRKSRC} && ./koch boot --parallelBuild=${MAKE_JOBS_NUMBER} \
37
		-d:release
44
		-d:release
38
45
46
do-build-TOOLS-on:
47
	cd ${WRKSRC} && ./koch tools --parallelBuild=${MAKE_JOBS_NUMBER} \
48
		-d:release
49
39
do-install:
50
do-install:
40
	cd ${WRKSRC} && ${SH} install.sh ${STAGEDIR}${PREFIX}
51
	cd ${WRKSRC} && ${SH} install.sh ${STAGEDIR}${PREFIX}
41
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/nim
52
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/nim
42
53
54
do-install-TOOLS-on:
55
.for t in ${TLIST}
56
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${t} ${STAGEDIR}${PREFIX}/bin
57
.endfor
58
43
.include <bsd.port.post.mk>
59
.include <bsd.port.post.mk>
(-)nim/pkg-plist (+3 lines)
Lines 1-4 Link Here
1
bin/nim
1
bin/nim
2
%%TOOLS%%bin/nimble
3
%%TOOLS%%bin/nimgrep
4
%%TOOLS%%bin/nimsuggest
2
etc/nim.cfg
5
etc/nim.cfg
3
etc/nimdoc.cfg
6
etc/nimdoc.cfg
4
etc/nimdoc.tex.cfg
7
etc/nimdoc.tex.cfg

Return to bug 218135