# -*- 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.13.0 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 c2df7b51b349ec4735ddd34f2105e64d37fc5b61 \ sha256 fff05a782f016171a860bfd4341dd58bcb9f6abac099c5b3a0cf29a6e8ce48ac \ size 861554 # 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 build.pre_args-append \ -ldflags \"-X ${go.package}/cli.version=${github.tag_prefix}${version} \ -X ${go.package}/cli.date=2025-11-13 \ -X ${go.package}/cli.commit=ac5f398440705ae79abf836674f46c24a2494949 \ -X ${go.package}/cli.builtBy=MacPorts\" 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 ./...