aboutsummaryrefslogtreecommitdiff
path: root/devel/jiri/Makefile
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2019-06-29 03:51:13 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2019-06-29 03:51:13 +0000
commit3726f942547e374490d375baf83216d7644a7162 (patch)
tree8c7c440762c72012824110ba9cdd44c8c1765017 /devel/jiri/Makefile
parent1de291090d9121f4d238a639b441f64372c239c1 (diff)
downloadports-3726f942547e374490d375baf83216d7644a7162.tar.gz
ports-3726f942547e374490d375baf83216d7644a7162.zip
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/jiri/Makefile')
-rw-r--r--devel/jiri/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/devel/jiri/Makefile b/devel/jiri/Makefile
index 715c53f06fdb..f979410400f7 100644
--- a/devel/jiri/Makefile
+++ b/devel/jiri/Makefile
@@ -13,11 +13,12 @@ COMMENT= Tool for multi-repo development
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/go/src/fuchsia.googlesource.com/jiri/LICENSE
-BUILD_DEPENDS= go:lang/go \
- cmake:devel/cmake \
+BUILD_DEPENDS= cmake:devel/cmake \
ninja:devel/ninja
RUN_DEPENDS= git:devel/git
+USES= go
+
GITHASH= 56b2a541f92f3bd9d28b29e1cbcb16f96d6bc6c1
TIMESTAMP= 2019-01-03T00:00:00.000000
EXTRACT_AFTER_ARGS= -s "!^!${DISTNAME}/go/src/fuchsia.googlesource.com/jiri/!"
@@ -28,7 +29,7 @@ pre-extract:
do-build:
cd ${WRKSRC}/go/src/fuchsia.googlesource.com/jiri && \
- ${SETENV} GOPATH=${WRKSRC}/go \
+ ${SETENV} ${MAKE_ENV} ${GO_ENV} GOPATH=${WRKSRC}/go \
go build -ldflags "-s -w -X \"fuchsia.googlesource.com/jiri/version.GitCommit=${GITHASH}\" -X \"fuchsia.googlesource.com/jiri/version.BuildTime=${TIMESTAMP}\"" -a -o jiri fuchsia.googlesource.com/jiri/cmd/jiri
do-install: