# -*- 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-aiodns
version             2.0.0
categories-append   devel
platforms           darwin
license             MIT

python.versions     27 36 37

maintainers         {ipglider.org:miguel @ipglider} openmaintainer

description         Simple DNS resolver for asyncio.
long_description    aiodns provides a simple way for doing asynchronous DNS \
                    resolutions with a synchronous looking interface by using \
                    pycares.

homepage            https://github.com/saghul/aiodns
master_sites        pypi:a/aiodns

distname            aiodns-${version}

checksums           rmd160  a763bd44eb5c2fac78f5d0b3d80bfa3dab77bd5f \
                    sha256  815fdef4607474295d68da46978a54481dd1e7be153c7d60f9e72773cd38d77d \
                    size    5948

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

    if {${python.version} == 27} {
        depends_lib-append    port:py${python.version}-trollius \
                              port:py${python.version}-typing
    }

    livecheck.type          none
} else {
    livecheck.type          pypi
}