# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 69366 2010-07-02 15:32:39Z ryandesign@macports.org $

PortSystem              1.0

name                    fig2ps
version                 1.5
categories              graphics tex
maintainers             vcn.com:jjstickel
platforms               darwin
homepage                http://fig2ps.sourceforge.net/
master_sites            sourceforge
use_configure           no

description             converts xfig files to PostScript or PDF, processing text with LaTeX

long_description        fig2ps is a perl script which converts xfig files to \
                        PostScript or PDF, processing text with LaTeX. Its \
                        primary aim is to produce documents (such as articles) \
                        with a high quality, in which the pictures are \
                        seamlessly integrated with the text (notably, the font \
                        in the figures is exactly the same as in the text).

checksums               md5     22ea30b5d0f36dfec7b462449b0fc82b \
                        sha1    088f5b4a4beda035b6ddb8019e290627c2452d34 \
                        rmd160  1d33c9b7377989f1a83cbfd8f63ecf82c8bad5ac

use_bzip2               yes

supported_archs         noarch

depends_run             path:bin/perl:perl5 \
                        port:ghostscript \
                        port:transfig \
                        bin:latex:texlive

post-extract {
    reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/Makefile
    reinplace "s|/etc|${prefix}/etc|" ${worksrcpath}/Makefile ${worksrcpath}/bin/fig2ps
}

build {}
