# $Id: Portfile 86300 2011-10-24 12:10:27Z jmr@macports.org $

PortSystem 1.0
name		gengetopt
version		2.22.4
categories	devel
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	http://www.gnu.org/software/gengetopt/gengetopt.html
platforms	darwin
master_sites	gnu

checksums	sha1    3231516a9fb625f38cea0ba0c320bf8e3a16748c \
		rmd160  19227a2d3e1fe15751555c4ddfdb41e8946584ec

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
