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-cliargs, based on work by Jonatha...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a20adfd3e84b
branches:  trunk
changeset: 435517:a20adfd3e84b
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Jul 08 15:36:21 2020 +0000

description:
devel: Add lua-cliargs, based on work by Jonathan Buschmann in wip

cliargs is a command-line argument parser for Lua.
It supports several types of arguments.

diffstat:

 devel/Makefile             |   3 ++-
 devel/lua-cliargs/DESCR    |   2 ++
 devel/lua-cliargs/Makefile |  28 ++++++++++++++++++++++++++++
 devel/lua-cliargs/PLIST    |  15 +++++++++++++++
 devel/lua-cliargs/distinfo |   6 ++++++
 5 files changed, 53 insertions(+), 1 deletions(-)

diffs (84 lines):

diff -r c84174a82817 -r a20adfd3e84b devel/Makefile
--- a/devel/Makefile    Wed Jul 08 15:22:48 2020 +0000
+++ b/devel/Makefile    Wed Jul 08 15:36:21 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3162 2020/07/08 15:22:32 nia Exp $
+# $NetBSD: Makefile,v 1.3163 2020/07/08 15:36:21 nia Exp $
 #
 
 COMMENT=       Development utilities
@@ -852,6 +852,7 @@
 SUBDIR+=       lua-basexx
 SUBDIR+=       lua-binaryheap
 SUBDIR+=       lua-bitlib
+SUBDIR+=       lua-cliargs
 SUBDIR+=       lua-compat53
 SUBDIR+=       lua-coxpcall
 SUBDIR+=       lua-cqueues
diff -r c84174a82817 -r a20adfd3e84b devel/lua-cliargs/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-cliargs/DESCR   Wed Jul 08 15:36:21 2020 +0000
@@ -0,0 +1,2 @@
+cliargs is a command-line argument parser for Lua.
+It supports several types of arguments.
diff -r c84174a82817 -r a20adfd3e84b devel/lua-cliargs/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-cliargs/Makefile        Wed Jul 08 15:36:21 2020 +0000
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2020/07/08 15:36:21 nia Exp $
+
+DISTNAME=      lua_cliargs-3.0.2
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/^lua_//1}
+CATEGORIES=    devel lua
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=amireh/}
+GITHUB_PROJECT=        lua_cliargs
+GITHUB_TAG=    v3.0-2
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/amireh/lua_cliargs
+COMMENT=       Command-line argument parsing module for Lua
+LICENSE=       mit
+
+NO_BUILD=      yes
+NO_CONFIGURE=  yes
+
+INSTALLATION_DIRS+=    ${LUA_LDIR}
+INSTALLATION_DIRS+=    ${LUA_LDIR}/cliargs
+INSTALLATION_DIRS+=    ${LUA_LDIR}/cliargs/utils
+
+do-install:
+       ${INSTALL_DATA} ${WRKSRC}/src/cliargs.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}
+       ${INSTALL_DATA} ${WRKSRC}/src/cliargs/*.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}/cliargs
+       ${INSTALL_DATA} ${WRKSRC}/src/cliargs/utils/*.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}/cliargs/utils
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r c84174a82817 -r a20adfd3e84b devel/lua-cliargs/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-cliargs/PLIST   Wed Jul 08 15:36:21 2020 +0000
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/08 15:36:21 nia Exp $
+${LUA_LDIR}/cliargs.lua
+${LUA_LDIR}/cliargs/config_loader.lua
+${LUA_LDIR}/cliargs/constants.lua
+${LUA_LDIR}/cliargs/core.lua
+${LUA_LDIR}/cliargs/parser.lua
+${LUA_LDIR}/cliargs/printer.lua
+${LUA_LDIR}/cliargs/utils/disect.lua
+${LUA_LDIR}/cliargs/utils/disect_argument.lua
+${LUA_LDIR}/cliargs/utils/filter.lua
+${LUA_LDIR}/cliargs/utils/lookup.lua
+${LUA_LDIR}/cliargs/utils/shallow_copy.lua
+${LUA_LDIR}/cliargs/utils/split.lua
+${LUA_LDIR}/cliargs/utils/trim.lua
+${LUA_LDIR}/cliargs/utils/wordwrap.lua
diff -r c84174a82817 -r a20adfd3e84b devel/lua-cliargs/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-cliargs/distinfo        Wed Jul 08 15:36:21 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/07/08 15:36:21 nia Exp $
+
+SHA1 (lua_cliargs-3.0.2.tar.gz) = 54744bfe6a3b2d59966637927bcfa7320f94dc0c
+RMD160 (lua_cliargs-3.0.2.tar.gz) = 41404ebec2631486faaaa3b13803622233ba3ccb
+SHA512 (lua_cliargs-3.0.2.tar.gz) = e7a475f1d41249b0a35f021a6ccca46078f5b689c1927a4dd4cab80b2e4d291babaab35cf7d64fad3ebf68d871fb5177f030c7a2b28d9f55fbeb4dd26021d024
+Size (lua_cliargs-3.0.2.tar.gz) = 30435 bytes



Home | Main Index | Thread Index | Old Index