pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/nim Import nim-0.14.2 as lang/nim



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dd27ddb7e3b1
branches:  trunk
changeset: 352648:dd27ddb7e3b1
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Sun Sep 18 01:02:43 2016 +0000

description:
Import nim-0.14.2 as lang/nim

Nim (formerly known as "Nimrod") is a statically typed, imperative
programming language that tries to give the programmer ultimate power
without compromises on runtime efficiency. This means it focuses on
compile-time mechanisms in all their various forms.

Beneath a nice infix/indentation based syntax with a powerful (AST based,
hygienic) macro system lies a semantic model that supports a soft realtime
GC on thread local heaps. Asynchronous message passing is used between
threads, so no "stop the world" mechanism is necessary. An unsafe shared
memory heap is also provided for the increased efficiency that results from
that model.

Originally packaged in pkgsrc-wip by:
 - Christian Koch
 - Roland Illig
and
 - myself.

diffstat:

 lang/nim/DESCR    |   11 +
 lang/nim/Makefile |   28 ++++
 lang/nim/PLIST    |  349 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 lang/nim/distinfo |    6 +
 4 files changed, 394 insertions(+), 0 deletions(-)

diffs (truncated from 410 to 300 lines):

diff -r eb422df0a1ec -r dd27ddb7e3b1 lang/nim/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nim/DESCR    Sun Sep 18 01:02:43 2016 +0000
@@ -0,0 +1,11 @@
+Nim (formerly known as "Nimrod") is a statically typed, imperative
+programming language that tries to give the programmer ultimate power
+without compromises on runtime efficiency. This means it focuses on
+compile-time mechanisms in all their various forms.
+
+Beneath a nice infix/indentation based syntax with a powerful (AST based,
+hygienic) macro system lies a semantic model that supports a soft realtime
+GC on thread local heaps. Asynchronous message passing is used between
+threads, so no "stop the world" mechanism is necessary. An unsafe shared
+memory heap is also provided for the increased efficiency that results from
+that model.
diff -r eb422df0a1ec -r dd27ddb7e3b1 lang/nim/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nim/Makefile Sun Sep 18 01:02:43 2016 +0000
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2016/09/18 01:02:43 kamil Exp $
+
+DISTNAME=      nim-0.14.2
+CATEGORIES=    lang
+MASTER_SITES=  http://nim-lang.org/download/
+EXTRACT_SUFX=  .tar.xz
+
+MAINTAINER=    cfkoch%edgebsd.org@localhost
+COMMENT=       The Nim programming language
+LICENSE=       mit
+
+AUTO_MKDIRS=   yes
+
+do-build:
+       cd ${WRKSRC} && sh ./build.sh
+       printf '#! %s\nexec %s _=%s/nim/bin/nim %s/nim/bin/nim "$$@"\n' \
+               "${SH}" "${SETENV}" "${PREFIX}" "${PREFIX}" \
+               > ${WRKSRC}/nim-wrapper.sh
+
+do-install:
+       cd ${WRKSRC} && sh ./install.sh ${DESTDIR}${PREFIX}
+       ${INSTALL_SCRIPT} ${WRKSRC}/nim-wrapper.sh ${DESTDIR}${PREFIX}/bin/nim
+
+do-test:
+       cd ${WRKSRC} && ./bin/nim compile koch.nim
+       cd ${WRKSRC} && LD_LIBRARY_PATH=$PREFIX/lib ./koch tests
+
+.include "../../mk/bsd.pkg.mk"
diff -r eb422df0a1ec -r dd27ddb7e3b1 lang/nim/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nim/PLIST    Sun Sep 18 01:02:43 2016 +0000
@@ -0,0 +1,349 @@
+@comment $NetBSD: PLIST,v 1.1 2016/09/18 01:02:43 kamil Exp $
+bin/nim
+nim/bin/nim
+nim/compiler.nimble
+nim/compiler/aliases.nim
+nim/compiler/ast.nim
+nim/compiler/astalgo.nim
+nim/compiler/bitsets.nim
+nim/compiler/canonicalizer.nim
+nim/compiler/ccgcalls.nim
+nim/compiler/ccgexprs.nim
+nim/compiler/ccgmerge.nim
+nim/compiler/ccgstmts.nim
+nim/compiler/ccgthreadvars.nim
+nim/compiler/ccgtrav.nim
+nim/compiler/ccgtypes.nim
+nim/compiler/ccgutils.nim
+nim/compiler/cgen.nim
+nim/compiler/cgendata.nim
+nim/compiler/cgmeth.nim
+nim/compiler/commands.nim
+nim/compiler/condsyms.nim
+nim/compiler/debuginfo.nim
+nim/compiler/depends.nim
+nim/compiler/docgen.nim
+nim/compiler/docgen2.nim
+nim/compiler/evalffi.nim
+nim/compiler/evaltempl.nim
+nim/compiler/extccomp.nim
+nim/compiler/filter_tmpl.nim
+nim/compiler/filters.nim
+nim/compiler/forloops.nim
+nim/compiler/guards.nim
+nim/compiler/hlo.nim
+nim/compiler/idents.nim
+nim/compiler/idgen.nim
+nim/compiler/importer.nim
+nim/compiler/installer.ini
+nim/compiler/jsgen.nim
+nim/compiler/jstypes.nim
+nim/compiler/lambdalifting.nim
+nim/compiler/lexer.nim
+nim/compiler/lists.nim
+nim/compiler/llstream.nim
+nim/compiler/lookups.nim
+nim/compiler/lowerings.nim
+nim/compiler/magicsys.nim
+nim/compiler/main.nim
+nim/compiler/mapping.txt
+nim/compiler/modules.nim
+nim/compiler/msgs.nim
+nim/compiler/nim.cfg
+nim/compiler/nim.nim
+nim/compiler/nimblecmd.nim
+nim/compiler/nimconf.nim
+nim/compiler/nimeval.nim
+nim/compiler/nimfix/nimfix.nim
+nim/compiler/nimfix/nimfix.nim.cfg
+nim/compiler/nimfix/pretty.nim
+nim/compiler/nimfix/prettybase.nim
+nim/compiler/nimlexbase.nim
+nim/compiler/nimsets.nim
+nim/compiler/nimsuggest/nimsuggest.nim
+nim/compiler/nodejs.nim
+nim/compiler/nversion.nim
+nim/compiler/options.nim
+nim/compiler/parampatterns.nim
+nim/compiler/parser.nim
+nim/compiler/passaux.nim
+nim/compiler/passes.nim
+nim/compiler/patterns.nim
+nim/compiler/pbraces.nim
+nim/compiler/platform.nim
+nim/compiler/plugins/active.nim
+nim/compiler/plugins/itersgen.nim
+nim/compiler/plugins/locals/locals.nim
+nim/compiler/pluginsupport.nim
+nim/compiler/pragmas.nim
+nim/compiler/procfind.nim
+nim/compiler/readme.txt
+nim/compiler/renderer.nim
+nim/compiler/rodread.nim
+nim/compiler/rodutils.nim
+nim/compiler/rodwrite.nim
+nim/compiler/ropes.nim
+nim/compiler/saturate.nim
+nim/compiler/scriptconfig.nim
+nim/compiler/sem.nim
+nim/compiler/semasgn.nim
+nim/compiler/semcall.nim
+nim/compiler/semdata.nim
+nim/compiler/semdestruct.nim
+nim/compiler/semexprs.nim
+nim/compiler/semfields.nim
+nim/compiler/semfold.nim
+nim/compiler/semgnrc.nim
+nim/compiler/seminst.nim
+nim/compiler/semmacrosanity.nim
+nim/compiler/semmagic.nim
+nim/compiler/semparallel.nim
+nim/compiler/sempass2.nim
+nim/compiler/semprepass.nim
+nim/compiler/semstmts.nim
+nim/compiler/semtempl.nim
+nim/compiler/semtypes.nim
+nim/compiler/semtypinst.nim
+nim/compiler/service.nim
+nim/compiler/sigmatch.nim
+nim/compiler/suggest.nim
+nim/compiler/syntaxes.nim
+nim/compiler/tccgen.nim
+nim/compiler/testability.nim
+nim/compiler/transf.nim
+nim/compiler/trees.nim
+nim/compiler/treetab.nim
+nim/compiler/types.nim
+nim/compiler/typesrenderer.nim
+nim/compiler/vm.nim
+nim/compiler/vmdef.nim
+nim/compiler/vmdeps.nim
+nim/compiler/vmgen.nim
+nim/compiler/vmhooks.nim
+nim/compiler/vmmarshal.nim
+nim/compiler/vmops.nim
+nim/compiler/wordrecg.nim
+nim/compiler/writetracking.nim
+nim/config/nim.cfg
+nim/config/nimdoc.cfg
+nim/config/nimdoc.tex.cfg
+nim/doc/advopt.txt
+nim/doc/basicopt.txt
+nim/doc/overview.html
+nim/lib/arch/arch.nim
+nim/lib/arch/i386.asm
+nim/lib/arch/ms_amd64.asm
+nim/lib/arch/ms_i386.asm
+nim/lib/arch/unix_amd64.asm
+nim/lib/arch/unix_i386.asm
+nim/lib/core/locks.nim
+nim/lib/core/macros.nim
+nim/lib/core/rlocks.nim
+nim/lib/core/typeinfo.nim
+nim/lib/cycle.h
+nim/lib/deprecated/core/unsigned.nim
+nim/lib/deprecated/pure/actors.nim
+nim/lib/deprecated/pure/actors.nim.cfg
+nim/lib/deprecated/pure/asyncio.nim
+nim/lib/deprecated/pure/ftpclient.nim
+nim/lib/deprecated/pure/parseurl.nim
+nim/lib/deprecated/pure/rawsockets.nim
+nim/lib/deprecated/pure/sockets.nim
+nim/lib/impure/db_mysql.nim
+nim/lib/impure/db_odbc.nim
+nim/lib/impure/db_postgres.nim
+nim/lib/impure/db_sqlite.nim
+nim/lib/impure/nre.nim
+nim/lib/impure/nre/private/util.nim
+nim/lib/impure/osinfo_posix.nim
+nim/lib/impure/osinfo_win.nim
+nim/lib/impure/rdstdin.nim
+nim/lib/impure/re.nim
+nim/lib/impure/ssl.nim
+nim/lib/js/dom.nim
+nim/lib/libnimrtl.dylib
+nim/lib/nimbase.h
+nim/lib/nimrtl.nim
+nim/lib/nimrtl.nim.cfg
+nim/lib/packages/docutils/docutils.babel
+nim/lib/packages/docutils/highlite.nim
+nim/lib/packages/docutils/rst.nim
+nim/lib/packages/docutils/rstast.nim
+nim/lib/packages/docutils/rstgen.nim
+nim/lib/posix/epoll.nim
+nim/lib/posix/inotify.nim
+nim/lib/posix/kqueue.nim
+nim/lib/posix/linux.nim
+nim/lib/posix/posix.nim
+nim/lib/posix/termios.nim
+nim/lib/prelude.nim
+nim/lib/pure/algorithm.nim
+nim/lib/pure/asyncdispatch.nim
+nim/lib/pure/asyncdispatch.nim.cfg
+nim/lib/pure/asyncfile.nim
+nim/lib/pure/asyncftpclient.nim
+nim/lib/pure/asynchttpserver.nim
+nim/lib/pure/asyncnet.nim
+nim/lib/pure/base64.nim
+nim/lib/pure/basic2d.nim
+nim/lib/pure/basic3d.nim
+nim/lib/pure/browsers.nim
+nim/lib/pure/cgi.nim
+nim/lib/pure/collections/LockFreeHash.nim
+nim/lib/pure/collections/chains.nim
+nim/lib/pure/collections/critbits.nim
+nim/lib/pure/collections/heapqueue.nim
+nim/lib/pure/collections/intsets.nim
+nim/lib/pure/collections/lists.nim
+nim/lib/pure/collections/queues.nim
+nim/lib/pure/collections/rtarrays.nim
+nim/lib/pure/collections/sequtils.nim
+nim/lib/pure/collections/sets.nim
+nim/lib/pure/collections/sharedlist.nim
+nim/lib/pure/collections/sharedstrings.nim
+nim/lib/pure/collections/sharedtables.nim
+nim/lib/pure/collections/tableimpl.nim
+nim/lib/pure/collections/tables.nim
+nim/lib/pure/colors.nim
+nim/lib/pure/complex.nim
+nim/lib/pure/concurrency/cpuinfo.nim
+nim/lib/pure/concurrency/cpuload.nim
+nim/lib/pure/concurrency/threadpool.nim
+nim/lib/pure/concurrency/threadpool.nim.cfg
+nim/lib/pure/cookies.nim
+nim/lib/pure/coro.nim
+nim/lib/pure/coro.nimcfg
+nim/lib/pure/db_common.nim
+nim/lib/pure/dynlib.nim
+nim/lib/pure/encodings.nim
+nim/lib/pure/endians.nim
+nim/lib/pure/etcpriv.nim
+nim/lib/pure/events.nim
+nim/lib/pure/fenv.nim
+nim/lib/pure/fsmonitor.nim
+nim/lib/pure/future.nim
+nim/lib/pure/gentabs.nim
+nim/lib/pure/hashes.nim
+nim/lib/pure/htmlgen.nim
+nim/lib/pure/htmlparser.nim
+nim/lib/pure/httpclient.nim
+nim/lib/pure/httpcore.nim
+nim/lib/pure/httpserver.nim
+nim/lib/pure/json.nim
+nim/lib/pure/lexbase.nim
+nim/lib/pure/logging.nim
+nim/lib/pure/marshal.nim
+nim/lib/pure/matchers.nim
+nim/lib/pure/math.nim
+nim/lib/pure/md5.nim
+nim/lib/pure/memfiles.nim
+nim/lib/pure/mersenne.nim
+nim/lib/pure/mimetypes.nim
+nim/lib/pure/nativesockets.nim
+nim/lib/pure/net.nim
+nim/lib/pure/nimprof.nim
+nim/lib/pure/nimprof.nim.cfg
+nim/lib/pure/numeric.nim
+nim/lib/pure/oids.nim
+nim/lib/pure/options.nim
+nim/lib/pure/os.nim



Home | Main Index | Thread Index | Old Index