diff options
-rw-r--r-- | devel/argp/DESCR | 19 | ||||
-rw-r--r-- | devel/argp/Makefile | 18 | ||||
-rw-r--r-- | devel/argp/PLIST | 3 | ||||
-rw-r--r-- | devel/argp/buildlink3.mk | 23 | ||||
-rw-r--r-- | devel/argp/distinfo | 5 |
5 files changed, 68 insertions, 0 deletions
diff --git a/devel/argp/DESCR b/devel/argp/DESCR new file mode 100644 index 00000000000..f8a57da792f --- /dev/null +++ b/devel/argp/DESCR @@ -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. diff --git a/devel/argp/Makefile b/devel/argp/Makefile new file mode 100644 index 00000000000..b311ad65958 --- /dev/null +++ b/devel/argp/Makefile @@ -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" diff --git a/devel/argp/PLIST b/devel/argp/PLIST new file mode 100644 index 00000000000..14bfca777a6 --- /dev/null +++ b/devel/argp/PLIST @@ -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 diff --git a/devel/argp/buildlink3.mk b/devel/argp/buildlink3.mk new file mode 100644 index 00000000000..bb98c7ef01c --- /dev/null +++ b/devel/argp/buildlink3.mk @@ -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/+$//} diff --git a/devel/argp/distinfo b/devel/argp/distinfo new file mode 100644 index 00000000000..49a1ae557d2 --- /dev/null +++ b/devel/argp/distinfo @@ -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 |