View | Details | Raw Unified | Return to bug 168538
Collapse All | Expand All

(-)Makefile (-36 / +19 lines)
Lines 7-17 Link Here
7
# Please don't forget to bump the version in py-lucene if this changes!
7
# Please don't forget to bump the version in py-lucene if this changes!
8
8
9
PORTNAME=	lucene
9
PORTNAME=	lucene
10
PORTVERSION=	3.5.0
10
PORTVERSION=	3.6.0
11
CATEGORIES=	textproc java devel
11
CATEGORIES=	textproc java devel
12
MASTER_SITES=	APACHE
12
MASTER_SITES=	APACHE
13
MASTER_SITE_SUBDIR=	${PORTNAME}/java/${PORTVERSION}/
13
MASTER_SITE_SUBDIR=	${PORTNAME}/java/${PORTVERSION}/
14
DISTNAME=	lucene-${PORTVERSION}-src
15
EXTRACT_SUFX=	.tgz
14
EXTRACT_SUFX=	.tgz
16
15
17
MAINTAINER=	gerrit.beine@gmx.de
16
MAINTAINER=	gerrit.beine@gmx.de
Lines 20-31 Link Here
20
LICENSE=	AL2
19
LICENSE=	AL2
21
20
22
USE_JAVA=	yes
21
USE_JAVA=	yes
23
USE_ANT=	yes
22
NO_BUILD=	yes
24
JAVA_VERSION=	1.5+
23
JAVA_VERSION=	1.5+
25
WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}
24
WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}
26
25
27
OPTIONS=	DOCS    "Install docs & examples" on \
26
OPTIONS_DEFINE=	CONTRIB
28
		CONTRIB "Install contribs" off
27
CONTRIB_DESC=	Install contrib
29
28
30
PLIST_FILES=	%%JAVAJARDIR%%/${PORTNAME}-core-${PORTVERSION}.jar
29
PLIST_FILES=	%%JAVAJARDIR%%/${PORTNAME}-core-${PORTVERSION}.jar
31
30
Lines 41-46 Link Here
41
		join	\
40
		join	\
42
		memory \
41
		memory \
43
		misc \
42
		misc \
43
		pruning \
44
		queries \
44
		queries \
45
		queryparser	\
45
		queryparser	\
46
		remote	\
46
		remote	\
Lines 48-109 Link Here
48
		spellchecker \
48
		spellchecker \
49
		xml-query-parser
49
		xml-query-parser
50
50
51
EXTRA_CONTRIBS_BUILD=	analyzers
51
EXTRA_CONTRIBS_BASE=	analyzers
52
52
53
EXTRA_CONTRIBS_DIRS=	smartcn \
53
EXTRA_CONTRIBS_DIRS=	kuromoji \
54
		phonetic \
55
		smartcn \
54
		stempel
56
		stempel
55
57
56
.if defined(WITH_CONTRIB)
58
.if ${PORT_OPTIONS:MCONTRIB}
57
.for f in ${EXTRA_CONTRIBS_BUILD} ${CONTRIBS} ${EXTRA_CONTRIBS_DIRS}
59
.for f in ${EXTRA_CONTRIBS_BASE} ${CONTRIBS} ${EXTRA_CONTRIBS_DIRS}
58
PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar
60
PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar
59
.endfor
61
.endfor
60
.endif
62
.endif
61
63
62
.if defined(WITHOUT_DOCS) || !defined(WITH_DOCS)
63
NOPORTDOCS=	yes
64
NOPORTEXAMPLES=	yes
65
.endif
66
67
PORTDOCS=	*
64
PORTDOCS=	*
68
PORTEXAMPLES=	*
65
PORTEXAMPLES=	*
69
66
70
DEMODIR=	contrib/demo
67
DEMODIR=	contrib/demo
71
68
72
.if defined(WITH_CONTRIB)
73
post-build:
74
.for i in ${EXTRA_CONTRIBS_BUILD} ${CONTRIBS}
75
	cd ${WRKSRC}/contrib/${i} && ${ANT}
