summaryrefslogtreecommitdiff
path: root/devel/libargparse
diff options
context:
space:
mode:
authoragc <agc>2002-10-28 13:09:08 +0000
committeragc <agc>2002-10-28 13:09:08 +0000
commit8bfb11e053c9d9e4e12e611a5129f82da9b64202 (patch)
tree2c3a7c6653af99cf834806c7723433bab821a4e7 /devel/libargparse
parentdeb211ca5972e1008a7b97b98d089872f4b9bba6 (diff)
downloadpkgsrc-8bfb11e053c9d9e4e12e611a5129f82da9b64202.tar.gz
Initial import of libargparse-0.1.0000 into the NetBSD Packages Collection.
libargparse is a command line argument parser library in C++ The ArgParse class allows you to specify names of options that you want parsed, along with a usage message for them. Options come in four flavors: flag, int, float, and string. Flags don't take arguments, but the other kinds do. For an option that takes an argument, it can be specified with an equals sign, with a colon, or by putting it in the next element of argv. ("--foo=stuff", "--foo:stuff", or "--foo stuff", respectively) The flavors that take arguments also come in array flavors. With an array, you specify a pointer to a vector of the basic type, instead of just a pointer to a basic type. This allows the option to appear more than once, and the new values are appended to the array. Optionally, you can also specify a separator character, so that multiple array elements can be parsed up from a single instance of the option. Options can start with either a single dash or a double dash, but see allowOneCharOptionsToBeCombined() for more information.
Diffstat (limited to 'devel/libargparse')
-rw-r--r--devel/libargparse/DESCR19
-rw-r--r--devel/libargparse/Makefile16
-rw-r--r--devel/libargparse/PLIST7
-rw-r--r--devel/libargparse/buildlink2.mk25
-rw-r--r--devel/libargparse/distinfo4
5 files changed, 71 insertions, 0 deletions
diff --git a/devel/libargparse/DESCR b/devel/libargparse/DESCR
new file mode 100644
index 00000000000..3f8ee504423
--- /dev/null
+++ b/devel/libargparse/DESCR
@@ -0,0 +1,19 @@
+libargparse is a command line argument parser library in C++
+
+The ArgParse class allows you to specify names of options that you
+want parsed, along with a usage message for them. Options come in
+four flavors: flag, int, float, and string. Flags don't take
+arguments, but the other kinds do. For an option that takes an
+argument, it can be specified with an equals sign, with a colon, or by
+putting it in the next element of argv. ("--foo=stuff",
+"--foo:stuff", or "--foo stuff", respectively)
+
+The flavors that take arguments also come in array flavors. With an
+array, you specify a pointer to a vector of the basic type, instead of
+just a pointer to a basic type. This allows the option to appear more
+than once, and the new values are appended to the array. Optionally,
+you can also specify a separator character, so that multiple array
+elements can be parsed up from a single instance of the option.
+
+Options can start with either a single dash or a double dash, but see
+allowOneCharOptionsToBeCombined() for more information.
diff --git a/devel/libargparse/Makefile b/devel/libargparse/Makefile
new file mode 100644
index 00000000000..a184675bf38
--- /dev/null
+++ b/devel/libargparse/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/10/28 13:09:08 agc Exp $
+#
+
+DISTNAME= libargparse-0.1.0000
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aqsis/}
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.aqsis.org/
+COMMENT= argument parsing library in C++
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/libargparse/PLIST b/devel/libargparse/PLIST
new file mode 100644
index 00000000000..ad272778d98
--- /dev/null
+++ b/devel/libargparse/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/10/28 13:09:08 agc Exp $
+include/argparse.h
+lib/libargparse.a
+lib/libargparse.la
+lib/libargparse.so
+lib/libargparse.so.0
+lib/libargparse.so.0.0
diff --git a/devel/libargparse/buildlink2.mk b/devel/libargparse/buildlink2.mk
new file mode 100644
index 00000000000..d14d7f60dbd
--- /dev/null
+++ b/devel/libargparse/buildlink2.mk
@@ -0,0 +1,25 @@
+# $NetBSD: buildlink2.mk,v 1.1.1.1 2002/10/28 13:09:08 agc Exp $
+#
+# This Makefile fragment is included by packages that use libargparse.
+#
+# This file was created automatically using createbuildlink 2.2.
+#
+
+.if !defined(LIBARGPARSE_BUILDLINK2_MK)
+LIBARGPARSE_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= libargparse
+BUILDLINK_DEPENDS.libargparse?= libargparse>=0.1.0000
+BUILDLINK_PKGSRCDIR.libargparse?= ../../local/libargparse
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.libargparse=libargparse
+BUILDLINK_PREFIX.libargparse_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.libargparse+= include/argparse.h
+BUILDLINK_FILES.libargparse+= lib/libargparse.*
+
+
+BUILDLINK_TARGETS+= libargparse-buildlink
+
+libargparse-buildlink: _BUILDLINK_USE
+
+.endif # LIBARGPARSE_BUILDLINK2_MK
diff --git a/devel/libargparse/distinfo b/devel/libargparse/distinfo
new file mode 100644
index 00000000000..57020b2975a
--- /dev/null
+++ b/devel/libargparse/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/10/28 13:09:08 agc Exp $
+
+SHA1 (libargparse-0.1.0000.tar.gz) = 5574468f84618677f6a7f46547c49fede109cb7c
+Size (libargparse-0.1.0000.tar.gz) = 113175 bytes