On 2023/10/18 12:46:15 +0200, Laurent Cheylus <[email protected]> wrote:
> Hi,
>
> resubmit my proposal to import devel/lua-argparse, a simple Lua
> module for command line parser inspired by argparse for Python.
>
> GH repository https://github.com/luarocks/argparse
>
> I need this Lua module to update devel/luacheck and after discussions
> with jsg@, he advised me to create a new port instead of including it as
> patch.
>
> This port supports FLAVORS for Lua 5.1, 5.2, 5.3 and 5.4.
>
> Build and tests OK on current/amd64.
>
> op@ has already reviewed this port (01/2023), see
> https://marc.info/?t=167455094600002&r=1&w=2
>
> Tests/comments welcome and please commit if OK.
OK op@ to import. I'd use DIST_TUPLE now however and move PKG_ARCH
below a bit.
--- Makefile.orig Wed Oct 18 16:16:04 2023
+++ Makefile Wed Oct 18 16:18:13 2023
@@ -1,11 +1,6 @@
-PKG_ARCH = *
-
COMMENT = command line parser for Lua
-GH_ACCOUNT = luarocks
-GH_PROJECT = argparse
-GH_TAGNAME = 0.7.1
-
+DIST_TUPLE = github luarocks argparse 0.7.1 .
PKGNAME = lua-${DISTNAME}
CATEGORIES = devel
@@ -20,6 +15,7 @@
NO_BUILD = Yes
NO_TEST = Yes
+PKG_ARCH = *
do-install:
${INSTALL_DATA_DIR} ${MODLUA_DATADIR}