# -*- 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-pypi
version             0.6
revision            0

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

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

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

checksums           rmd160  715551cd10a65462277cce62201041c71d8f1930 \
                    sha256  c4d991917d6f7990815ed99d8bd2f1ea9c9da290e4f540dc370eaac47f39088b \
                    size    13103

python.versions     310 311 312 313 314

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

    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}
    }
}