76
.endfor
77
.endif
78
79
do-install:
69
do-install:
80
	${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}-core-${PORTVERSION:R}-SNAPSHOT.jar \
70
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-core-${PORTVERSION}.jar ${JAVAJARDIR}
81
		${JAVAJARDIR}/${PORTNAME}-core-${PORTVERSION}.jar
71
.if ${PORT_OPTIONS:MCONTRIB}
82
.if defined(WITH_CONTRIB)
83
. for f in ${CONTRIBS}
72
. for f in ${CONTRIBS}
84
	@${INSTALL_DATA} \
73
	${INSTALL_DATA} ${WRKSRC}/contrib/${f}/${PORTNAME}-${f}-${PORTVERSION}.jar ${JAVAJARDIR}
85
	    ${WRKSRC}/build/contrib/${f}/${PORTNAME}-${f}-${PORTVERSION:R}-SNAPSHOT.jar \
86
	    ${JAVAJARDIR}/${PORTNAME}-${f}-${PORTVERSION}.jar
87
. endfor
74
. endfor
88
. for d in ${EXTRA_CONTRIBS_DIRS}
75
. for d in ${EXTRA_CONTRIBS_DIRS}
89
	@${INSTALL_DATA} \
76
	${INSTALL_DATA} ${WRKSRC}/contrib/${EXTRA_CONTRIBS_BASE}/${d}/${PORTNAME}-${d}-${PORTVERSION}.jar ${JAVAJARDIR}
90
	    ${WRKSRC}/build/contrib/${EXTRA_CONTRIBS_BUILD}/${d}/${PORTNAME}-${d}-${PORTVERSION:R}-SNAPSHOT.jar \
91
	    ${JAVAJARDIR}/${PORTNAME}-${d}-${PORTVERSION}.jar
92
. endfor
77
. endfor
93
	@${INSTALL_DATA} \
78
	${INSTALL_DATA} ${WRKSRC}/contrib/${EXTRA_CONTRIBS_BASE}/common/${PORTNAME}-${EXTRA_CONTRIBS_BASE}-${PORTVERSION}.jar ${JAVAJARDIR}
94
	    ${WRKSRC}/build/contrib/${EXTRA_CONTRIBS_BUILD}/common/${PORTNAME}-${EXTRA_CONTRIBS_BUILD}-${PORTVERSION:R}-SNAPSHOT.jar \
95
	    ${JAVAJARDIR}/${PORTNAME}-${EXTRA_CONTRIBS_BUILD}-${PORTVERSION}.jar
96
.endif
79
.endif
97
.if !defined(NOPORTDOCS)
80
.if !defined(NOPORTDOCS)
98
	@${MKDIR} ${DOCSDIR}
81
	@${MKDIR} ${DOCSDIR}
99
.for i in CHANGES.txt LICENSE.txt NOTICE.txt README.txt
82
.for i in CHANGES.txt LICENSE.txt NOTICE.txt README.txt
100
	@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
83
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
101
.endfor
84
.endfor
102
	@(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR})
85
	(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR})
103
.endif
86
.endif
104
.if !defined(NOPORTEXAMPLES)
87
.if !defined(NOPORTEXAMPLES)
105
	@${MKDIR} ${EXAMPLESDIR}
88
	@${MKDIR} ${EXAMPLESDIR}
106
	@(cd ${WRKSRC}/${DEMODIR} && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
89
	(cd ${WRKSRC}/${DEMODIR} && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
107
.endif
90
.endif
108
91
109
.include <bsd.port.mk>
92
.include <bsd.port.mk>
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (lucene-3.5.0-src.tgz) = 814dbfcd91b76522ae350817c306be8c4a72dfe8c809540be4b20209acfb9a27
1
SHA256 (lucene-3.6.0.tgz) = 3443778c2b8d46a54f877d4248814eca428068c79a30abbf735c8fd5b5be0d3c
2
SIZE (lucene-3.5.0-src.tgz) = 39564076
2
SIZE (lucene-3.6.0.tgz) = 48663183

Return to bug 168538