# -*- 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-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           md5     41d2108eedbf3a2f19cae8d4959e6265 \
                    sha1    0eb1d0d2e4fd18ce47722a1898f6fba9edcdaa31 \
                    rmd160  c7504663783e7e72d3a64cac77f8f8d523e50a2a

python.versions     27 34 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

} else {
    livecheck.type  pypi
}