# -*- 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.2 v
go.offline_build    no
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  4eeb71dfc8bf992ce2f406cf18d1f307373a12f2 \
                    sha256  a4a3df4eeac4bfffe308c48426a7f41f1aebbec842204da7720e244b2b53ced9 \
                    size    184296

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