# $Id: Portfile 98019 2012-09-22 09:27:56Z jmr@macports.org $

PortSystem 1.0

name		agrep
version		2.04
revision	1
description	agrep is similar to egrep.
long_description	agrep is similar to egrep \(or grep or fgrep\), \
			but it is much more general \(and usually faster\).
maintainers	nomaintainer
categories	sysutils
license		Noncommercial
platforms	darwin
homepage	http://netbsd.org
master_sites	ftp://ftp.cs.arizona.edu/agrep/
checksums	md5 abc645404d3926a57c3f5e86a6e89ee9
extract.suffix	.tar.Z

patchfiles	return_types.patch warnings.patch

use_configure	no
build.type	bsd
build.target	""
build.args	CC="${configure.cc}" \
		CFLAGS="${configure.cflags} ${configure.cc_archflags} -std=gnu89"
destroot {
	xinstall ${worksrcpath}/agrep ${destroot}${prefix}/bin/
	xinstall -m 644 ${worksrcpath}/agrep.1 ${destroot}${prefix}/share/man/man1/
	xinstall -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} COPYRIGHT README agrep.algorithms \
	    agrep.chronicle contribution.list \
	    ${destroot}${prefix}/share/doc/${name}
}
