blob: 8665f64fca27a05d02b7143de5f99dfc1be83f32 (
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
34
35
36
37
38
39
40
41
42
|
PORTNAME= sonic
DISTVERSIONPREFIX= v
DISTVERSION= 1.4.8
PORTREVISION= 3
CATEGORIES= textproc
MASTER_SITES+= https://clrd.ninjal.ac.jp/unidic_archive/cwj/2.1.2/:unidic
DISTFILES+= unidic-mecab-2.1.2_src.zip:unidic # check cargo-crates/lindera-unidic-XXX/build.rs
MAINTAINER= mikael@FreeBSD.org
COMMENT= Fast, lightweight, and schema-less search backend
WWW= https://github.com/valeriansaliou/sonic
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE.md
BUILD_DEPENDS= llvm${LLVM_DEFAULT}>0:devel/llvm${LLVM_DEFAULT}
USES= cargo compiler:c++11-lang gmake
USE_GITHUB= yes
GH_ACCOUNT= valeriansaliou
USE_RC_SUBR= sonic
USERS= sonic
GROUPS= sonic
PLIST_FILES= bin/sonic \
"@sample ${ETCDIR}/config.cfg.sample"
PORTDOCS= CONFIGURATION.md PROTOCOL.md README.md
OPTIONS_DEFINE= DOCS
CARGO_ENV+= DISTDIR=${DISTDIR}
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sonic
@${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/config.cfg ${STAGEDIR}${ETCDIR}/config.cfg.sample
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_MAN} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|