# -*- 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/go-critic/go-critic 0.14.4 v
go.offline_build    no
go.toolchain_min    1.24.0
revision            0

homepage            https://go-critic.com

description         The most opinionated Go source code linter for code audit.

long_description    {*}${description} Highly extensible Go source code \
                    linter providing checks currently missing from other \
                    linters.

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

checksums           rmd160  bb69d95825ccc5e6828060373abb8cea0605b519 \
                    sha256  03c19c7a0d1ed931ae1f2c227bd881725d520f4767ccbbac0085644f69069094 \
                    size    184657

build.cmd           make
build.pre_args-append \
                    GOCRITIC_VERSION=${version}
build.args          build-release

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