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

(-)Makefile (-22 / +33 lines)
Lines 7-16 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.4.0
10
PORTVERSION=	3.5.0
11
CATEGORIES=	textproc java devel
11
CATEGORIES=	textproc java devel
12
MASTER_SITES=	${MASTER_SITE_APACHE:S,%SUBDIR%,lucene/java/$(PORTVERSION),}
12
MASTER_SITES=	APACHE
13
DISTNAME=	lucene-${PORTVERSION}
13
MASTER_SITE_SUBDIR=	${PORTNAME}/java/${PORTVERSION}/
14
DISTNAME=	lucene-${PORTVERSION}-src
14
EXTRACT_SUFX=	.tgz
15
EXTRACT_SUFX=	.tgz
15
16
16
MAINTAINER=	gerrit.beine@gmx.de
17
MAINTAINER=	gerrit.beine@gmx.de
Lines 18-26 Link Here
18
19
19
LICENSE=	AL2
20
LICENSE=	AL2
20
21
21
NO_BUILD=	yes
22
USE_JAVA=	yes
22
USE_JAVA=	yes
23
USE_ANT=	yes
23
JAVA_VERSION=	1.5+
24
JAVA_VERSION=	1.5+
25
WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}
24
26
25
OPTIONS=	DOCS    "Install docs & examples" on \
27
OPTIONS=	DOCS    "Install docs & examples" on \
26
		CONTRIB "Install contribs" off
28
		CONTRIB "Install contribs" off
Lines 29-36 Link Here
29
31
30
.include <bsd.port.options.mk>
32
.include <bsd.port.options.mk>
31
33
32
CONTRIBS=	analyzers \
34
CONTRIBS=	benchmark \
33
		benchmark \
35
		demo \
34
		facet	\
36
		facet	\
35
		grouping \
37
		grouping \
36
		highlighter \
38
		highlighter \
Lines 42-55 Link Here
42
		queries \
44
		queries \
43
		queryparser	\
45
		queryparser	\
44
		remote	\
46
		remote	\
45
		smartcn \
46
		spatial \
47
		spatial \
47
		spellchecker \
48
		spellchecker \
48
		stempel \
49
		xml-query-parser
49
		xml-query-parser
50
50
51
EXTRA_CONTRIBS_BUILD=	analyzers
52
53
EXTRA_CONTRIBS_DIRS=	smartcn \
54
		stempel
55
51
.if defined(WITH_CONTRIB)
56
.if defined(WITH_CONTRIB)
52
.for f in ${CONTRIBS}
57
.for f in ${EXTRA_CONTRIBS_BUILD} ${CONTRIBS} ${EXTRA_CONTRIBS_DIRS}
53
PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar
58
PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar
54
.endfor
59
.endfor
55
.endif
60
.endif
Lines 65-93 Link Here
65
DEMODIR=	contrib/demo
70
DEMODIR=	contrib/demo
66
71
67
.if defined(WITH_CONTRIB)
72
.if defined(WITH_CONTRIB)
68
post-extract:
73
post-build:
69
	${MV} ${WRKSRC}/contrib/analyzers/common/* ${WRKSRC}/contrib/analyzers/
74
.for i in ${EXTRA_CONTRIBS_BUILD} ${CONTRIBS}
70
	${RMDIR} ${WRKSRC}/contrib/analyzers/common
75
	cd ${WRKSRC}/contrib/${i} && ${ANT}
71
	${MV} ${WRKSRC}/contrib/analyzers/smartcn/ ${WRKSRC}/contrib/
76
.endfor
72
	${MV} ${WRKSRC}/contrib/analyzers/stempel/ ${WRKSRC}/contrib/
73
.endif
77
.endif
74
78
75
do-install:
79
do-install:
76
	@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-core-${PORTVERSION}.jar \
80
	${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}-core-${PORTVERSION:R}-SNAPSHOT.jar \
77
		${JAVAJARDIR}
81
		${JAVAJARDIR}/${PORTNAME}-core-${PORTVERSION}.jar
78
.if defined(WITH_CONTRIB)
82
.if defined(WITH_CONTRIB)
79
. for f in ${CONTRIBS}
83
. for f in ${CONTRIBS}
80
	@${INSTALL_DATA} \
84
	@${INSTALL_DATA} \
81
	    ${WRKSRC}/contrib/${f}/${PORTNAME}-${f}-${PORTVERSION}.jar \
85
	    ${WRKSRC}/build/contrib/${f}/${PORTNAME}-${f}-${PORTVERSION:R}-SNAPSHOT.jar \
82
	    ${JAVAJARDIR}
86
	    ${JAVAJARDIR}/${PORTNAME}-${f}-${PORTVERSION}.jar
83
. endfor
87
. endfor
88
. for d in ${EXTRA_CONTRIBS_DIRS}
89
	@${INSTALL_DATA} \
90
	    ${WRKSRC}/build/contrib/${EXTRA_CONTRIBS_BUILD}/${d}/${PORTNAME}-${d}-${PORTVERSION:R}-SNAPSHOT.jar \
91
	    ${JAVAJARDIR}/${PORTNAME}-${d}-${PORTVERSION}.jar
92
. endfor
93
	@${INSTALL_DATA} \
94
	    ${WRKSRC}/build/contrib/${EXTRA_CONTRIBS_BUILD}/common/${PORTNAME}-${EXTRA_CONTRIBS_BUILD}-${PORTVERSION:R}-SNAPSHOT.jar \
95
	    ${JAVAJARDIR}/${PORTNAME}-${EXTRA_CONTRIBS_BUILD}-${PORTVERSION}.jar
84
.endif
96
.endif
85
.if !defined(NOPORTDOCS)
97
.if !defined(NOPORTDOCS)
86
	@${MKDIR} ${DOCSDIR}
98
	@${MKDIR} ${DOCSDIR}
87
	@${INSTALL_DATA} ${WRKSRC}/CHANGES.txt ${DOCSDIR}
99
.for i in CHANGES.txt LICENSE.txt NOTICE.txt README.txt
88
	@${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${DOCSDIR}
100
	@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
89
	@${INSTALL_DATA} ${WRKSRC}/NOTICE.txt ${DOCSDIR}
101
.endfor
90
	@${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
91
	@(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR})
102
	@(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR})
92
.endif
103
.endif
93
.if !defined(NOPORTEXAMPLES)
104
.if !defined(NOPORTEXAMPLES)
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (lucene-3.4.0.tgz) = 56fa8afd3b9cbce1b990aa10dd9af30aef434a06506f08814fb6b8c7c526af57
1
SHA256 (lucene-3.5.0-src.tgz) = 814dbfcd91b76522ae350817c306be8c4a72dfe8c809540be4b20209acfb9a27
2
SIZE (lucene-3.4.0.tgz) = 42933801
2
SIZE (lucene-3.5.0-src.tgz) = 39564076

Return to bug 166289