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

name                py-python-coveralls
version             2.9.3
revision            1

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

description         Python API for https://coveralls.io
long_description    {*}${description}

homepage            https://github.com/z4r/python-coveralls

checksums           rmd160  a6b60bc37aa14b2ba1bae0e56daa5e07f5a4fa3a \
                    sha256  bfaf7811e7dc5628e83b6b162962a4e2485dbff184b30e49f380374ed1bcee55 \
                    size    9036

python.versions     310 311

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-coverage \
                    port:py${python.version}-requests \
                    port:py${python.version}-six \
                    port:py${python.version}-yaml

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