# -*- 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.14 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  82775d7fed618f89ccf4f771a72be0765b9d2e8b \
                    sha256  d9a43f34b920367fa89a2598083b47db42a28078aff7d4e2cb41475137532560 \
                    size    111633

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.]+)}
