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

set _name           coverage
set _n              [string index ${_name} 0]

name                py-${_name}
version             4.5.1
categories-append   devel
maintainers         {petr @petrrr} openmaintainer
license             Apache-2

description         Code coverage measurement for Python
long_description    Coverage measures code coverage, typically during test \
                    execution. It uses the code analysis tools and tracing \
                    hooks provided in the Python standard library to \
                    determine which lines are executable, and which have \
                    been executed.

platforms           darwin

homepage            http://nedbatchelder.com/code/${_name}/
master_sites        pypi:${_n}/${_name}/
distname            ${_name}-${version}

checksums           rmd160  23be4f1a1e21e4b409a684017fc3b5c68e009166 \
                    sha256  56e448f051a201c5ebbaa86a5efd0ca90d327204d8b059ab25ad0f35fbfd79f1 \
                    size    379675

python.versions     27 34 35 36

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

    patchfiles      patch-setup.py.diff

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