pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/lua-alt-getopt Import lua-alt-getopt-0.6.0 from ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/df0afc29e78c
branches:  trunk
changeset: 562609:df0afc29e78c
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Sun Aug 02 19:49:16 2009 +0000

description:
Import lua-alt-getopt-0.6.0 from pkgsrc-wip.  Packaged by Aleksey Cheusov.

lua_altgetopt is a module for Lua programming language
for processing application's arguments the same way
BSD/GNU getopt_long(3) functions do.

Main features and goals:
1) compatibility to SUS "Utility Syntax Guidelines"
http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html#tag_12_02
guidelines 3-13.
2) This module is for plain Lua
2) No extra dependencies
3) No hooks, no functional tricks ;-)
4) Support for long options, e.g. compatibility with getopt_long(3) C
function
   present in *BSD and GNU libc.
5) Long options may optionally have one-char synonym or other long synonym
6) Strict error checking (checks for an incorrect use of options)
7) alt_getopt.lua is a Lua module.

diffstat:

 devel/lua-alt-getopt/DESCR    |  17 +++++++++++++++++
 devel/lua-alt-getopt/Makefile |  27 +++++++++++++++++++++++++++
 devel/lua-alt-getopt/PLIST    |   2 ++
 devel/lua-alt-getopt/distinfo |   5 +++++
 4 files changed, 51 insertions(+), 0 deletions(-)

diffs (67 lines):

diff -r e05a6ee35759 -r df0afc29e78c devel/lua-alt-getopt/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-alt-getopt/DESCR        Sun Aug 02 19:49:16 2009 +0000
@@ -0,0 +1,17 @@
+lua_altgetopt is a module for Lua programming language
+for processing application's arguments the same way
+BSD/GNU getopt_long(3) functions do.
+
+Main features and goals:
+1) compatibility to SUS "Utility Syntax Guidelines"
+http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html#tag_12_02
+guidelines 3-13.
+2) This module is for plain Lua
+2) No extra dependencies
+3) No hooks, no functional tricks ;-)
+4) Support for long options, e.g. compatibility with getopt_long(3) C
+function
+   present in *BSD and GNU libc.
+5) Long options may optionally have one-char synonym or other long synonym
+6) Strict error checking (checks for an incorrect use of options)
+7) alt_getopt.lua is a Lua module.
diff -r e05a6ee35759 -r df0afc29e78c devel/lua-alt-getopt/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-alt-getopt/Makefile     Sun Aug 02 19:49:16 2009 +0000
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/08/02 19:49:16 minskim Exp $
+#
+
+PKGNAME=       ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/}
+DISTNAME=      lua-alt-getopt-0.6.0
+CATEGORIES=    devel
+MASTER_SITES=  http://luaforge.net/frs/download.php/4049/ \
+               http://mova.org/~cheusov/pub/lua_alt_getopt/
+
+MAINTAINER=    cheusov%tut.by@localhost
+HOMEPAGE=      http://luaforge.net/projects/alt-getopt/
+COMMENT=       getopt API for Lua similar to getopt_long(3) function
+LICENSE=       mit
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+USE_BSD_MAKEFILE=      yes
+
+NO_BUILD=              yes
+NO_CONFIGURE=          yes
+
+INSTALLATION_DIRS+=    ${LUA_LDIR}
+
+INSTALL_MAKE_FLAGS+=   LUAMODDIR=${PREFIX}/${LUA_LDIR}
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r e05a6ee35759 -r df0afc29e78c devel/lua-alt-getopt/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-alt-getopt/PLIST        Sun Aug 02 19:49:16 2009 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/08/02 19:49:16 minskim Exp $
+${LUA_LDIR}/alt_getopt.lua
diff -r e05a6ee35759 -r df0afc29e78c devel/lua-alt-getopt/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-alt-getopt/distinfo     Sun Aug 02 19:49:16 2009 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/08/02 19:49:16 minskim Exp $
+
+SHA1 (lua-alt-getopt-0.6.0.tar.gz) = b9d8d18e714ab4804acfd3f27c1c88e12e0612ec
+RMD160 (lua-alt-getopt-0.6.0.tar.gz) = b5e42c80d70baf97216fcb21ebcec127f83f71f8
+Size (lua-alt-getopt-0.6.0.tar.gz) = 4333 bytes



Home | Main Index | Thread Index | Old Index