# -*- 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.9a
revision            0
categories          print graphics
license             Permissive
maintainers         {me.com:remko.scharroo @remkos} \
                    openmaintainer

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            https://mcj.sourceforge.net
master_sites        sourceforge:project/mcj
use_xz              yes

checksums           rmd160  eb9bac3262c7d872d49d8d3d7cc85ff6ceae097b \
                    sha256  61e185393176852f03b901b3b05b19fbc5ad8258ff142f3da6e70b1b83513326 \
                    size    536560

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}
