# -*- 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        jtesta ssh-audit 3.3.0 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
categories          security python
license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         ssh-audit is a tool for ssh server & client configuration auditing.
long_description    {*}${description}
supported_archs     noarch
platforms           {darwin any}
homepage            https://github.com/jtesta/ssh-audit

checksums           rmd160  04dad7f2e922928ab690dd9f8607f7c743d0b90b \
                    sha256  fb8acc41ee9cf0c6c54cd3bff6c2c8e34505c677aa9109839668eea88d2cc1d0 \
                    size    172823

variant python38 conflicts python39 python310 python311 python312 description {Build using Python 3.8} {}
variant python39 conflicts python38 python310 python311 python312 description {Build using Python 3.9} {}
variant python310 conflicts python38 python39 python311 python312 description {Build using Python 3.10} {}
variant python311 conflicts python38 python39 python310 python312 description {Build using Python 3.11} {}
variant python312 conflicts python38 python39 python310 python311 description {Build using Python 3.12} {}

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

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

depends_build       port:py${python.version}-setuptools