# $Id: Portfile,v 1.2 2005/10/19 08:10:16 blb Exp $
PortSystem 1.0
name		pstotext
version		1.8g
categories	textproc
maintainers	blb@opendarwin.org
description	Extract ASCII text from a PostScript or PDF file
long_description	pstotext reads one or more PostScript or PDF files, \
			and writes to standard output (or a file) a \
			representation of the plain text that would be \
			displayed if the PostScript/PDF file were printed.

homepage	http://www.research.compaq.com/SRC/virtualpaper/pstotext.html
master_sites	http://www.research.compaq.com/SRC/virtualpaper/binaries/
distfiles	${name}.tar.Z

platforms	darwin
checksums	md5 1be0be028ccc85be1bf55d7e90976b18

depends_lib	bin:gs:ghostscript
extract.cmd	uncompress
worksrcdir	${name}

use_configure	no

destroot {
	file mkdir "${destroot}/${prefix}/bin"
	file mkdir "${destroot}/${prefix}/share/man/man1"
	file mkdir "${destroot}/${prefix}/share/doc/pstotext"
	system "install -m 755 ${worksrcpath}/pstotext ${destroot}/${prefix}/bin"
	system "install -m 644 ${worksrcpath}/pstotext.1 ${destroot}/${prefix}/share/man/man1"
	system "install -m 644 ${worksrcpath}/pstotext.txt ${destroot}/${prefix}/share/doc/pstotext"
}

