# -*- 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.11 pygraphviz-
github.tarball_from archive
revision            0
name                py-pygraphviz

categories-append   science
license             BSD
maintainers         {gmail.com:jjstickel @jjstickel} openmaintainer

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  95e03bbc2ca3f0cac2549eeb8763ccc1ef3fa7a0 \
                    sha256  5d34274833b21d9ed69cecd1abb9c1f2e12abe1856c5197809a38e8df8229ae7 \
                    size    111080

python.versions     310 311 312 313

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

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

    test.run        yes
    test.args       --pyargs pygraphviz

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

github.livecheck.regex  {([0-9.]+)}
