svn commit: r538248 - head/devel/golangci-lint
Carlo Strub
cs at FreeBSD.org
Mon Jun 8 19:46:51 UTC 2020
Author: cs
Date: Mon Jun 8 19:46:50 2020
New Revision: 538248
URL: https://svnweb.freebsd.org/changeset/ports/538248
Log:
Amended:
* Since the env variable '$HOME' is being set to
'/nonexistent' this will cause build errors for
non-privileged users. Work-around this by setting
the necessary work environment (which includes $HOME).
This was reported by pkg-fallout. [1]
* Minor semantic changes in a few places.
* Bumped PORTREVISION.
PR: 246872
Submitted by: maintainer
Modified:
head/devel/golangci-lint/Makefile
Modified: head/devel/golangci-lint/Makefile
==============================================================================
--- head/devel/golangci-lint/Makefile Mon Jun 8 18:45:18 2020 (r538247)
+++ head/devel/golangci-lint/Makefile Mon Jun 8 19:46:50 2020 (r538248)
@@ -3,6 +3,7 @@
PORTNAME= golangci-lint
DISTVERSIONPREFIX= v
DISTVERSION= 1.27.0
+PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= vulcan at wired.sh
@@ -125,24 +126,24 @@ PORTEXAMPLES= .golangci.example.yml
OPTIONS_DEFINE= DOCS EXAMPLES
post-build:
-.for shell in bash zsh
- ${WRKDIR}/bin/${PORTNAME} completion ${shell} > ${WRKSRC}/${shell}
+.for SHELL in bash zsh
+ ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_WRKDIR_BIN}/${PORTNAME} completion ${SHELL} > ${GO_WRKSRC}/${SHELL}
.endfor
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
- ${INSTALL_DATA} ${WRKSRC}/bash \
+ ${INSTALL_DATA} ${GO_WRKSRC}/bash \
${STAGEDIR}${PREFIX}/etc/bash_completion.d/${PORTNAME}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site_functions
- ${INSTALL_DATA} ${WRKSRC}/zsh \
+ ${INSTALL_DATA} ${GO_WRKSRC}/zsh \
${STAGEDIR}${PREFIX}/share/zsh/site_functions/_${PORTNAME}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${GO_WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${GO_WRKSRC}/${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list