# -*- 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           golang 1.0

go.setup            github.com/daveshanley/vacuum 0.30.1 v
go.toolchain_min    1.25.7
go.offline_build    no
revision            0

homepage            https://quobix.com/vacuum
master_sites        https://github.com/daveshanley/vacuum/archive/refs/tags/v${version}

description         \
    ${name} is the worlds fastest OpenAPI 3, OpenAPI 2 / Swagger linter and \
    quality analysis tool.

long_description    \
    {*}${description} Built in Go, it tears through API specs faster than you \
    can think. ${name} is compatible with Spectral rulesets and generates \
    compatible reports.

categories          devel
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  cebc37a978b4ed6482bd5fc718286a31014a6b38 \
                    sha256  183c732d48d8156508a13169185caa7dd1103f71e9cedc479c161cb60e2ea240 \
                    size    16658423

build.pre_args-append \
    -ldflags \" -X main.version=v${version} \"

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}
