# $Id: Portfile 107692 2013-07-04 10:51:20Z jmr@macports.org $

PortSystem              1.0
PortGroup               python 1.0

name                    py-pygraphviz
version                 1.1
categories-append       science
license                 BSD
maintainers             nomaintainer
description             A Python wrapper for the Graphviz Agraph data structure.
long_description        PyGraphviz is a Python interface to the Graphviz graph layout \
                        and visualization package. With PyGraphviz you can create, edit, \
                        read, write, and draw graphs using Python to access the Graphviz \
                        graph data structure and layout algorithms. PyGraphviz is \
                        independent from NetworkX but provides a similar programming \
                        interface.

platforms               darwin

homepage                http://networkx.lanl.gov/pygraphviz/
master_sites            https://pypi.python.org/packages/source/p/pygraphviz/
distname                pygraphviz-${version}

checksums               md5    5c206838ce81180557e29135e93b2461 \
                        rmd160 b627a2a3268d9f024531c15fb35caf9306b24674 \
                        sha256 cb614a30db8bd1a422bd2e5c67b09e17bb00ca6a199496c69306dac344342ca5

python.versions         25 26 27

if {$subport != $name} {
    depends_build           port:pkgconfig
    depends_lib-append      path:bin/dot:graphviz
    livecheck.type          none
} else {
    livecheck.type          regex
    livecheck.url           ${master_sites}
    livecheck.regex         "pygraphviz-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
