# -*- 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.5 pygraphviz-
revision            0
name                py-pygraphviz

categories-append   science
platforms           darwin
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.

checksums           rmd160  caa507e270f019f20f5a3e863ee889485ada8acc \
                    sha256  8710237caaa5be02b920b4db3129f6161ef176fe3c615b5ee21e1b0ae6cf5cab \
                    size    102823

python.versions     27 35 36 37 38

if {${name} ne ${subport}} {
    depends_build-append \
                    port:pkgconfig

    depends_lib-append \
                    port:py${python.version}-setuptools \
                    path:bin/dot:graphviz

    depends_test-append \
                    port:py${python.version}-doctest-ignore-unicode \
                    port:py${python.version}-mock \
                    port:py${python.version}-nose

    pre-test {
        test.env    PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
    }
    test.run        yes

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} INSTALL.txt LICENSE \
            README.rst ${destroot}${docdir}
    }

    livecheck.type  none
}