# -*- 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                fig2dev
version             3.2.7b
revision            1
categories          print graphics
platforms           darwin
license             Permissive
maintainers         nomaintainer

description         Translates Fig code to various graphics languages

long_description    Fig2dev is a set of tools for creating TeX documents \
                    with graphics which are portable, in the sense that they \
                    can be printed in a wide variety of environments. \
                    The fig2dev command translates Fig code to other \
                    graphic description languages. \
                    transfig is considered obsolete and is not installed. \
                    Drivers currently exist for the following graphics \
                    languages: (E)EPIC macros, LaTeX picture environment, PIC, \
                    PiCTeX, PostScript, and TeXtyl.

homepage            http://xfig.org/
master_sites        sourceforge:project/mcj
use_xz              yes

checksums           rmd160  133011bf9d998464b87fc952a739a58307cfb270 \
                    sha256  47dc1b4420a1bc503b3771993e19cdaf75120d38be6548709f7d84f7b07d68b2 \
                    size    512224

depends_lib         port:ghostscript \
                    port:libpng \
                    port:xpm

depends_run         port:netpbm

variant universal {}

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        CHANGES \
        NOTES \
        README \
        ${docdir}
}

test.run            yes
test.target         check

livecheck.type      regex
livecheck.url       https://sourceforge.net/projects/mcj/rss
livecheck.regex     ${name}-(\[0-9.a-z\]+)${extract.suffix}