summaryrefslogtreecommitdiff
path: root/devel/gengetopt
diff options
context:
space:
mode:
authorwiz <wiz>2013-10-23 17:41:57 +0000
committerwiz <wiz>2013-10-23 17:41:57 +0000
commit6e5a5053718de0d960f5b150d5b97bc76faa8987 (patch)
tree454f933aa131b5f011af0f9753b0c2e25914169a /devel/gengetopt
parenta22e11a784d8bcb7def2c6516261315cc4ef6192 (diff)
downloadpkgsrc-6e5a5053718de0d960f5b150d5b97bc76faa8987.tar.gz
Import gengetopt-2.22.6 as devel/gengetopt.
This program generates a C function that uses getopt_long function to parse the command line options, to validate them and fills a struct . Thus your program can now handle options such as: myprog --input foo.c -o foo.o --no-tabs -i 100 *.class And both long options (those that start with --) and short options (start with - and consist of only one character) can be handled. Gengetopt can also generate a function to save the command line options into a file, and a function to read the command line options from a file. Of course, these two kinds of files are compliant.
Diffstat (limited to 'devel/gengetopt')
-rw-r--r--devel/gengetopt/DESCR14
-rw-r--r--devel/gengetopt/Makefile20
-rw-r--r--devel/gengetopt/PLIST29
-rw-r--r--devel/gengetopt/distinfo5
4 files changed, 68 insertions, 0 deletions
diff --git a/devel/gengetopt/DESCR b/devel/gengetopt/DESCR
new file mode 100644
index 00000000000..99b692d44cd
--- /dev/null
+++ b/devel/gengetopt/DESCR
@@ -0,0 +1,14 @@
+This program generates a C function that uses getopt_long function
+to parse the command line options, to validate them and fills a
+struct .
+
+Thus your program can now handle options such as:
+
+myprog --input foo.c -o foo.o --no-tabs -i 100 *.class
+
+And both long options (those that start with --) and short options
+(start with - and consist of only one character) can be handled.
+
+Gengetopt can also generate a function to save the command line
+options into a file, and a function to read the command line options
+from a file. Of course, these two kinds of files are compliant.
diff --git a/devel/gengetopt/Makefile b/devel/gengetopt/Makefile
new file mode 100644
index 00000000000..ac469cd3dc4
--- /dev/null
+++ b/devel/gengetopt/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2013/10/23 17:41:57 wiz Exp $
+
+DISTNAME= gengetopt-2.22.6
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GNU:=gengetopt/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.gnu.org/software/gengetopt/
+COMMENT= Command line parser generator
+LICENSE= gnu-gpl-v3
+
+GNU_CONFIGURE= yes
+USE_LANGUAGES= c c++
+USE_LIBTOOL= yes
+USE_TOOLS+= gmake
+# complains about missing ../src/somelibrary.la
+MAKE_JOBS_SAFE= no
+INFO_FILES= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/gengetopt/PLIST b/devel/gengetopt/PLIST
new file mode 100644
index 00000000000..aaf75993fb3
--- /dev/null
+++ b/devel/gengetopt/PLIST
@@ -0,0 +1,29 @@
+@comment $NetBSD: PLIST,v 1.1 2013/10/23 17:41:57 wiz Exp $
+bin/gengetopt
+info/gengetopt.info
+man/man1/gengetopt.1
+share/doc/gengetopt/COPYING
+share/doc/gengetopt/ChangeLog
+share/doc/gengetopt/INSTALL
+share/doc/gengetopt/LICENSE
+share/doc/gengetopt/NEWS
+share/doc/gengetopt/README
+share/doc/gengetopt/THANKS
+share/doc/gengetopt/examples/README.example
+share/doc/gengetopt/examples/cmdline1.c
+share/doc/gengetopt/examples/cmdline1.h
+share/doc/gengetopt/examples/cmdline2.c
+share/doc/gengetopt/examples/cmdline2.h
+share/doc/gengetopt/examples/main1.cc
+share/doc/gengetopt/examples/main2.c
+share/doc/gengetopt/examples/sample1.ggo
+share/doc/gengetopt/examples/sample2.ggo
+share/doc/gengetopt/examples/test_manual_help.c
+share/doc/gengetopt/examples/test_manual_help_cmd.c
+share/doc/gengetopt/examples/test_manual_help_cmd.ggo
+share/doc/gengetopt/examples/test_manual_help_cmd.h
+share/doc/gengetopt/gengetopt.html
+share/doc/gengetopt/index.html
+share/gengetopt/getopt.c
+share/gengetopt/getopt1.c
+share/gengetopt/gnugetopt.h
diff --git a/devel/gengetopt/distinfo b/devel/gengetopt/distinfo
new file mode 100644
index 00000000000..d2bde029c72
--- /dev/null
+++ b/devel/gengetopt/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2013/10/23 17:41:57 wiz Exp $
+
+SHA1 (gengetopt-2.22.6.tar.gz) = c93bdec17f247aa32b3cd6530a6f68aa430d67f5
+RMD160 (gengetopt-2.22.6.tar.gz) = e4e147cb4e75b4a0d0e959ae737b3082f534c3da
+Size (gengetopt-2.22.6.tar.gz) = 1056293 bytes