# Created by: Neal Nelson # $FreeBSD$ PORTNAME= nim PORTVERSION= 0.11.2 CATEGORIES= lang MASTER_SITES= http://nim-lang.org/download/ MAINTAINER= ports@nicandneal.net COMMENT= Nim programming language LICENSE= MIT OPTIONS_DEFINE= DOCS MAKE_JOBS_UNSAFE= yes USES= compiler zip .include post-patch: .if ${COMPILER_TYPE} == clang @${REINPLACE_CMD} -e '/cc =/s/gcc/clang/' ${WRKSRC}/config/nim.cfg .endif 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} koch cd ${WRKSRC} && ./koch boot --parallelBuild=${MAKE_JOBS_NUMBER} \ -d:release do-install: cd ${WRKSRC} && ${SH} install.sh ${STAGEDIR}${PREFIX} post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/nim .include