# $Id: Portfile 32309 2007-12-24 00:45:23Z ryandesign@macports.org $

PortSystem 1.0

name		pstotext
version		1.9
categories	textproc
maintainers	nomaintainer
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://pages.cs.wisc.edu/~ghost/doc/pstotext.htm
master_sites	ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/contrib/ \
		http://fresh.t-systems-sfr.com/unix/src/misc/

platforms	darwin
checksums	md5 64576e8a10ff5514e285d98b3898ae78 \
		sha1 d84732ba42301a8905f6b14f37d8b57ff8b42a3e \
		rmd160 16dc199d19df64280184d11ccbced7a32770ddad

depends_run	bin:gs:ghostscript

use_configure	no

destroot {
	xinstall -m 755 ${worksrcpath}/pstotext ${destroot}${prefix}/bin
	xinstall -m 644 ${worksrcpath}/pstotext.1 ${destroot}${prefix}/share/man/man1
	
	set docdir ${destroot}${prefix}/share/doc/${name}-${version}
	xinstall -d ${docdir}
	xinstall -m 644 ${worksrcpath}/pstotext.txt ${docdir}
}
