blob: a3475c7654282ba6be3b75a3a80d9f9e6aa19b0b (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
PORTNAME= lucene
PORTVERSION= 3.6.2
# Be sure to chase devel/openoffice-devel and textproc/py-lucene
# when updating this
CATEGORIES= textproc java devel
MASTER_SITES= https://archive.apache.org/dist/${PORTNAME}/java/${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Full-text search engine for Java
WWW= https://lucene.apache.org/core/
LICENSE= APACHE20
CONFLICTS= lucene4-[0-9].*
PORTSCOUT= limit:^3\.
USES= cpe tar:tgz
USE_JAVA= yes
NO_BUILD= yes
NO_ARCH= yes
CPE_VENDOR= apache
OPTIONS_DEFINE= CONTRIB DOCS EXAMPLES
CONTRIB_DESC= Install contributed jars
OPTIONS_DEFAULT= CONTRIB
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}-core-${PORTVERSION}.jar
CONTRIBS= benchmark \
demo \
facet \
grouping \
highlighter \
icu \
instantiated \
join \
memory \
misc \
pruning \
queries \
queryparser \
remote \
spatial \
spellchecker \
xml-query-parser
EXTRA_CONTRIBS_BASE= analyzers
EXTRA_CONTRIBS_DIRS= kuromoji \
phonetic \
smartcn \
stempel
.for f in ${EXTRA_CONTRIBS_BASE} ${CONTRIBS} ${EXTRA_CONTRIBS_DIRS}
CONTRIB_PLIST_FILES+= %%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar
.endfor
PORTDOCS= *
PORTEXAMPLES= *
DEMODIR= contrib/demo
do-install:
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-core-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}
do-install-CONTRIB-on:
.for f in ${CONTRIBS}
${INSTALL_DATA} ${WRKSRC}/contrib/${f}/${PORTNAME}-${f}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}
.endfor
.for d in ${EXTRA_CONTRIBS_DIRS}
${INSTALL_DATA} ${WRKSRC}/contrib/${EXTRA_CONTRIBS_BASE}/${d}/${PORTNAME}-${d}-${PORTVERSION}.jar \
${STAGEDIR}${JAVAJARDIR}
.endfor
${INSTALL_DATA} \
${WRKSRC}/contrib/${EXTRA_CONTRIBS_BASE}/common/${PORTNAME}-${EXTRA_CONTRIBS_BASE}-${PORTVERSION}.jar \
${STAGEDIR}${JAVAJARDIR}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in CHANGES.txt LICENSE.txt NOTICE.txt README.txt
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR} "-not -empty")
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/${DEMODIR} && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
|