# -*- 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-ssl
version             0.0.9
revision            1
categories-append   devel
platforms           darwin
license             BSD
supported_archs     noarch

python.versions     27

maintainers         stromnov openmaintainer

description         The Python 3.4 standard `ssl` module API implemented on top of pyOpenSSL.
long_description    ${description}

homepage            https://github.com/alekstorm/backports.ssl
master_sites        pypi:b/backports.ssl

distname            backports.ssl-${version}

checksums           rmd160  fabfae2fd24c6f057629929bc8032e8b13b39152 \
                    sha256  079549f44a5d52e6b6c97455cc322725e0590772237d6dc362cda57635128e1d

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-backports \
                        port:py${python.version}-six \
                        port:py${python.version}-asn1 \
                        port:py${python.version}-openssl

    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
} else {
    livecheck.name      backports.ssl
    livecheck.type      pypi
}