Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/nim lang/nim: build and install tools and nimble.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/116c16c81b7a
branches:  trunk
changeset: 431301:116c16c81b7a
user:      nikita <nikita%pkgsrc.org@localhost>
date:      Mon May 11 19:08:59 2020 +0000

description:
lang/nim: build and install tools and nimble.

diffstat:

 lang/nim/Makefile |  12 +++++++++++-
 lang/nim/PLIST    |   8 +++++++-
 2 files changed, 18 insertions(+), 2 deletions(-)

diffs (49 lines):

diff -r 7dcf2b7f3955 -r 116c16c81b7a lang/nim/Makefile
--- a/lang/nim/Makefile Mon May 11 18:06:38 2020 +0000
+++ b/lang/nim/Makefile Mon May 11 19:08:59 2020 +0000
@@ -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 @@
        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
diff -r 7dcf2b7f3955 -r 116c16c81b7a lang/nim/PLIST
--- a/lang/nim/PLIST    Mon May 11 18:06:38 2020 +0000
+++ b/lang/nim/PLIST    Mon May 11 19:08:59 2020 +0000
@@ -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