Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel devel: Add lua-argparse. Based on work by Jonath...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7ba6abad13da
branches:  trunk
changeset: 435210:7ba6abad13da
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Jul 02 11:36:36 2020 +0000

description:
devel: Add lua-argparse. Based on work by Jonathan Buschmann in wip.

Argparse is a feature-rich command line parser for Lua inspired by
argparse for Python.

Argparse supports positional arguments, options, flags, optional
arguments, subcommands and more. Argparse automatically generates
usage, help and error messages.

diffstat:

 devel/Makefile              |   3 ++-
 devel/lua-argparse/DESCR    |   6 ++++++
 devel/lua-argparse/Makefile |  27 +++++++++++++++++++++++++++
 devel/lua-argparse/PLIST    |   2 ++
 devel/lua-argparse/distinfo |   6 ++++++
 5 files changed, 43 insertions(+), 1 deletions(-)

diffs (74 lines):

diff -r da6ec7c71057 -r 7ba6abad13da devel/Makefile
--- a/devel/Makefile    Thu Jul 02 11:16:30 2020 +0000
+++ b/devel/Makefile    Thu Jul 02 11:36:36 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3151 2020/07/02 11:16:18 nia Exp $
+# $NetBSD: Makefile,v 1.3152 2020/07/02 11:36:36 nia Exp $
 #
 
 COMMENT=       Development utilities
@@ -846,6 +846,7 @@
 SUBDIR+=       ltsa
 SUBDIR+=       lua-BitOp
 SUBDIR+=       lua-alt-getopt
+SUBDIR+=       lua-argparse
 SUBDIR+=       lua-bitlib
 SUBDIR+=       lua-coxpcall
 SUBDIR+=       lua-cqueues
diff -r da6ec7c71057 -r 7ba6abad13da devel/lua-argparse/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-argparse/DESCR  Thu Jul 02 11:36:36 2020 +0000
@@ -0,0 +1,6 @@
+Argparse is a feature-rich command line parser for Lua inspired by
+argparse for Python.
+
+Argparse supports positional arguments, options, flags, optional
+arguments, subcommands and more. Argparse automatically generates
+usage, help and error messages.
diff -r da6ec7c71057 -r 7ba6abad13da devel/lua-argparse/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-argparse/Makefile       Thu Jul 02 11:36:36 2020 +0000
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1 2020/07/02 11:36:36 nia Exp $
+
+DISTNAME=      lua-argparse-0.7.0
+PKGNAME=       ${DISTNAME:S/lua/${LUA_PKGPREFIX}/}
+CATEGORIES=    devel lua
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=luarocks/}
+GITHUB_PROJECT=        argparse
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/luarocks/argparse
+COMMENT=       Feature-rich command-line argument parser for Lua
+LICENSE=       mit
+
+USE_LANGUAGES= # none
+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 -r da6ec7c71057 -r 7ba6abad13da devel/lua-argparse/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-argparse/PLIST  Thu Jul 02 11:36:36 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/02 11:36:36 nia Exp $
+${LUA_LDIR}/argparse.lua
diff -r da6ec7c71057 -r 7ba6abad13da devel/lua-argparse/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-argparse/distinfo       Thu Jul 02 11:36:36 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/07/02 11:36:36 nia Exp $
+
+SHA1 (lua-argparse-0.7.0.tar.gz) = d826e9eb73c27a55a1e17a2f368f6b3fd6f13d9d
+RMD160 (lua-argparse-0.7.0.tar.gz) = f1f2ed1035e2fcd4f8d29802c3ea179437768dc4
+SHA512 (lua-argparse-0.7.0.tar.gz) = 81aa94a7f522fcee9cefc5fd86d845bc375308e01c3cc90023ec9a0f42e0ce382c6708acb4269e0a8b200d1f13f394fb11acc97bfbb3253f0779966c5b2a36bf
+Size (lua-argparse-0.7.0.tar.gz) = 43433 bytes



Home | Main Index | Thread Index | Old Index