# -*- 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.3
categories-append   devel
platforms           darwin
license             MIT
supported_archs     noarch

python.versions     27 34 35 36 37

maintainers         {stromnov @stromnov} openmaintainer

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

homepage            https://pypi.python.org/pypi/pathlib2/
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}

distname            ${python.rootname}-${version}

checksums           rmd160  ab3afd70e158d70e8c5ba700ec273ef08b15fe60 \
                    sha256  25199318e8cc3c25dcb45cbe084cc061051336d5a9ea2a12448d3d8cb748f742 \
                    size    33813

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
    }

    livecheck.type      none
}