summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-07-11 12:56:17 +0000
committernia <nia@pkgsrc.org>2020-07-11 12:56:17 +0000
commitb14e33000ad70a2e1fc570d8e077eb0bd89b91ce (patch)
tree2438284a83204f87010a280e182602abb145f8c8
parentd42dc266e7d1a543aeb8a0984152ab510aa371d6 (diff)
downloadpkgsrc-b14e33000ad70a2e1fc570d8e077eb0bd89b91ce.tar.gz
devel: Add lua-fun
Lua Fun is a high-performance functional programming library for Lua designed with LuaJIT's trace compiler in mind. Lua Fun provides a set of more than 50 programming primitives typically found in languages like Standard ML, Haskell, Erlang, JavaScript, Python and even Lisp. High-order functions such as map, filter, reduce, zip, etc., make it easy to write simple and efficient functional code.
-rw-r--r--devel/Makefile3
-rw-r--r--devel/lua-fun/DESCR7
-rw-r--r--devel/lua-fun/Makefile31
-rw-r--r--devel/lua-fun/PLIST3
-rw-r--r--devel/lua-fun/distinfo6
5 files changed, 49 insertions, 1 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 3e75ef158e3..4170d0e7779 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3171 2020/07/11 12:37:25 nia Exp $
+# $NetBSD: Makefile,v 1.3172 2020/07/11 12:56:17 nia Exp $
#
COMMENT= Development utilities
@@ -861,6 +861,7 @@ SUBDIR+= lua-cqueues
SUBDIR+= lua-event
SUBDIR+= lua-fifo
SUBDIR+= lua-filesystem
+SUBDIR+= lua-fun
SUBDIR+= lua-gi
SUBDIR+= lua-inspect
SUBDIR+= lua-ljsyscall
diff --git a/devel/lua-fun/DESCR b/devel/lua-fun/DESCR
new file mode 100644
index 00000000000..72e0776a6b3
--- /dev/null
+++ b/devel/lua-fun/DESCR
@@ -0,0 +1,7 @@
+Lua Fun is a high-performance functional programming library for Lua
+designed with LuaJIT's trace compiler in mind.
+
+Lua Fun provides a set of more than 50 programming primitives typically
+found in languages like Standard ML, Haskell, Erlang, JavaScript, Python and
+even Lisp. High-order functions such as map, filter, reduce, zip, etc.,
+make it easy to write simple and efficient functional code.
diff --git a/devel/lua-fun/Makefile b/devel/lua-fun/Makefile
new file mode 100644
index 00000000000..04a85825272
--- /dev/null
+++ b/devel/lua-fun/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1 2020/07/11 12:56:17 nia Exp $
+
+DISTNAME= luafun-0.1.3
+PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/^lua//1}
+CATEGORIES= devel lua
+MASTER_SITES= ${MASTER_SITE_GITHUB:=luafun/}
+GITHUB_PROJECT= luafun
+GITHUB_TAG= ${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/luafun/luafun
+COMMENT= Functional programming library for Lua
+LICENSE= mit
+
+USE_LANGUAGES= # none
+NO_BUILD= yes
+
+INSTALLATION_DIRS+= ${LUA_DOCDIR}
+INSTALLATION_DIRS+= ${LUA_LDIR}
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/fun.lua \
+ ${DESTDIR}${PREFIX}/${LUA_LDIR}/fun.lua
+ ${INSTALL_DATA} ${WRKSRC}/README.md \
+ ${DESTDIR}${PREFIX}/${LUA_DOCDIR}/README.md
+
+do-test:
+ cd ${WRKSRC}/tests && ${LUA_INTERPRETER} ./runtest *.lua
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/lua-fun/PLIST b/devel/lua-fun/PLIST
new file mode 100644
index 00000000000..ac6f2b679a3
--- /dev/null
+++ b/devel/lua-fun/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/11 12:56:17 nia Exp $
+${LUA_DOCDIR}/README.md
+${LUA_LDIR}/fun.lua
diff --git a/devel/lua-fun/distinfo b/devel/lua-fun/distinfo
new file mode 100644
index 00000000000..e862b1e7fe3
--- /dev/null
+++ b/devel/lua-fun/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/07/11 12:56:17 nia Exp $
+
+SHA1 (luafun-0.1.3.tar.gz) = 6d56c2cb7e78cd52a874b6a3ab9b0b04a35738a3
+RMD160 (luafun-0.1.3.tar.gz) = a9ff013dd4a410ba7978d87422ac75eb3c494e82
+SHA512 (luafun-0.1.3.tar.gz) = 1959c22453a6f431e4f4ee1ca1e6001c126f8857e00b128e5303049fd574150a68b71490503356f11fefcbd0ef7fbac7b0ae7c182a395ad0c92d2047dfac0662
+Size (luafun-0.1.3.tar.gz) = 66651 bytes