# -*- 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-base-dirs
version                 6.0.2
revision                0

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

distname                [string map {- _} ${python.rootname}]-${version}

checksums               rmd160  987d63bec56f32f12134910512ade5d783d159b5 \
                        sha256  950504e14d27cf3c9cb37744680a43bf0ac42efefc4ef4acf98dc736cab2bced \
                        size    4085

python.versions         310 311 312 313 314
python.pep517_backend   poetry

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