# -*- 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-pathlib2
version             2.3.7.post1
revision            0

categories-append   devel
license             MIT
supported_archs     noarch
platforms           {darwin any}

python.versions     27 310 311 312

maintainers         {stromnov @stromnov} openmaintainer

description         Object-oriented filesystem paths (backport of standard pathlib)
long_description    {*}${description}

homepage            https://pypi.python.org/pypi/pathlib2/

checksums           rmd160  a0ca652337491caa857022b3a9bddaf2c7544d24 \
                    sha256  9fe0edad898b83c0c3e199c842b27ed216645d2e177757b2dd67384d4113c641 \
                    size    211190

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

    depends_lib-append  port:py${python.version}-six

    if {${python.version} < 35} {
        depends_lib-append  port:py${python.version}-scandir \
                            port:py${python.version}-typing
        revision    1
    }
}
