1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

lang/nim: Fix the build of lang/nim within poudriere:

-   Make sure we use specified build caches for all build commands (this was causing the poudriere testport to fail for the tools build).
 -  Ensure that devel/nimble is not built as part of this port by using the koch toolsToNimble command instead of koch tools. If left to it's own devices the koch tools command will download nimble from git and build it itself.

PR:		245789
Submitted by:	Neal Nelson
Reviewed by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D24585
This commit is contained in:
Loïc Bartoletti 2020-04-27 16:50:49 +00:00
parent b37f77e49f
commit e648893bed
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=533154

View File

@ -45,13 +45,14 @@ do-build:
cd ${WRKSRC} && ${SETENV} CC="${CC}" LINKER="${CC}" \
COMP_FLAGS="${CPPFLAGS} ${CFLAGS}" LINK_FLAGS="${LDFLAGS}" \
${SH} build.sh
cd ${WRKSRC} && bin/nim c --parallelBuild=${MAKE_JOBS_NUMBER} --nimcache=${WRKSRC}/nimcache koch
cd ${WRKSRC} && bin/nim c --parallelBuild=${MAKE_JOBS_NUMBER} \
--nimcache=${WRKDIR}/nimcache koch
cd ${WRKSRC} && ./koch boot --parallelBuild=${MAKE_JOBS_NUMBER} \
-d:release
-d:release --nimcache=${WRKDIR}/nimcache
do-build-TOOLS-on:
cd ${WRKSRC} && ./koch tools --parallelBuild=${MAKE_JOBS_NUMBER} \
-d:release
cd ${WRKSRC} && ./koch toolsNoNimble --parallelBuild=${MAKE_JOBS_NUMBER} \
-d:release --nimcache=${WRKDIR}/nimcache
do-install:
cd ${WRKSRC} && ${SH} install.sh ${STAGEDIR}${PREFIX}