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

github.setup        pygraphviz pygraphviz 1.4rc1 pygraphviz-
name                py-pygraphviz
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

checksums           rmd160  265daca13e7a5ed806998f85a6f7248179317901 \
                    sha256  99f74f0b91c4845f36c0d61d1042c5dc476e5092262595210bdf40beaf896ac4

python.versions     27 34 35 36

if {${name} ne ${subport}} {
    depends_build-append    port:pkgconfig
    depends_lib-append  port:py${python.version}-setuptools \
                        path:bin/dot:graphviz

    test.run            yes
    depends_test-append port:py${python.version}-doctest-ignore-unicode \
                        port:py${python.version}-mock \
                        port:py${python.version}-nose \
                        port:py${python.version}-pbr
    test.env-append     PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]

    livecheck.type      none
}