# $Id: Portfile,v 1.6 2006/03/19 00:31:22 blb Exp $

PortSystem			1.0
name				getopt
version				1.1.4
categories			sysutils
maintainers			blb@opendarwin.org
description			Replacement getopt for shell script use
long_description \
	Getopt(1) is a program to help shell scripts parse command-line \
	parameters.  It can do anything that the GNU getopt(3) routines can do. \
	It can cope with spaces and shell metacharacters within arguments. \
	It can parse long parameters. \
	It can shuffle parameters, so you can mix options and other parameters on \
	the command-line. \
	It can be easily identified as an enhanced getopt(1) from within shell \
	scripts. \
	It can report parse errors as coming from the shell script. \
	It is fully compatible with other getopt(1) implementations.

platforms			darwin

homepage			http://huizen.dds.nl/~frodol/getopt.html
master_sites		http://software.frodo.looijaard.name/getopt/files/

checksums			md5 02188ca68da27c4175d6e9f3da732101

patchfiles			patch-Makefile

depends_lib			port:gettext

use_configure		no

build.args			LIBCGETOPT=0 prefix=${prefix} mandir=${prefix}/share/man

destroot.args		${build.args}
destroot.target		install install_doc

post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} COPYING Changelog README TODO \
		${destroot}${prefix}/share/doc/${name}
}

