# -*- 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

PortSystem              1.0

name                    fig2ps
conflicts               TeXmacs
version                 1.5
revision                9
categories              graphics tex
license                 GPL-2
maintainers             nomaintainer
platforms               any
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:fig2dev \
                        bin:latex:texlive

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

build {}

livecheck.regex         ${name}-(\[0-9.\]+)${extract.suffix}
