# -*- 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.13 v
github.tarball_from archive
name                py-codecov
revision            0

# Stealth update 2.1.13; remove for next version
dist_subdir         ${name}/${version}_1

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

description         Hosted coverage reports for Github, Bitbucket and Gitlab
long_description    {*}${description}.

checksums           rmd160  bcae8d2dbbae3ee68322e30f55140b954be0cb51 \
                    sha256  b777d2a24f1a417481f158e172f60b3326799ffc121e6f762ef809d3cfffa0c9 \
                    size    27672

python.versions     39 310 311 312 313

if {${name} ne ${subport}} {
    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}
    }
}
