aboutsummaryrefslogtreecommitdiff
path: root/devel/gocritic/Makefile
blob: 630f142d459201815f9354f288096f2164aaa18d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
PORTNAME=	gocritic
DISTVERSIONPREFIX=	v
DISTVERSION=	0.11.4
CATEGORIES=	devel

MAINTAINER=	fuz@FreeBSD.org
COMMENT=	Opinionated Go source code linter for code audit
WWW=		https://go-critic.com/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go:modules
GO_MODULE=	github.com/go-critic/go-critic
GO_TARGET=	./cmd/gocritic \
		./cmd/gocritic-analysis
GO_BUILDFLAGS=	-ldflags "-X main.Version=v${PKGVERSION}"

PLIST_FILES=	bin/gocritic \
		bin/gocritic-analysis

.include <bsd.port.mk>