# -*- 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 63403 2010-02-04 07:29:22Z snc@macports.org $

PortSystem          1.0

name                dot2tex
version             2.8.7
categories          graphics print python
platforms           darwin
license             MIT
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     439dd042e8e7129d3d551808b21d19d4 \
                    sha1    57f4a480e9ee1738d6cea094061a000003435384 \
                    rmd160  b57981fc01ce151da101c6d8c46702a14d733a54

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    +python26
}

if {[variant_isset python25]} {
    PortGroup python25 1.0
}

if {[variant_isset python26]} {
    PortGroup python26 1.0
}

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

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

set python.link_binaries 1

livecheck.url       ${homepage}/download/
livecheck.regex     ${name}-(\\d+\\.\\d+\\.\\d+)${extract.suffix}
