# -*- 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/mgechev/revive 1.3.2 v
revision            0

homepage            https://revive.run/

description         Fast, configurable, extensible, flexible, and beautiful \
                    linter for Go.

long_description    ${description} ${name} is a drop-in replacement of golint. \
                    ${name} provides a framework for development of custom \
                    rules, and lets you define a strict preset for enhancing \
                    your development & code review processes.

categories          devel
installs_libs       no
license             MIT

maintainers         {@enckse voidedtech.com:enckse} \
                    openmaintainer

checksums           rmd160  edfcf496dac988eb8215753d7173176ed3720ff0 \
                    sha256  3abccf0a2f2d9f257afbcfb48d96668ebb5fb360d2b460f9c1f166a9711ddeaa \
                    size    708727

# FIXME: This port currently can't be built without allowing go mod to fetch
# dependencies during the build phase. See
# https://trac.macports.org/ticket/61192
go.offline_build    no

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

# FIXME: This port currently can't be tested without allowing go mod to fetch
# dependencies during the testing phase (additional modules needed for testing).
# See https://trac.macports.org/ticket/61192
test.run            yes
test.cmd            go test -v ./...
