aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/lucene5/Makefile
blob: d6dcc7bfbe97ef21e43064d8837b8d673a34145b (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
# Created by: Jason Helfman <jgh@FreeBSD.org>
# $FreeBSD$

PORTNAME=   lucene
PORTVERSION=    5.5.5
CATEGORIES= textproc java devel
MASTER_SITES=   APACHE/${PORTNAME}/java/${PORTVERSION}
PKGNAMESUFFIX=  5

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

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

CONFLICTS=  lucene-[0-9].*

USES=       tar:tgz
USE_JAVA=   yes
JAVA_VERSION=   1.7+
NO_BUILD=   yes
NO_ARCH=    yes

PLIST_FILES=    %%JAVAJARDIR%%/${PORTNAME}-core-${PORTVERSION}.jar
PORTDOCS=   *
PORTEXAMPLES=   *

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

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

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

.for f in ${CONTRIBS}
CONTRIB_PLIST_FILES+=   %%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar
.endfor
.for g in ${EXTRA_CONTRIBS_DIRS}
CONTRIB_PLIST_FILES+=   %%JAVAJARDIR%%/${PORTNAME}-analyzers-${g}-${PORTVERSION}.jar
.endfor

do-install:
    ${INSTALL_DATA} ${WRKSRC}/core/${PORTNAME}-core-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}

do-install-CONTRIB-on:
.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

do-install-DOCS-on:
    @${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})

do-install-EXAMPLES-on:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/demo/${PORTNAME}-demo-${PORTVERSION}.jar ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>