# -*- 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
PortGroup           github 1.0

github.setup        kjellmf dot2tex 2.9.0
categories          graphics print python
platforms           darwin
license             MIT
maintainers         {snc @nerdling} openmaintainer
description         Convert graphs generated by Graphviz to LaTeX friendly formats
long_description \
   The purpose of dot2tex is to give graphs generated by Graphviz a more \
   LaTeX friendly look and feel. This is accomplished by converting xdot \
   output from Graphviz to a series of PSTricks or PGF/TikZ commands.

checksums           rmd160  494a020addde7f21208af9c15af28c663d837bcf \
                    sha256  0ea4813c44d7b24aed1ac0c1fb82a4584bbd1ad8a812cc3a0d820284491eda4e

depends_run         bin:dot:graphviz bin:latex:texlive bin:pdflatex:texlive

PortGroup           python 1.0

python.default_version  27
depends_lib-append      port:py${python.version}-parsing

post-extract {
    fs-traverse dir ${workpath} {
        if {[file isdirectory ${dir}]} {
            file attributes ${dir} -permissions 0755
        }
    }
}