aboutsummaryrefslogtreecommitdiff
path: root/devel/jiri/Makefile
blob: f1fb3cc25a76c53dc458f22d6399741d0d931c0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
PORTNAME=	jiri
PORTVERSION=	g${TIMESTAMP:S/-/./g:C/T.*//g}
CATEGORIES=	devel
MASTER_SITES=	LOCAL/swills
DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
DIST_SUBDIR=	jiri

MAINTAINER=	swills@FreeBSD.org
COMMENT=	Tool for multi-repo development

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	cmake:devel/cmake \
		ninja:devel/ninja
RUN_DEPENDS=	git:devel/git

USES=		go:modules

GITHASH=	1eee1043d12d1baabae7f2466cc0b1646395e32c
TIMESTAMP=	2020-08-28T00:00:00.000000
PLIST_FILES=	bin/jiri
USE_GITHUB=	nodefault
GH_TUPLE=	golang:net:a7b16738d86b:golang_net/vendor/golang.org/x/net \
		golang:sync:112230192c58:golang_sync/vendor/golang.org/x/sync

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>