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

supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         {@korusuke somaiya.edu:karan.sheth} {reneeotten @reneeotten} openmaintainer

description         CPAN frontend for upt
long_description    {*}${description}

homepage            https://framagit.org/upt/upt-cpan

checksums           rmd160  c31384f3f622e348d7c15b786e5e68a101823751 \
                    sha256  de06eda9b6805f1099a806a874c6a812c5b1a8d73108b2dc79f041c0b9943a78 \
                    size    6320

python.versions     310 311 312 313 314

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

    depends_test-append \
                    port:py${python.version}-requests-mock

    test.run        yes
    python.test_framework unittest

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