Skip to content

Commit

Permalink
go-critic: new port
Browse files Browse the repository at this point in the history
  • Loading branch information
herbygillot committed Apr 14, 2021
1 parent ba39dc4 commit 8080641
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions devel/go-critic/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# -*- 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.5.5 v
revision 0

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
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer
license MIT
installs_libs no

github.tarball_from \
archive

set bin_name gocritic

# Allow downloading deps at build time
build.env-delete GO111MODULE=off GOPROXY=off
build.target ./cmd/${bin_name}

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

checksums rmd160 ecb7348c8683c720be1afd15981fcb32f7c2aac8 \
sha256 9be5e4c714d561a67bbfc3145b1e533ca0f4011b36adb07af36073bfd184eb4f \
size 145166

0 comments on commit 8080641

Please sign in to comment.