diff options
| author | Tobias Kortkamp <tobik@FreeBSD.org> | 2019-06-29 03:51:13 +0000 |
|---|---|---|
| committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2019-06-29 03:51:13 +0000 |
| commit | 3726f942547e374490d375baf83216d7644a7162 (patch) | |
| tree | 8c7c440762c72012824110ba9cdd44c8c1765017 /devel/arduino-builder | |
| parent | New port: net/ntpsec: Network Time Protocol suite, refactored (diff) | |
Convert all Go ports to USES=go
This allows for port testing with lang/go-devel via GO_PORT, setting
up the Go build environment in a single place, and is step one in
simplifying Go ports that often define too complicated do-build
targets themselves.
USES=go gains new arguments 'run' to add lang/go to RUN_DEPENDS and
'no_targets' for ports with composite builds that call 'go' themselves
and do not need the do-build/do-install targets of USES=go.
PR: 238849
Submitted by: dg@syrec.org (also D20745)
Reviewed by: mat, tobik
Exp-run by: antoine
Differential Revision: https://reviews.freebsd.org/D20746
Notes
Notes:
svn path=/head/; revision=505321
Diffstat (limited to 'devel/arduino-builder')
| -rw-r--r-- | devel/arduino-builder/Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/devel/arduino-builder/Makefile b/devel/arduino-builder/Makefile index 87fd78cf3208..c0f4b763f3a0 100644 --- a/devel/arduino-builder/Makefile +++ b/devel/arduino-builder/Makefile @@ -11,7 +11,7 @@ COMMENT= Command line tool for building Arduino sketches LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE.txt -BUILD_DEPENDS= go:lang/go +USES= go USE_GITHUB= yes GH_ACCOUNT= arduino @@ -27,7 +27,6 @@ TOOLS_DESC= Add arduino-tools for a standalone build setup TOOLS_RUN_DEPENDS= arduino-tools>=${_COMPAT_VER}:devel/arduino-tools TOOLS_PLIST_FILES= arduino/arduino-builder.options -GO_ENV+= GOPATH=${WRKSRC} _COMPAT_VER= 1.6.12 _IDE_VER= 10612 @@ -42,7 +41,7 @@ do-patch-TOOLS-on: ${WRKSRC}/arduino-builder.options do-build: - @( cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GO_ENV} go build arduino.cc/arduino-builder ) + @( cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GO_ENV} GOPATH=${WRKSRC} go build arduino.cc/arduino-builder ) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
