# -*- 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.3 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  4177f231c502423317b6076a1ad7f9e902774775 \
                    sha256  baf54665063087dc48d2261822229a3d8ab670fcec38fc5e25cd6350732746cb \
                    size    184539

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