devel/arduino-builder: Move GOPATH to GO_ENV, respect GO_ENV.

PR:		213697
Submitted by:	Kyle Evans <bsdports@kyle-evans.net> (maintainer)
This commit is contained in:
Boris Samorodov 2016-10-22 20:27:17 +00:00
parent 29c086c498
commit 8b95368bc0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=424484

View file

@ -2,7 +2,7 @@
PORTNAME= arduino-builder PORTNAME= arduino-builder
PORTVERSION= 1.3.21 PORTVERSION= 1.3.21
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= devel CATEGORIES= devel
MAINTAINER= bsdports@kyle-evans.net MAINTAINER= bsdports@kyle-evans.net
@ -20,6 +20,7 @@ GH_TUPLE= go-errors:errors:a418503:goerrors/src/github.com/go-errors/errors \
stretchr:testify:v1.1.3:stretchr/src/github.com/stretchr/testify \ stretchr:testify:v1.1.3:stretchr/src/github.com/stretchr/testify \
jstemmer:go-junit-report:833f8ea:jstemmer/src/github.com/jstemmer/go-junit-report jstemmer:go-junit-report:833f8ea:jstemmer/src/github.com/jstemmer/go-junit-report
GO_ENV+= GOPATH=${WRKSRC}
STRIP= # stripping can break go binaries STRIP= # stripping can break go binaries
PLIST_FILES= arduino/hardware/platform.keys.rewrite.txt \ PLIST_FILES= arduino/hardware/platform.keys.rewrite.txt \
@ -27,7 +28,7 @@ PLIST_FILES= arduino/hardware/platform.keys.rewrite.txt \
bin/${PORTNAME} bin/${PORTNAME}
do-build: do-build:
@( cd ${WRKSRC} ; ${SETENV} GOPATH=${WRKSRC} go build arduino.cc/arduino-builder ) @( cd ${WRKSRC} ; ${SETENV} ${GO_ENV} go build arduino.cc/arduino-builder )
do-install: do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}