Index: Makefile =================================================================== --- Makefile (revision 424443) +++ Makefile (working copy) @@ -2,7 +2,7 @@ PORTNAME= arduino-builder PORTVERSION= 1.3.21 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MAINTAINER= bsdports@kyle-evans.net @@ -13,7 +13,7 @@ BUILD_DEPENDS= go:lang/go -USE_GITHUB= yes +USE_GITHUB= ye GH_ACCOUNT= arduino GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME} GH_TUPLE= go-errors:errors:a418503:goerrors/src/github.com/go-errors/errors \ @@ -20,6 +20,7 @@ stretchr:testify:v1.1.3:stretchr/src/github.com/stretchr/testify \ jstemmer:go-junit-report:833f8ea:jstemmer/src/github.com/jstemmer/go-junit-report +GO_ENV+= GOPATH=${WRKSRC} STRIP= # stripping can break go binaries PLIST_FILES= arduino/hardware/platform.keys.rewrite.txt \ @@ -27,7 +28,7 @@ bin/${PORTNAME} 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: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}