summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2020-08-06 23:08:29 +0000
committerjoerg <joerg@pkgsrc.org>2020-08-06 23:08:29 +0000
commit145bafd8ea013929a8cd16538e8df1c08e5bdc4f (patch)
treea3a46e48a3c2ef15d85b4ca8178378cc5daec239 /devel
parentb7024b51e9013df66ce9a24723e97e673752be53 (diff)
downloadpkgsrc-145bafd8ea013929a8cd16538e8df1c08e5bdc4f.tar.gz
Add lua-repl-0.9:
REPL.lua provides a reusable Read-Execute-Print loop for Lua. It can be used as alternative to the standalone interpreter included with Lua, one that supports things like plugins, tab completion, and automatic insertion of return in front of expressions. It can also provide a REPL library you may embed in your application, to provide all of the niceties of the standalone interpreter included with Lua and then some.
Diffstat (limited to 'devel')
-rw-r--r--devel/lua-repl/ALTERNATIVES1
-rw-r--r--devel/lua-repl/DESCR8
-rw-r--r--devel/lua-repl/Makefile32
-rw-r--r--devel/lua-repl/PLIST18
-rw-r--r--devel/lua-repl/distinfo6
5 files changed, 65 insertions, 0 deletions
diff --git a/devel/lua-repl/ALTERNATIVES b/devel/lua-repl/ALTERNATIVES
new file mode 100644
index 00000000000..1d6f81d9677
--- /dev/null
+++ b/devel/lua-repl/ALTERNATIVES
@@ -0,0 +1 @@
+bin/luarep @PREFIX@/bin/luarep-@LUADOTVER@
diff --git a/devel/lua-repl/DESCR b/devel/lua-repl/DESCR
new file mode 100644
index 00000000000..a279c1b3852
--- /dev/null
+++ b/devel/lua-repl/DESCR
@@ -0,0 +1,8 @@
+REPL.lua provides a reusable Read-Execute-Print loop for Lua. It can be
+used as alternative to the standalone interpreter included with Lua, one
+that supports things like plugins, tab completion, and automatic
+insertion of return in front of expressions.
+
+It can also provide a REPL library you may embed in your application, to
+provide all of the niceties of the standalone interpreter included with
+Lua and then some.
diff --git a/devel/lua-repl/Makefile b/devel/lua-repl/Makefile
new file mode 100644
index 00000000000..1095212b794
--- /dev/null
+++ b/devel/lua-repl/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1 2020/08/06 23:08:29 joerg Exp $
+
+DISTNAME= repl-0.9
+PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME}
+CATEGORIES= devel lua
+MASTER_SITES= ${MASTER_SITE_GITHUB:=hoelzro/}
+GITHUB_PROJECT= lua-repl
+GITHUB_TAG= ${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/hoelzro/lua-linenoise/
+COMMENT= REPL library for Lua
+LICENSE= mit
+
+NO_BUILD= yes
+
+INSTALLATION_DIRS+= bin ${LUA_LDIR}/repl/plugins
+
+PLIST_SUBST+= LUADOTVER=${_LUA_DOT_VERSION}
+
+REPLACE_LUA+= rep.lua
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/rep.lua ${DESTDIR}${PREFIX}/bin/luarep-${_LUA_DOT_VERSION}
+ ${INSTALL_DATA} ${WRKSRC}/repl/*.lua \
+ ${DESTDIR}${PREFIX}/${LUA_LDIR}/repl
+ ${INSTALL_DATA} ${WRKSRC}/repl/plugins/*.lua \
+ ${DESTDIR}${PREFIX}/${LUA_LDIR}/repl/plugins
+
+.include "../../lang/lua/application.mk"
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/lua-repl/PLIST b/devel/lua-repl/PLIST
new file mode 100644
index 00000000000..a11c82d464b
--- /dev/null
+++ b/devel/lua-repl/PLIST
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1 2020/08/06 23:08:29 joerg Exp $
+bin/luarep-${LUADOTVER}
+${LUA_LDIR}/repl/compat.lua
+${LUA_LDIR}/repl/console.lua
+${LUA_LDIR}/repl/init.lua
+${LUA_LDIR}/repl/plugins/autoreturn.lua
+${LUA_LDIR}/repl/plugins/completion.lua
+${LUA_LDIR}/repl/plugins/example.lua
+${LUA_LDIR}/repl/plugins/filename_completion.lua
+${LUA_LDIR}/repl/plugins/history.lua
+${LUA_LDIR}/repl/plugins/keep_last_eval.lua
+${LUA_LDIR}/repl/plugins/linenoise.lua
+${LUA_LDIR}/repl/plugins/pretty_print.lua
+${LUA_LDIR}/repl/plugins/rcfile.lua
+${LUA_LDIR}/repl/plugins/rlwrap.lua
+${LUA_LDIR}/repl/plugins/semicolon_suppress_output.lua
+${LUA_LDIR}/repl/sync.lua
+${LUA_LDIR}/repl/utils.lua
diff --git a/devel/lua-repl/distinfo b/devel/lua-repl/distinfo
new file mode 100644
index 00000000000..c113a3285d3
--- /dev/null
+++ b/devel/lua-repl/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/08/06 23:08:29 joerg Exp $
+
+SHA1 (repl-0.9.tar.gz) = b2059211bc1e791523ac5c35ba9a50cf89102563
+RMD160 (repl-0.9.tar.gz) = 42265fc90e64f3382a02af03e053be5813ec75a9
+SHA512 (repl-0.9.tar.gz) = 7fdc4a70e149be11f14b59a3143b825fb1a35fc1595039380b13c5e56e9211107629cf33444f2fce5518c92ee02009ca98a8317c50265d102450e720164a355b
+Size (repl-0.9.tar.gz) = 23524 bytes