Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/lua-repl Add lua-repl-0.9:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ac29853a7076
branches:  trunk
changeset: 436608:ac29853a7076
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Aug 06 23:08:29 2020 +0000

description:
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:

 devel/lua-repl/ALTERNATIVES |   1 +
 devel/lua-repl/DESCR        |   8 ++++++++
 devel/lua-repl/Makefile     |  32 ++++++++++++++++++++++++++++++++
 devel/lua-repl/PLIST        |  18 ++++++++++++++++++
 devel/lua-repl/distinfo     |   6 ++++++
 5 files changed, 65 insertions(+), 0 deletions(-)

diffs (85 lines):

diff -r 9bc4e985e787 -r ac29853a7076 devel/lua-repl/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-repl/ALTERNATIVES       Thu Aug 06 23:08:29 2020 +0000
@@ -0,0 +1,1 @@
+bin/luarep @PREFIX@/bin/luarep-@LUADOTVER@
diff -r 9bc4e985e787 -r ac29853a7076 devel/lua-repl/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-repl/DESCR      Thu Aug 06 23:08:29 2020 +0000
@@ -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 -r 9bc4e985e787 -r ac29853a7076 devel/lua-repl/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-repl/Makefile   Thu Aug 06 23:08:29 2020 +0000
@@ -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@localhost
+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 -r 9bc4e985e787 -r ac29853a7076 devel/lua-repl/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-repl/PLIST      Thu Aug 06 23:08:29 2020 +0000
@@ -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 -r 9bc4e985e787 -r ac29853a7076 devel/lua-repl/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-repl/distinfo   Thu Aug 06 23:08:29 2020 +0000
@@ -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



Home | Main Index | Thread Index | Old Index