# -*- 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-xmltodict
version             1.0.2
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {petr @petrrr} openmaintainer

description         Makes working with XML feel like you are working with JSON
long_description    This Python module makes working with XML feel like you \
                    are working with JSON.

homepage            https://github.com/martinblech/xmltodict

checksums           rmd160  47acf4b1b4ef9317cc03b0234ce33325f734be52 \
                    sha256  54306780b7c2175a3967cad1db92f218207e5bc1aba697d887807c0fb68b7649 \
                    size    25725

python.versions     39 310 311 312 313 314

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-wheel
    test.run        yes

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