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

name                py-pycallgraph
version             1.0.1
categories-append   devel
platforms           darwin
supported_archs     noarch
license             GPL-2+
maintainers         nomaintainer

description         A Python module that creates call graphs for Python programs.
long_description    ${description}

homepage            https://github.com/gak/pycallgraph
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  c7504663783e7e72d3a64cac77f8f8d523e50a2a \
                    sha256  b1262b0f9831da889c6e9a9a82a22267df497013cd2f5b36c39359a607c91e71 \
                    size    36391

deprecated.upstream_support no
python.versions     27 35 36 37

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

    depends_run-append  path:bin/dot:graphviz

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} LICENSE ${destroot}${docdir}
        file copy ${worksrcpath}/man/${python.rootname}.1 ${destroot}${prefix}/share/man/man1/${python.rootname}-${python.branch}.1
    }

    livecheck.type  none
}