# -*- 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-yappi
categories-append   devel

version             0.98
revision            0

license             MIT

platforms           darwin
maintainers         openmaintainer {adfernandes @adfernandes}

supported_archs     noarch
python.versions     27 36 37

description         Yet Another Python Profiler.
long_description    \
    The CPython standard distribution comes with three profilers: cProfile, Profile and \
    hotshot. The cProfile module is implemented as a C module based on lsprof, Profile \
    is in pure Python, and the hotshot can be seen as a small subset of a cProfile. Unlike \
    any of these profilers, however, yappi fully supports profiling multi-threaded programs.

homepage            https://bitbucket.org/sumerc/yappi
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  dc4ffb234b80e3c3f5241aa227a749cb51f6ada2 \
                    sha256  5f657129e1b9b952379ffbc009357d0dcdb58c50f3bfe88ffbb992e4b27b263c \
                    size    37074

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

    livecheck.type  none
} else {
    livecheck.type  pypi
}
