8f4629d708
Changelog: Bugfixes since 1.4.2 Fixed "-d:fulldebug switch does not compile with gc:arc" (#16214) Fixed "Strange behavior when calling into Nim" (#16249) Fixed "VC++ winnt.h fatal error "No Target Architecture" in stdlib_io." (#14259) Fixed "osLastError may randomly raise defect and crash" (#16359) Fixed "& shows as & in docs" (#16364) Fixed "gc:arc - SIGSEGV for rawAlloc on windows" (#16365) Fixed "generic importc proc's don't work (breaking lots of vmops procs for js)" (#16428) Fixed "[ARC] Compiler error with a closure proc in a macro " (#15043) Fixed "genericAssignAux runtime error" (#16706) Fixed "Concept: codegen ignores parameter passing" (#16897) Fixed "{.push exportc.} interacts with anonymous functions" (#16967) Fixed "ARC exports a dangerous 'dispose' proc" (#17003) Fixed "Cursor inference leading to corrupt memory with a tuple" (#17033) Fixed "toOpenArray doesn't work in VM; toOpenArray with var openArray doesn't work in nim js" (#15952) Fixed "memory allocation during {.global.} init breaks GC" (#17085)
48 lines
1.9 KiB
Makefile
48 lines
1.9 KiB
Makefile
# $NetBSD: Makefile,v 1.20 2021/03/01 13:12:56 ryoon Exp $
|
|
|
|
DISTNAME= nim-1.4.4
|
|
CATEGORIES= lang
|
|
MASTER_SITES= http://nim-lang.org/download/
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= cfkoch@edgebsd.org
|
|
HOMEPAGE= https://nim-lang.org/
|
|
COMMENT= The Nim programming language
|
|
LICENSE= mit
|
|
|
|
DEPENDS+= coreutils-[0-9]*:../../sysutils/coreutils
|
|
|
|
USE_TOOLS+= bash
|
|
REPLACE_BASH+= bin/nim-gdb
|
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
post-patch:
|
|
cd ${WRKSRC}/bin && ${LN} -sf nim-gdb nim-gdb.bash
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} sh ./build.sh
|
|
printf '#! %s\nexec %s _=%s/nim/bin/nim %s/nim/bin/nim "$$@"\n' \
|
|
"${SH}" "${SETENV}" "${PREFIX}" "${PREFIX}" \
|
|
> ${WRKSRC}/nim-wrapper.sh
|
|
cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} ./bin/nim c --skipUserCfg --skipParentCfg --parallelBuild:${_MAKE_JOBS_N} koch
|
|
cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} ./koch boot --parallelBuild:${_MAKE_JOBS_N} -d:release --skipUserCfg --skipParentCfg
|
|
cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} ./koch --stable tools --parallelBuild:${_MAKE_JOBS_N} --skipUserCfg --skipParentCfg
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && sh ./install.sh ${DESTDIR}${PREFIX}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/nim-wrapper.sh ${DESTDIR}${PREFIX}/bin/nim
|
|
${INSTALL} ${WRKSRC}/bin/nimble ${DESTDIR}${PREFIX}/bin/nimble
|
|
${INSTALL} ${WRKSRC}/bin/nimfind ${DESTDIR}${PREFIX}/bin/nimfind
|
|
${INSTALL} ${WRKSRC}/bin/nimgrep ${DESTDIR}${PREFIX}/bin/nimgrep
|
|
${INSTALL} ${WRKSRC}/bin/nimpretty ${DESTDIR}${PREFIX}/bin/nimpretty
|
|
${INSTALL} ${WRKSRC}/bin/nimsuggest ${DESTDIR}${PREFIX}/bin/nimsuggest
|
|
${INSTALL} ${WRKSRC}/bin/testament ${DESTDIR}${PREFIX}/bin/testament
|
|
${INSTALL} ${WRKSRC}/bin/nim-gdb ${DESTDIR}${PREFIX}/bin/nim-gdb
|
|
${INSTALL} ${WRKSRC}/bin/nim-gdb.bash ${DESTDIR}${PREFIX}/bin/nim-gdb.bash
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && ./bin/nim compile koch.nim
|
|
cd ${WRKSRC} && LD_LIBRARY_PATH=${PREFIX}/lib ./koch test --parallelBuild:${_MAKE_JOBS_N}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|