# -*- 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-platformdirs
version             2.0.2
revision            0

categories-append   devel
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         A small Python module for determining appropriate platform-specific dirs
long_description    ${description}, e.g. a \"user data dir\".

homepage            https://github.com/platformdirs/platformdirs

checksums           rmd160  b03f9dd52b9b7232f6e154ae51eaf662b645c05e \
                    sha256  3b00d081227d9037bbbca521a5787796b5ef5000faea1e43fd76f1d44b06fcfa \
                    size    11445

# keep all these Python versions, port is a dependency of py-virtualenv
python.versions     27 34 35 36 37 38 39

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst CHANGES.rst \
            LICENSE.txt ${destroot}${docdir}
    }

    livecheck.type  none
}
