# -*- 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-fs
version             2.4.16
revision            0

license             MIT
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer

description         Python's filesystem abstraction layer
long_description    {*}${description}

homepage            https://github.com/PyFilesystem/pyfilesystem2

checksums           rmd160  8f6ef82ac6c3e24901bfd64603bcbf1628d024dc \
                    sha256  ae97c7d51213f4b70b6a958292530289090de3a7e15841e108fbe144f069d313 \
                    size    187441

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_lib-append \
                        port:py${python.version}-appdirs \
                        port:py${python.version}-six \
                        port:py${python.version}-tz

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