pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/nim



Module Name:    pkgsrc
Committed By:   nikita
Date:           Mon May 11 19:08:59 UTC 2020

Modified Files:
        pkgsrc/lang/nim: Makefile PLIST

Log Message:
lang/nim: build and install tools and nimble.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/lang/nim/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/lang/nim/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/nim/Makefile
diff -u pkgsrc/lang/nim/Makefile:1.12 pkgsrc/lang/nim/Makefile:1.13
--- pkgsrc/lang/nim/Makefile:1.12       Sun Apr  5 01:29:15 2020
+++ pkgsrc/lang/nim/Makefile    Mon May 11 19:08:59 2020
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.12 2020/04/05 01:29:15 ryoon Exp $
+# $NetBSD: Makefile,v 1.13 2020/05/11 19:08:59 nikita Exp $
 
 DISTNAME=      nim-1.2.0
+PKGREVISION=   1
 CATEGORIES=    lang
 MASTER_SITES=  http://nim-lang.org/download/
 EXTRACT_SUFX=  .tar.xz
@@ -17,10 +18,19 @@ do-build:
        printf '#! %s\nexec %s _=%s/nim/bin/nim %s/nim/bin/nim "$$@"\n' \
                "${SH}" "${SETENV}" "${PREFIX}" "${PREFIX}" \
                > ${WRKSRC}/nim-wrapper.sh
+       cd ${WRKSRC} && bin/nim c --skipUserCfg --skipParentCfg koch
+       cd ${WRKSRC} && ./koch boot -d:release --skipUserCfg --skipParentCfg
+       cd ${WRKSRC} && ./koch tools --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
 
 do-test:
        cd ${WRKSRC} && ./bin/nim compile koch.nim

Index: pkgsrc/lang/nim/PLIST
diff -u pkgsrc/lang/nim/PLIST:1.9 pkgsrc/lang/nim/PLIST:1.10
--- pkgsrc/lang/nim/PLIST:1.9   Sun Apr  5 01:29:15 2020
+++ pkgsrc/lang/nim/PLIST       Mon May 11 19:08:59 2020
@@ -1,6 +1,12 @@
-@comment $NetBSD: PLIST,v 1.9 2020/04/05 01:29:15 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.10 2020/05/11 19:08:59 nikita Exp $
 bin/nim
 nim/bin/nim
+bin/nimble
+bin/nimfind
+bin/nimgrep
+bin/nimpretty
+bin/nimsuggest
+bin/testament
 nim/compiler.nimble
 nim/compiler/aliases.nim
 nim/compiler/asciitables.nim



Home | Main Index | Thread Index | Old Index