summaryrefslogtreecommitdiff
path: root/textproc/quickwit/Makefile
blob: 25bf9d1db95faba564af526b3e988d2aefcf1bbf (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=	quickwit
DISTVERSIONPREFIX=	v
DISTVERSION=	0.6.2
PORTREVISION=	1
CATEGORIES=	textproc

MAINTAINER=	ashish@FreeBSD.org
COMMENT=	Sub-second search & analytics engine on cloud storage
WWW=		https://quickwit.io/

LICENSE=	AGPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE_AGPLv3.0.txt

BUILD_DEPENDS=	${LOCALBASE}/bin/protoc:devel/protobuf
LIB_DEPENDS=	libonig.so:devel/oniguruma \
		libzstd.so:archivers/zstd

USES=			cargo pkgconfig
USE_GITHUB=		yes
GH_ACCOUNT=		quickwit-oss
CARGO_CARGOLOCK=	${WRKSRC}/${PORTNAME}/Cargo.lock
CARGO_CARGOTOML=	${WRKSRC}/${PORTNAME}/Cargo.toml
CARGO_INSTALL_PATH=	${PORTNAME}/quickwit-cli

OPTIONS_DEFINE=		DOCS
OPTIONS_DEFAULT=	DOCS

post-install:
	${MKDIR} ${STAGEDIR}${ETCDIR}
	${INSTALL_DATA}	${WRKSRC}/config/quickwit.yaml ${STAGEDIR}${ETCDIR}/quickwit.yaml.sample
	${RM} -v ${STAGEDIR}${PREFIX}/bin/generate_markdown

post-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>