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

PortSystem          1.0
PortGroup           python 1.0

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

name                py-${_name}
version             3.7.1
categories-append   devel
maintainers         nomaintainer
license             BSD
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        https://pypi.python.org/packages/source/${_n}/${_name}/
distname            ${_name}-${version}

checksums           md5     c47b36ceb17eaff3ecfab3bcd347d0df \
                    rmd160  ba87d81ed228261c019629e23a904f248143ea1f \
                    sha256  d1aea1c4aa61b8366d6a42dd3650622fbf9c634ed24eaf7f379c8b970e5ed44e

python.versions     26 27 33 34

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

    patchfiles      patch-setup.py.diff

    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.url   [lindex ${master_sites} 0]
    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
}