# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        codecov codecov-python 2.1.11 v
name                py-codecov
revision            0
categories-append   devel

license             Apache-2
maintainers         nomaintainer
platforms           darwin
supported_archs     noarch

description         Hosted coverage reports for Github, Bitbucket and Gitlab

long_description    {*}${description}.

checksums           rmd160  4075f26b77ad55651a8a560efdeea850dd523700 \
                    sha256  5bae4cd0965d8d7e2c94552a9e98632ab1c36feec48b792d740ba0985ba750a8 \
                    size    26437

python.versions     37 38 39

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

    depends_run-append \
                    port:py${python.version}-coverage \
                    port:py${python.version}-requests

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.md \
            ${destroot}${docdir}
    }

    livecheck.type  none
}
