# -*- 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-xdg
version                 6.0.0
revision                1

supported_archs         noarch
platforms               {darwin any}
license                 ISC
maintainers             {@RhetTbull gmail.com:rturnbull} openmaintainer

description             Variables defined by the XDG Base Directory Specification
long_description        {*}${description}

homepage                https://github.com/srstevenson/xdg-base-dirs

checksums               rmd160  046e3c5fc5878f57cc4490baa3049dca5908e442 \
                        sha256  24278094f2d45e846d1eb28a2ebb92d7b67fc0cab5249ee3ce88c95f649a1c92 \
                        size    3453

python.versions         310 311 312

conflicts               py-pyxdg

python.pep517           yes
python.pep517_backend   poetry

if {${name} ne ${subport}} {
    conflicts           py${python.version}-pyxdg

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

        file delete -force ${destroot}/${python.pkgd}/LICENCE
    }
}
