# $Id: Portfile,v 1.10 2005/08/11 21:33:30 rshaw Exp $
PortSystem 1.0

name			a2ps
version			4.13b
revision		2
categories		print
maintainers		darwinports@opendarwin.org
description		an Any to PostScript filter.
long_description	a2ps is a utilty that allows the user to do \
					PostScript manipulations. It is able to pass on \
					processing to other filters, such as gzip and dvips.
homepage		http://www.gnu.org/software/a2ps/
platforms		darwin
master_sites	gnu
checksums		md5 0c8e0c31b08c14f7a7198ce967eb3281
worksrcdir		${name}-4.13

depends_build	bin:psnup:psutils

platform darwin {
	post-patch {
		file copy -force /usr/share/libtool/config.guess ${worksrcpath}/auxdir/
		file copy -force /usr/share/libtool/config.sub ${worksrcpath}/auxdir/
	}
}

pre-configure	{ reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/configure }
configure.args	--with-medium=Letter \
				--mandir='\${prefix}/share/man' \
				--infodir='\${prefix}/share/info'

post-destroot	{ file delete ${destroot}${prefix}/share/info/dir }

