aboutsummaryrefslogtreecommitdiff
path: root/devel/jiri/Makefile
diff options
context:
space:
mode:
authorDmitri Goutnik <dmgk@FreeBSD.org>2019-09-29 22:29:39 +0000
committerDmitri Goutnik <dmgk@FreeBSD.org>2019-09-29 22:29:39 +0000
commit34156e93e84fe00711fac9dbf19e33534dc665f9 (patch)
tree644edaf7864f48d3652926a9f242a0f01e0cdf92 /devel/jiri/Makefile
parentff71c9d91c68253cfaa8c6a682953afd5329b26f (diff)
downloadports-34156e93e84fe00711fac9dbf19e33534dc665f9.tar.gz
ports-34156e93e84fe00711fac9dbf19e33534dc665f9.zip
Go ports: cleanup, finish transition to USES=go started with r505321 (cat. audio-mail)
- Remove custom build/install targets left in place after r505321 - Switch to the new GO_TARGET tuple syntax introduced in r512001 - Switch to go:modules when upstream already uses them Reviewed by: tobik Approved by: araujo (mentor), portmgr (adamw) Differential Revision: https://reviews.freebsd.org/D21741
Notes
Notes: svn path=/head/; revision=513274
Diffstat (limited to 'devel/jiri/Makefile')
-rw-r--r--devel/jiri/Makefile20
1 files changed, 8 insertions, 12 deletions
diff --git a/devel/jiri/Makefile b/devel/jiri/Makefile
index f979410400f7..f6b40bfbc3d7 100644
--- a/devel/jiri/Makefile
+++ b/devel/jiri/Makefile
@@ -11,7 +11,7 @@ MAINTAINER= swills@FreeBSD.org
COMMENT= Tool for multi-repo development
LICENSE= BSD3CLAUSE
-LICENSE_FILE= ${WRKSRC}/go/src/fuchsia.googlesource.com/jiri/LICENSE
+LICENSE_FILE= ${WRKDIR}/src/fuchsia.googlesource.com/jiri/LICENSE
BUILD_DEPENDS= cmake:devel/cmake \
ninja:devel/ninja
@@ -21,18 +21,14 @@ USES= go
GITHASH= 56b2a541f92f3bd9d28b29e1cbcb16f96d6bc6c1
TIMESTAMP= 2019-01-03T00:00:00.000000
-EXTRACT_AFTER_ARGS= -s "!^!${DISTNAME}/go/src/fuchsia.googlesource.com/jiri/!"
+EXTRACT_AFTER_ARGS= -s "!^!src/fuchsia.googlesource.com/jiri/!"
PLIST_FILES= bin/jiri
-pre-extract:
- @${MKDIR} ${WRKSRC}
-
-do-build:
- cd ${WRKSRC}/go/src/fuchsia.googlesource.com/jiri && \
- ${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:
- ${INSTALL_PROGRAM} ${WRKSRC}/go/src/fuchsia.googlesource.com/jiri/jiri ${STAGEDIR}${PREFIX}/bin
+GO_PKGNAME= fuchsia.googlesource.com/jiri
+GO_TARGET= ./cmd/jiri
+GO_BUILDFLAGS= -ldflags="\
+ -s -w \
+ -X fuchsia.googlesource.com/jiri/version.GitCommit=${GITHASH} \
+ -X fuchsia.googlesource.com/jiri/version.BuildTime=${TIMESTAMP}"
.include <bsd.port.mk>