# -*- 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-figleaf
version             0.6.1
revision            0

categories-append   devel
license             BSD
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer

description         code coverage analysis tool, similar to `coverage`
long_description  \
    figleaf is a Python code coverage analysis tool, built somewhat on the model \
    of Ned Batchelder\'s fantastic coverage module. The goals of figleaf are to \
    be a minimal replacement of \'coverage.py\' that supports more configurable \
    coverage gathering and reporting.

homepage            https://github.com/ctb/figleaf/

checksums           rmd160  b4f7c730bf9f45f11d4c90d099b1665c134830c9 \
                    sha256  04d22485db08f9f60c7de92407753423fa0f574c00211e409e8b0f9482f2f062 \
                    size    59051

deprecated.upstream_support no
# no support for Python 3.10+ ; "parser" was removed from standard library
python.versions     39

if {${name} ne ${subport}} {
    post-patch {
       system -W ${worksrcpath} "${prefix}/bin/2to3-${python.branch} --write --nobackups ${python.rootname}"
    }

    depends_lib-append \
                    port:py${python.version}-setuptools

}
