pkgsrc/devel/lua-repl/Makefile
joerg f6d8acbd80 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.
2020-08-06 23:08:29 +00:00

32 lines
891 B
Makefile

# $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"