summaryrefslogtreecommitdiff
path: root/textproc/zed/Makefile
blob: ab3b84970ad26e73ab724f26bec02fa5eac47eda (plain)
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
34
35
36
37
PORTNAME?=	zed
DISTVERSIONPREFIX=	v
DISTVERSION=	1.14.0
PORTREVISION=	3
CATEGORIES=	textproc

MAINTAINER=	meta@FreeBSD.org
COMMENT=	Command-line tool to manage and query Zed data lakes
WWW=		https://zed.brimdata.io/

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

BROKEN_i386=	fails to build: cannot use math.MaxUint32 (untyped int constant 4294967295) as int value in assignment (overflows)

USES=		go:modules,1.21

GO_MODULE?=	github.com/brimdata/zed
GO_PKGNAME?=	github.com/brimdata/zed/cmd/zed

PLIST_FILES?=	bin/zed

.include <bsd.port.pre.mk>

.if ${SLAVE_PORT} == no

x-maintainer-makesum:
	${MAKE} DISTINFO_FILE=${.CURDIR}/distinfo.zed makesum
	${MAKE} DISTINFO_FILE=${.CURDIR}/distinfo.zq -C "${.CURDIR}/../zq" makesum

	${CAT} ${.CURDIR}/distinfo.zed ${.CURDIR}/distinfo.zq | \
		${AWK} '$$1 != "TIMESTAMP" || NR == 1' > ${.CURDIR}/distinfo
	${RM} ${.CURDIR}/distinfo.zed ${.CURDIR}/distinfo.zq

.endif

.include <bsd.port.post.mk>