blob: 5d723055daa5bb7af184013571580cda7134465b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
PORTNAME= revive
DISTVERSIONPREFIX= v
DISTVERSION= 1.3.7
PORTREVISION= 5
CATEGORIES= devel
MAINTAINER= lcook@FreeBSD.org
COMMENT= Extensible static code analysis framework for Go
WWW= https://revive.run
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
_BUILD_VERSION= ${DISTVERSION}
_BUILD_COMMIT= 5c5d6c1
GO_MODULE= github.com/mgechev/${PORTNAME}
GO_BUILDFLAGS= -ldflags "\
-s -w \
-X ${GO_MODULE}/cli.version=${_BUILD_VERSION} \
-X ${GO_MODULE}/cli.commit=${_BUILD_COMMIT}"
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= CODE_OF_CONDUCT.md CONTRIBUTING.md DEVELOPING.md \
PULL_REQUEST_TEMPLATE.md README.md RULES_DESCRIPTIONS.md
PORTEXAMPLES= defaults.toml untyped.toml
OPTIONS_DEFINE= DOCS EXAMPLES
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} \
${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} \
${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
|