# -*- 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-pathtools
version             0.1.2
revision            0

platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {petr @petrrr} openmaintainer

description         File system general utilities
long_description    {*}${description}

homepage            https://pythonhosted.org/pathtools

checksums           rmd160  cdc2001f64f953bcff70e1dd85d2527665a12272 \
                    sha256  7c35c5421a39bb82e58018febd90e3b6e5db34c5443aaaf742b3f33d4655f1c0 \
                    size    11006

python.versions     27 310 311 312 313 314

if { ${name} ne ${subport} } {
    if {${python.version} >= 312} {
        patchfiles-append \
                    fix-support-py312.diff
    }

    depends_build-append \
                    port:py${python.version}-setuptools
}
