FreeBSD Bugzilla – Attachment 181205 Details for
Bug 218135
lang/nim: Build additional tools from main source tree, with patch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Diff to add option to build and install Nim tools
nim.diff (text/plain), 1.40 KB, created by
Felix Hanley
on 2017-03-26 06:00:05 UTC
(
hide
)
Description:
Diff to add option to build and install Nim tools
Filename:
MIME Type:
Creator:
Felix Hanley
Created:
2017-03-26 06:00:05 UTC
Size:
1.40 KB
patch
obsolete
>diff -ruN nim.orig/Makefile nim/Makefile >--- nim.orig/Makefile 2017-03-26 16:38:25.220520000 +1100 >+++ nim/Makefile 2017-03-26 16:50:00.550274000 +1100 >@@ -16,13 +16,20 @@ > BROKEN_powerpc64= Does not build > BROKEN_sparc64= Does not build: build.sh: clang: not found > >-OPTIONS_DEFINE= DOCS >+TOOLS_DESC= Build and/or install tools: nimble, nimgrep & nimsuggest >+ >+OPTIONS_DEFINE= DOCS TOOLS >+OPTIONS_SUB= yes > > MAKE_JOBS_UNSAFE= yes > USES= compiler tar:xz > >+OPTIONS_DEFAULT= TOOLS >+ > .include <bsd.port.pre.mk> > >+TLIST= nimble nimgrep nimsuggest >+ > post-patch: > .if ${COMPILER_TYPE} == clang > @${REINPLACE_CMD} -e '/cc =/s/gcc/clang/' ${WRKSRC}/config/nim.cfg >@@ -36,8 +43,17 @@ > 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> >diff -ruN nim.orig/pkg-plist nim/pkg-plist >--- nim.orig/pkg-plist 2017-03-26 16:38:41.252474000 +1100 >+++ nim/pkg-plist 2017-03-26 16:25:20.114174000 +1100 >@@ -1,4 +1,7 @@ > bin/nim >+%%TOOLS%%bin/nimble >+%%TOOLS%%bin/nimgrep >+%%TOOLS%%bin/nimsuggest > etc/nim.cfg > etc/nimdoc.cfg > etc/nimdoc.tex.cfg
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 218135
: 181205