ac0c461d43
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.
27 lines
672 B
Makefile
27 lines
672 B
Makefile
# $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
|
|
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"
|