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

python.versions     27 35 36 37 38 39

maintainers         {ipglider.org:miguel @ipglider} openmaintainer

description         Python interface for c-ares.
long_description    pycares is a Python module which provides an interface to \
                    c-ares. c-ares is a C library that performs DNS requests \
                    and name resolutions asynchronously.

homepage            https://github.com/saghul/pycares
master_sites        pypi:p/pycares

distname            pycares-${version}

checksums           rmd160  35839ead89fdce809138de2a9f52a17d3d729450 \
                    sha256  18dfd4fd300f570d6c4536c1d987b7b7673b2a9d14346592c5d6ed716df0d104 \
                    size    233742

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

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

    livecheck.type          none
}
