Permalink
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (33 sloc) 1.35 KB
PortSystem 1.0
name gengetopt
version 2.22.6
categories devel
license GPL-3+
maintainers waqar openmaintainer
description Generates a C function that uses getopt_long function
long_description \
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 is perfect if you are too lazy (like me) \
to write all stuff required to call getopt_long, and when you \
have a program and wish it took options. Generated code works \
if you use GNU Autoconf or GNU Automake.
homepage https://www.gnu.org/software/gengetopt/gengetopt.html
platforms darwin
master_sites gnu
checksums rmd160 e4e147cb4e75b4a0d0e959ae737b3082f534c3da \
sha256 30b05a88604d71ef2a42a2ef26cd26df242b41f5b011ad03083143a31d9b01f7
post-extract {
file attributes ${worksrcpath}/build-aux/install-sh -permissions a+x
}
configure.args --enable-warnings \
--infodir=${prefix}/share/info --mandir=${prefix}/share/man \
ac_cv_path_SOURCEHIGHLIGHT=""
use_parallel_build no
test.run yes
test.target check