# -*- 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             5.0.1
revision            0

categories-append   devel
license             MIT

python.versions     39 310 311 312 313 314

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

checksums           rmd160  c3ac86e9c1a8315504d26693ac646c5e01e255cf \
                    sha256  5a3c249c830432631439815f9a818463416f2a8cbdb1e988e78757de9ae75081 \
                    size    652222

compiler.c_standard 2011

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-wheel \
                            path:bin/cmake:cmake
    depends_lib-append      port:py${python.version}-cffi
}
