# $Id: Portfile 64560 2010-03-09 09:17:31Z takanori@macports.org $

PortSystem			1.0
name				ps2eps
version				1.64
categories			print
platforms			darwin
maintainers			aschenke
homepage			http://www.tm.uka.de/~bless/ps2eps
description			PostScript to Encapsulated PostScript (EPS) conversion utility

long_description   	ps2eps is a tool (written in Perl) to produce Encapsulated \
					PostScript Files (EPS/EPSF) from usual one-paged PostScript \
					documents. It calculates correct bounding boxes for those \
					EPS files and filters some special PostScript command \
					sequences that can produce erroneous results on printers. \
					EPS files are often needed for including (scalable) graphics \
					of high quality into TeX/LaTeX (or even Word) documents.
                  
master_sites		http://www.tm.uka.de/~bless/
checksums			md5 89aec3f075cee662f2367b12337b5c3e \
					sha1 3fb21d1109700b80d2b8248e5d9df9de1cefb8e4 \
					rmd160 e205a2f7b8e2ad58e9c26cc9a261dbd0c2da1dd4

depends_run			port:ghostscript \
                    bin:perl:perl5

conflicts           texlive_base

worksrcdir          ${name}

use_configure       no

build.cmd			gcc src/C/bbox.c -o bin/bbox
build.target

destroot {
	xinstall -m 755 ${worksrcpath}/bin/bbox ${destroot}${prefix}/bin
	xinstall -m 755 ${worksrcpath}/bin/ps2eps ${destroot}${prefix}/bin
	xinstall -m 644 -W ${worksrcpath}/doc/man/man1/ bbox.1 ps2eps.1 \
		${destroot}${prefix}/share/man/man1/
}
