MFH: r497513

sysutils/consul-replicate: Unbreak build with Go 1.12

- Remove GOCACHE=off as build cache is required starting from Go 1.12 [1]
- Pass MAKE_ENV (so GOCACHE defaults to $WRKDIR/.cache)

[1] https://tip.golang.org/doc/go1.12#gocache

PR:		236033
Submitted by:	Dmitri Goutnik <dg@syrec.org>
Approved by:	jhixson (maintainer)

Approved by:	ports-secteam build fix blanket
This commit is contained in:
Tobias Kortkamp 2019-04-01 20:09:48 +00:00
parent 43a6e1523e
commit 38103570cc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2019Q2/; revision=497514

View File

@ -11,8 +11,6 @@ COMMENT= Consul cross-DC KV replication daemon
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN= fails to build
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
USES= compiler
@ -33,7 +31,7 @@ post-extract:
do-build:
@cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}; \
${SETENV} CGO_ENABLED=0 ${BUILD_ENV} GOCACHE=off GOPATH=${WRKSRC} \
${SETENV} CGO_ENABLED=0 ${BUILD_ENV} ${MAKE_ENV} GOPATH=${WRKSRC} \
go build -v -x -ldflags "\
-X github.com/${GH_ACCOUNT}/${PORTNAME}/version.Version=${PORTVERSION} \
-X github.com/${GH_ACCOUNT}/${PORTNAME}/version.GitCommit=675a2c2 \