# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 54537 2009-07-29 11:15:04Z snc@macports.org $

PortSystem          1.0

name                dot2tex
version             2.8.6
categories          graphics print python
platforms           darwin
maintainers         snc 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.

homepage            http://www.fauskes.net/code/dot2tex/
master_sites        googlecode
checksums           md5     8af7c44ea6484d47faee31cacbad9206 \
                    sha1    db5faad170f6abc3988fe2d38bf513e360609670 \
                    rmd160  19b31dfb3c0e101e5696bc58069a62152b2f7a3f

livecheck.regex     <a href="http://dot2tex.googlecode.com/files/dot2tex-(.*)\.tar\.gz"

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

if {![variant_isset python25] && ![variant_isset python26]} {
	default_variants    +python25
}

variant python25 conflicts python26 {
    PortGroup           python25 1.0
    depends_lib-append  port:py25-parsing
}

variant python26 conflicts python25 {
    PortGroup           python26 1.0
    depends_lib-append  port:py26-parsing
}

post-destroot {
   xinstall -m 644 -W ${worksrcpath} README.txt changelog.txt \
      ${destroot}${prefix}/share/doc/${name}
   eval file copy [glob ${worksrcpath}/doc/*] ${destroot}${prefix}/share/doc/${name}/
   eval xinstall -m 644 [glob examples/*] ${destroot}${prefix}/share/doc/${name}/examples
}
