aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/lucene4/Makefile
blob: 3b15e28c4227edb6a2f382331938b3af21b13941 (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
92
93
94
# Created by: Jason Helfman <jgh@FreeBSD.org>
# $FreeBSD$

PORTNAME=   lucene
PORTVERSION=    4.5.1
CATEGORIES= textproc java devel
MASTER_SITES=   APACHE
MASTER_SITE_SUBDIR= ${PORTNAME}/java/${PORTVERSION}/
EXTRACT_SUFX=   .tgz

MAINTAINER= mva@FreeBSD.org
COMMENT=    Full-text search engine for Java, 4.x branch

LICENSE=    AL2

CONFLICTS=  lucene-[0-9].*

USE_JAVA=   yes
NO_BUILD=   yes
JAVA_VERSION=   1.6+

OPTIONS_DEFINE= CONTRIB DOCS EXAMPLES
CONTRIB_DESC=   Install contributed jars
OPTIONS_DEFAULT=    CONTRIB

PLIST_FILES=    %%JAVAJARDIR%%/${PORTNAME}-core-${PORTVERSION}.jar
PKGNAMESUFFIX:= 4
LASTEST_LINK=   ${PORTNAME}4

.include <bsd.port.options.mk>

CONTRIBS=   benchmark \
        classification \
        codecs \
        demo \
        facet   \
        grouping \
        highlighter \
        join \
        memory \
        misc \
        queries \
        queryparser \
        replicator \
        sandbox \
        spatial \
        suggest

EXTRA_CONTRIBS_DIRS=    common \
        icu \
        kuromoji \
        morfologik \
        phonetic \
        smartcn \
        stempel \
        uima

.if ${PORT_OPTIONS:MCONTRIB}
.for f in ${CONTRIBS}
PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar
.endfor
.for g in ${EXTRA_CONTRIBS_DIRS}
PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-analyzers-${g}-${PORTVERSION}.jar
.endfor
.endif

PORTDOCS=   *
PORTEXAMPLES=   *

do-install:
    ${INSTALL_DATA} ${WRKSRC}/core/${PORTNAME}-core-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}
.if ${PORT_OPTIONS:MCONTRIB}
. for f in ${CONTRIBS}
    ${INSTALL_DATA} ${WRKSRC}/${f}/${PORTNAME}-${f}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}
. endfor
. for d in ${EXTRA_CONTRIBS_DIRS}
    ${INSTALL_DATA} ${WRKSRC}/analysis/${d}/${PORTNAME}-analyzers-${d}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}
. endfor
.endif

.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in CHANGES.txt NOTICE.txt README.txt
    ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
    (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR})
.endif

.if ${PORT_OPTIONS:MEXAMPLES}
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/demo/${PORTNAME}-demo-${PORTVERSION}.jar ${STAGEDIR}${EXAMPLESDIR}
.endif

.include <bsd.port.mk>