aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/lucene
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2012-06-15 00:29:22 +0800
committerjgh <jgh@FreeBSD.org>2012-06-15 00:29:22 +0800
commit9b37f280be0e873e218045b3336bede9700eb2f5 (patch)
treecdace99639810fb632c76a3b8bec2f490ffee195 /textproc/lucene
parent9ff6827d216ba7db77a8cb77c9ee494a446d57db (diff)
downloadfreebsd-ports-gnome-9b37f280be0e873e218045b3336bede9700eb2f5.tar.gz
freebsd-ports-gnome-9b37f280be0e873e218045b3336bede9700eb2f5.tar.zst
freebsd-ports-gnome-9b37f280be0e873e218045b3336bede9700eb2f5.zip
- update to 3.6.0
- move back to binary distribution, as source distribution required apache-ivy * including apache-ivy resulteded in source build being a security issue PR: ports/168538 Submitted by: jgh@ Approved by: maintainer timeout, gerrit.beine@gmx.de ( 14 days )
Diffstat (limited to 'textproc/lucene')
-rw-r--r--textproc/lucene/Makefile62
-rw-r--r--textproc/lucene/distinfo4
2 files changed, 25 insertions, 41 deletions
diff --git a/textproc/lucene/Makefile b/textproc/lucene/Makefile
index 3bc6cf95022a..1bdff6405382 100644
--- a/textproc/lucene/Makefile
+++ b/textproc/lucene/Makefile
@@ -7,11 +7,10 @@
# Please don't forget to bump the version in py-lucene if this changes!
PORTNAME= lucene
-PORTVERSION= 3.5.0
+PORTVERSION= 3.6.0
CATEGORIES= textproc java devel
MASTER_SITES= APACHE
MASTER_SITE_SUBDIR= ${PORTNAME}/java/${PORTVERSION}/
-DISTNAME= lucene-${PORTVERSION}-src
EXTRACT_SUFX= .tgz
MAINTAINER= gerrit.beine@gmx.de
@@ -20,12 +19,11 @@ COMMENT= A full-text search engine for Java
LICENSE= AL2
USE_JAVA= yes
-USE_ANT= yes
+NO_BUILD= yes
JAVA_VERSION= 1.5+
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-OPTIONS= DOCS "Install docs & examples" on \
- CONTRIB "Install contribs" off
+OPTIONS_DEFINE= CONTRIB
+CONTRIB_DESC= Install contribs
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}-core-${PORTVERSION}.jar
@@ -41,6 +39,7 @@ CONTRIBS= benchmark \
join \
memory \
misc \
+ pruning \
queries \
queryparser \
remote \
@@ -48,62 +47,47 @@ CONTRIBS= benchmark \
spellchecker \
xml-query-parser
-EXTRA_CONTRIBS_BUILD= analyzers
+EXTRA_CONTRIBS_BASE= analyzers
-EXTRA_CONTRIBS_DIRS= smartcn \
+EXTRA_CONTRIBS_DIRS= kuromoji \
+ phonetic \
+ smartcn \
stempel
-.if defined(WITH_CONTRIB)
-.for f in ${EXTRA_CONTRIBS_BUILD} ${CONTRIBS} ${EXTRA_CONTRIBS_DIRS}
+.if ${PORT_OPTIONS:MCONTRIB}
+.for f in ${EXTRA_CONTRIBS_BASE} ${CONTRIBS} ${EXTRA_CONTRIBS_DIRS}
PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar
.endfor
.endif
-.if defined(WITHOUT_DOCS) || !defined(WITH_DOCS)
-NOPORTDOCS= yes
-NOPORTEXAMPLES= yes
-.endif
-
PORTDOCS= *
PORTEXAMPLES= *
DEMODIR= contrib/demo
-.if defined(WITH_CONTRIB)
-post-build:
-.for i in ${EXTRA_CONTRIBS_BUILD} ${CONTRIBS}
- cd ${WRKSRC}/contrib/${i} && ${ANT}
-.endfor
-.endif
-
do-install:
- ${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}-core-${PORTVERSION:R}-SNAPSHOT.jar \
- ${JAVAJARDIR}/${PORTNAME}-core-${PORTVERSION}.jar
-.if defined(WITH_CONTRIB)
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-core-${PORTVERSION}.jar ${JAVAJARDIR}
+.if ${PORT_OPTIONS:MCONTRIB}
. for f in ${CONTRIBS}
- @${INSTALL_DATA} \
- ${WRKSRC}/build/contrib/${f}/${PORTNAME}-${f}-${PORTVERSION:R}-SNAPSHOT.jar \
- ${JAVAJARDIR}/${PORTNAME}-${f}-${PORTVERSION}.jar
+ ${INSTALL_DATA} ${WRKSRC}/contrib/${f}/${PORTNAME}-${f}-${PORTVERSION}.jar ${JAVAJARDIR}
. endfor
. for d in ${EXTRA_CONTRIBS_DIRS}
- @${INSTALL_DATA} \
- ${WRKSRC}/build/contrib/${EXTRA_CONTRIBS_BUILD}/${d}/${PORTNAME}-${d}-${PORTVERSION:R}-SNAPSHOT.jar \
- ${JAVAJARDIR}/${PORTNAME}-${d}-${PORTVERSION}.jar
+ ${INSTALL_DATA} ${WRKSRC}/contrib/${EXTRA_CONTRIBS_BASE}/${d}/${PORTNAME}-${d}-${PORTVERSION}.jar ${JAVAJARDIR}
. endfor
- @${INSTALL_DATA} \
- ${WRKSRC}/build/contrib/${EXTRA_CONTRIBS_BUILD}/common/${PORTNAME}-${EXTRA_CONTRIBS_BUILD}-${PORTVERSION:R}-SNAPSHOT.jar \
- ${JAVAJARDIR}/${PORTNAME}-${EXTRA_CONTRIBS_BUILD}-${PORTVERSION}.jar
+ ${INSTALL_DATA} ${WRKSRC}/contrib/${EXTRA_CONTRIBS_BASE}/common/${PORTNAME}-${EXTRA_CONTRIBS_BASE}-${PORTVERSION}.jar ${JAVAJARDIR}
.endif
-.if !defined(NOPORTDOCS)
+
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for i in CHANGES.txt LICENSE.txt NOTICE.txt README.txt
- @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
- @(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR})
+ (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif
-.if !defined(NOPORTEXAMPLES)
+
+.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
- @(cd ${WRKSRC}/${DEMODIR} && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
+ (cd ${WRKSRC}/${DEMODIR} && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif
.include <bsd.port.mk>
diff --git a/textproc/lucene/distinfo b/textproc/lucene/distinfo
index 6acaae4e9812..2088e8dd6c21 100644
--- a/textproc/lucene/distinfo
+++ b/textproc/lucene/distinfo
@@ -1,2 +1,2 @@
-SHA256 (lucene-3.5.0-src.tgz) = 814dbfcd91b76522ae350817c306be8c4a72dfe8c809540be4b20209acfb9a27
-SIZE (lucene-3.5.0-src.tgz) = 39564076
+SHA256 (lucene-3.6.0.tgz) = 3443778c2b8d46a54f877d4248814eca428068c79a30abbf735c8fd5b5be0d3c
+SIZE (lucene-3.6.0.tgz) = 48663183