# -*- 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.15.0 v
go.offline_build    no
go.toolchain_min    1.25.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  64071d884d409f2d7bb6980c26b7c12eb458d48f \
                    sha256  6cee82b801a849aef3adb714b7900d6df7b27213af984368be4c65db8400632e \
                    size    184778

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/
}
