wip/lua-argparse: import lua52-argparse-0.6.0
authorJonathan Buschmann <jonthn+pkgsrc@pinacea.com>
Thu, 2 Jan 2020 15:39:28 +0000 (23:39 +0800)
committerJonathan Buschmann <jonthn+pkgsrc@pinacea.com>
Thu, 2 Jan 2020 15:39:28 +0000 (23:39 +0800)
Argparse supports positional arguments, options, flags, optional arguments,
subcommands and more.
Argparse automatically generates usage, help and error messages.

lua-argparse/DESCR [new file with mode: 0644]
lua-argparse/Makefile [new file with mode: 0644]
lua-argparse/PLIST [new file with mode: 0644]
lua-argparse/distinfo [new file with mode: 0644]

diff --git a/lua-argparse/DESCR b/lua-argparse/DESCR
new file mode 100644 (file)
index 0000000..d22088d
--- /dev/null
@@ -0,0 +1,3 @@
+Argparse supports positional arguments, options, flags, optional arguments,
+subcommands and more.
+Argparse automatically generates usage, help and error messages.
diff --git a/lua-argparse/Makefile b/lua-argparse/Makefile
new file mode 100644 (file)
index 0000000..e9cc20a
--- /dev/null
@@ -0,0 +1,25 @@
+# $NetBSD$
+
+DISTNAME=      lua-argparse-0.6.0
+PKGNAME=       ${DISTNAME:S/lua/${LUA_PKGPREFIX}/}
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=mpeterv/}
+GITHUB_PROJECT=        argparse
+
+HOMEPAGE=      https://github.com/mpeterv/argparse
+COMMENT=       Feature-rich command-line argument parser
+LICENSE=       mit
+
+NO_BUILD=      yes
+NO_CONFIGURE=  yes
+
+WRKSRC=                ${WRKDIR}/${DISTNAME:S/lua-//}
+
+INSTALLATION_DIRS+=    ${LUA_LDIR}
+
+do-install:
+       ${INSTALL_DATA} ${WRKSRC}/src/*.lua \
+                       ${DESTDIR}${PREFIX}/${LUA_LDIR}/
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lua-argparse/PLIST b/lua-argparse/PLIST
new file mode 100644 (file)
index 0000000..6c9ce2b
--- /dev/null
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+${LUA_LDIR}/argparse.lua
diff --git a/lua-argparse/distinfo b/lua-argparse/distinfo
new file mode 100644 (file)
index 0000000..fad54a7
--- /dev/null
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.3 2015/08/10 22:13:59 jonthn Exp $
+
+SHA1 (lua-argparse-0.6.0.tar.gz) = 48dcb52e67179c01ea07de11af447c56d757de65
+RMD160 (lua-argparse-0.6.0.tar.gz) = 2697efb559fb1fd685f6a344e6a7c18680cef934
+SHA512 (lua-argparse-0.6.0.tar.gz) = 7efdfab8ec563a9e7eddc7aff760fd4d3605df2896939af3f2c80e5ed4d4e5ba45a7815057e15446d242351a6fd139d6b8da802fe318d4a4bcd69918fece53d1
+Size (lua-argparse-0.6.0.tar.gz) = 36712 bytes