# -*- 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-backports.os
version             0.1.1
revision            0
platforms           darwin
supported_archs     noarch
license             PSF
maintainers         {reneeotten @reneeotten} openmaintainer

description         Backport of new features in Python's os module
long_description    ${description}

homepage            https://github.com/pjdelport/backports.os
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  0f28ca921590ba10415d2c88c609aef428c7abcb \
                    sha256  b472c4933094306ca08ec90b2a8cbb50c34f1fb2767775169a1c1650b7b74630 \
                    size    12495

python.versions     27

if {${name} ne ${subport}} {

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

    depends_lib-append \
                    port:py${python.version}-backports \
                    port:py${python.version}-future

    post-destroot {
        foreach f {__init__.py __init__.pyc __init__.pyo __pycache__} {
            set fp "${destroot}${python.pkgd}/backports/$f"
            if {[file exists ${fp}]} {
                file delete -force ${fp}
            }
        }
    }

    livecheck.type      none
}