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

name                py-pydot
set _name           pydot
version             1.2.4
categories-append   graphics
license             MIT
platforms           darwin
supported_archs     noarch
maintainers         nomaintainer

description         Python interface to Graphviz's Dot
long_description    \
    This module provides with a full interface to create handle modify and \
    process graphs in Graphviz's dot language.

homepage            https://github.com/erocarrera/pydot

master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           md5     c70626b9cc7e1c5fde6f22cc5ef06731 \
                    rmd160  de1c6deadf74bd1dd6112df38dcbafb79775d69f \
                    sha256  92d2e2d15531d00710f2d6fb5540d2acabc5399d464f2f20d5d21073af241eb6

python.versions     27 35 36 37

if { ${name} ne ${subport} } {
    depends_build-append    port:py${python.version}-setuptools

    depends_run-append      bin:dot:graphviz \
                            port:py${python.version}-parsing

} else {
    livecheck.type  regex
    livecheck.url   https://pypi.python.org/pypi/${_name}/json
    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
}