Import the argp-1.3 argument functionality - this package is the

argp-standalone functionality from FreeBSD ports.

	Argp is an interface for parsing unix-style argument vectors.

	Argp provides features unavailable in the more commonly used getopt
	interface.  These features include automatically producing output in
	response to the `--help' and `--version' options, as described in the
	GNU coding standards.  Using argp makes it less likely that
	programmers will neglect to implement these additional options or keep
	them up to date.

	Argp also provides the ability to merge several independently defined
	option parsers into one, mediating conflicts between them and making
	the result appear seamless.  A library can export an argp option
	parser that user programs might employ in conjunction with their own
	option parsers, resulting in less work for the user programs.  Some
	programs may use only argument parsers exported by libraries, thereby
	achieving consistent and efficient option-parsing for abstractions
	implemented by the libraries.

	The header file <argp.h> should be included to use argp.
This commit is contained in:
agc 2007-03-24 16:57:41 +00:00
parent 9bc0cde779
commit da32ef4212
5 changed files with 68 additions and 0 deletions

19
devel/argp/DESCR Normal file
View file

@ -0,0 +1,19 @@
Argp is an interface for parsing unix-style argument vectors.
Argp provides features unavailable in the more commonly used getopt
interface. These features include automatically producing output in
response to the `--help' and `--version' options, as described in the
GNU coding standards. Using argp makes it less likely that
programmers will neglect to implement these additional options or keep
them up to date.
Argp also provides the ability to merge several independently defined
option parsers into one, mediating conflicts between them and making
the result appear seamless. A library can export an argp option
parser that user programs might employ in conjunction with their own
option parsers, resulting in less work for the user programs. Some
programs may use only argument parsers exported by libraries, thereby
achieving consistent and efficient option-parsing for abstractions
implemented by the libraries.
The header file <argp.h> should be included to use argp.

18
devel/argp/Makefile Normal file
View file

@ -0,0 +1,18 @@
# $NetBSD: Makefile,v 1.1.1.1 2007/03/24 16:57:41 agc Exp $
DISTNAME= argp-standalone-1.3
PKGNAME= argp-1.3
CATEGORIES= devel
MASTER_SITES= http://www.lysator.liu.se/~nisse/misc/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/libc/manual/html_node/Argp.html
COMMENT= Argument parsing function from glibc
GNU_CONFIGURE= yes
do-install:
${INSTALL_LIB} ${WRKSRC}/libargp.a ${PREFIX}/lib/
${INSTALL_DATA} ${WRKSRC}/argp.h ${PREFIX}/include/
.include "../../mk/bsd.pkg.mk"

3
devel/argp/PLIST Normal file
View file

@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2007/03/24 16:57:41 agc Exp $
lib/libargp.a
include/argp.h

23
devel/argp/buildlink3.mk Normal file
View file

@ -0,0 +1,23 @@
# $NetBSD: buildlink3.mk,v 1.1.1.1 2007/03/24 16:57:41 agc Exp $
# Packages that only install static libraries or headers should
# include the following line:
#
# BUILDLINK_DEPMETHOD.argp?= build
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
ARGP_BUILDLINK3_MK:= ${ARGP_BUILDLINK3_MK}+
.if ${BUILDLINK_DEPTH} == "+"
BUILDLINK_DEPENDS+= argp
.endif
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nargp}
BUILDLINK_PACKAGES+= argp
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}argp
.if ${ARGP_BUILDLINK3_MK} == "+"
BUILDLINK_API_DEPENDS.argp+= argp>=1.3
BUILDLINK_PKGSRCDIR.argp?= ../../devel/argp
.endif # ARGP_BUILDLINK3_MK
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}

5
devel/argp/distinfo Normal file
View file

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1.1.1 2007/03/24 16:57:41 agc Exp $
SHA1 (argp-standalone-1.3.tar.gz) = 815c560680ebdc11694b88de2f8ec15133e0bfa0
RMD160 (argp-standalone-1.3.tar.gz) = 1c5cd0b1c382d93774be636a1ea2758d530cfef4
Size (argp-standalone-1.3.tar.gz) = 130255 bytes