From bac9840834171467e0afdcf038732663971e002d Mon Sep 17 00:00:00 2001 From: alek Date: Mon, 29 May 2006 21:56:50 +0000 Subject: [PATCH] Import argtable 2.6 Argtable is an ANSI C library for parsing GNU style command line options with a minimum of fuss. It enables a program's command line syntax to be defined in the source code as an array of argtable structs. From Jasper Lievisse Adriaanse --- devel/argtable/Makefile | 25 ++++++++++++++++ devel/argtable/distinfo | 4 +++ devel/argtable/patches/patch-Makefile_in | 12 ++++++++ devel/argtable/pkg/DESCR | 7 +++++ devel/argtable/pkg/PFRAG.shared | 2 ++ devel/argtable/pkg/PLIST | 36 ++++++++++++++++++++++++ 6 files changed, 86 insertions(+) create mode 100644 devel/argtable/Makefile create mode 100644 devel/argtable/distinfo create mode 100644 devel/argtable/patches/patch-Makefile_in create mode 100644 devel/argtable/pkg/DESCR create mode 100644 devel/argtable/pkg/PFRAG.shared create mode 100644 devel/argtable/pkg/PLIST diff --git a/devel/argtable/Makefile b/devel/argtable/Makefile new file mode 100644 index 00000000000..fa8505d3910 --- /dev/null +++ b/devel/argtable/Makefile @@ -0,0 +1,25 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2006/05/29 21:56:50 alek Exp $ + +COMMENT= "ANSI C command line parser" + +DISTNAME= argtable2-6 +PKGNAME= argtable-2.6 +SHARED_LIBS= argtable2 1.1 +CATEGORIES= devel + +HOMEPAGE= http://argtable.sourceforge.net/ + +MAINTAINER= Jasper Lievisse Adriaanse + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=argtable/} + +USE_LIBTOOL= Yes +CONFIGURE_STYLE= gnu + +.include diff --git a/devel/argtable/distinfo b/devel/argtable/distinfo new file mode 100644 index 00000000000..5d393a90afe --- /dev/null +++ b/devel/argtable/distinfo @@ -0,0 +1,4 @@ +MD5 (argtable2-6.tar.gz) = e1d5035992b29b45c5abad2b3487e096 +RMD160 (argtable2-6.tar.gz) = aa30ad20b09fb3fb11a01d628dfedc6209ba8bf7 +SHA1 (argtable2-6.tar.gz) = e4296293ce39689e7f003e953b6a89f826c64445 +SIZE (argtable2-6.tar.gz) = 3335916 diff --git a/devel/argtable/patches/patch-Makefile_in b/devel/argtable/patches/patch-Makefile_in new file mode 100644 index 00000000000..11f277607e5 --- /dev/null +++ b/devel/argtable/patches/patch-Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-Makefile_in,v 1.1.1.1 2006/05/29 21:56:50 alek Exp $ +--- Makefile.in.orig Sun May 28 17:26:30 2006 ++++ Makefile.in Sun May 28 17:27:14 2006 +@@ -202,7 +202,7 @@ + example/hasoptvalue.c example/ls.c example/multisyntax.c \ + example/mv.c example/myprog.c example/myprog_C89.c \ + example/rm.c example/uname.c +-dist_data_DATA = src/Makefile.nmake src/argtable2.def ++dist_data_DATA = + all: all-recursive + + .SUFFIXES: diff --git a/devel/argtable/pkg/DESCR b/devel/argtable/pkg/DESCR new file mode 100644 index 00000000000..9ee739fcc8c --- /dev/null +++ b/devel/argtable/pkg/DESCR @@ -0,0 +1,7 @@ +Argtable is an ANSI C library for parsing GNU style command line options +with a minimum of fuss. It enables a program's command line syntax to be +defined in the source code as an array of argtable structs. The command +line is then parsed according to that specification and the resulting +values are returned in those same structs where they are accessible to +the main program. Both tagged (-v, --verbose, --foo=bar) and untagged +arguments are supported, as are multiple instances of each argument. diff --git a/devel/argtable/pkg/PFRAG.shared b/devel/argtable/pkg/PFRAG.shared new file mode 100644 index 00000000000..d2fb6ae44ff --- /dev/null +++ b/devel/argtable/pkg/PFRAG.shared @@ -0,0 +1,2 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2006/05/29 21:56:50 alek Exp $ +@lib lib/libargtable2.so.${LIBargtable2_VERSION} diff --git a/devel/argtable/pkg/PLIST b/devel/argtable/pkg/PLIST new file mode 100644 index 00000000000..eb82c30daea --- /dev/null +++ b/devel/argtable/pkg/PLIST @@ -0,0 +1,36 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2006/05/29 21:56:50 alek Exp $ +%%SHARED%% +include/argtable2.h +lib/libargtable2.a +lib/libargtable2.la +@comment @man man/man3/argtable.3 +@man man/man3/argtable2.3 +share/doc/argtable2/ +share/doc/argtable2/arg_int.gif +share/doc/argtable2/argtable2-advanced.html +share/doc/argtable2/argtable2-advanced.pdf +share/doc/argtable2/argtable2-advanced.ps +share/doc/argtable2/argtable2-intro.html +share/doc/argtable2/argtable2-intro.pdf +share/doc/argtable2/argtable2-intro.ps +share/doc/argtable2/argtable2.html +share/doc/argtable2/argtable2.pdf +share/doc/argtable2/argtable2.ps +share/doc/argtable2/argxxx.gif +share/doc/argtable2/example/ +share/doc/argtable2/example/Makefile +share/doc/argtable2/example/Makefile.nmake +share/doc/argtable2/example/README.txt +share/doc/argtable2/example/argcustom.c +share/doc/argtable2/example/argxxx.c +share/doc/argtable2/example/argxxx.h +share/doc/argtable2/example/callbacks.c +share/doc/argtable2/example/echo.c +share/doc/argtable2/example/hasoptvalue.c +share/doc/argtable2/example/ls.c +share/doc/argtable2/example/multisyntax.c +share/doc/argtable2/example/mv.c +share/doc/argtable2/example/myprog.c +share/doc/argtable2/example/myprog_C89.c +share/doc/argtable2/example/rm.c +share/doc/argtable2/example/uname.c