# -*- 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-rubygems
version             0.4.1
revision            0

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

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

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

checksums           sha256  4bf9988ae2d42d30e50cb85e34f3b8a4a0ef298c9710561fb0ece90cf6978280 \
                    rmd160  fa8accf7092b44a05273932de18df0282586976e \
                    size    5795

python.versions     310 311 312 313 314

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

    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 CHANGELOG \
            ${destroot}${docdir}
    }
}
