# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        farrokhi dnsdiag 2.8.0 v
github.tarball_from archive
revision            0
license             BSD-2
categories          net
maintainers         {mps @Schamschula} openmaintainer
description         A set of tools to perform basic audits on your DNS requests and \
                    responses to make sure your DNS is working as you expect.
long_description    {*}${description}
homepage            https://dnsdiag.org

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  da524503cbab19d78ea245864f5310c36b329183 \
                    sha256  39174bd16577134c3d91f47ff0f51624fa676359ea460af662d7ae7fa9844a48 \
                    size    23962

variant python39 conflicts python310 python311 python312 python313 description {Use Python 3.9} {}
variant python310 conflicts python39 python311 python312 python313 description {Use Python 3.10} {}
variant python311 conflicts python39 python310 python312 python313 description {Use Python 3.11} {}
variant python312 conflicts python39 python310 python311 python313 description {Use Python 3.12} {}
variant python313 conflicts python39 python310 python311 python312 description {Use Python 3.13} {}

if {![variant_isset python39] && ![variant_isset python310] 
        && ![variant_isset python311] && ![variant_isset python312]} {
    default_variants +python313
}

foreach pv {313 312 311 310 39} {
    if {[variant_isset python${pv}]} {
        python.default_version ${pv}
        break
    }
}

depends_lib-append  port:py${python.version}-dnspython \
                    port:py${python.version}-cymruwhois \
                    port:py${python.version}-requests \
                    port:py${python.version}-requests-toolbelt
