aboutsummaryrefslogtreecommitdiff
path: root/devel/jiri/Makefile
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2019-01-05 01:13:55 +0000
committerSteve Wills <swills@FreeBSD.org>2019-01-05 01:13:55 +0000
commit1783c9e9f1d012d5e58398789ec5949805e47e51 (patch)
tree1a8c9f59cf0a7ee86a91533b82faaf10ddd72a0b /devel/jiri/Makefile
parent83a19b590c6fc8d5f38cfaf0623294334c6b63bb (diff)
downloadports-1783c9e9f1d012d5e58398789ec5949805e47e51.tar.gz
ports-1783c9e9f1d012d5e58398789ec5949805e47e51.zip
devel/jiri: create port
Jiri is a tool for multi-repo development. WWW: https://fuchsia.googlesource.com/jiri
Notes
Notes: svn path=/head/; revision=489286
Diffstat (limited to 'devel/jiri/Makefile')
-rw-r--r--devel/jiri/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/devel/jiri/Makefile b/devel/jiri/Makefile
new file mode 100644
index 000000000000..7eb71f64be9d
--- /dev/null
+++ b/devel/jiri/Makefile
@@ -0,0 +1,37 @@
+# $FreeBSD$
+
+PORTNAME= jiri
+PORTVERSION= g2019.01.03.01
+CATEGORIES= devel
+MASTER_SITES= https://fuchsia.googlesource.com/jiri/+archive/
+DISTNAME= ${GITHASH}
+DIST_SUBDIR= jiri
+
+MAINTAINER= swills@FreeBSD.org
+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 \
+ ninja:devel/ninja
+RUN_DEPENDS= git:devel/git
+
+GITHASH= 56b2a541f92f3bd9d28b29e1cbcb16f96d6bc6c1
+TIMESTAMP= 2019-01-03T00:00:00.000000
+EXTRACT_AFTER_ARGS= -s "!^!${DISTNAME}/go/src/fuchsia.googlesource.com/jiri/!"
+PLIST_FILES= bin/jiri
+
+pre-extract:
+ @${MKDIR} ${WRKSRC}
+
+do-build:
+ cd ${WRKSRC}/go/src/fuchsia.googlesource.com/jiri && \
+ ${SETENV} 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
+
+.include <bsd.port.mk>