summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Helfman <jgh@FreeBSD.org>2012-04-04 17:24:04 +0000
committerJason Helfman <jgh@FreeBSD.org>2012-04-04 17:24:04 +0000
commit15f45962321b5d8ac61ae20819942ccee69bf85d (patch)
tree792eaaca86f3df4dfeb7f54d24233f235733870a
parentddd6a2a23cc275ade8f342054259fb26b6a323e0 (diff)
downloadfreebsd-ports-15f45962321b5d8ac61ae20819942ccee69bf85d.zip
- Update to 3.5.0
- standardize MASTER_SITES - move away from binary, and build from source distribution PR: ports/166289 Submitted by: jgh (me) Approved by: maintainer timeout ( 15 days ) Feature safe: yes
-rw-r--r--textproc/lucene/Makefile55
-rw-r--r--textproc/lucene/distinfo4
2 files changed, 35 insertions, 24 deletions
diff --git a/textproc/lucene/Makefile b/textproc/lucene/Makefile
index 423d6bbea735..3bc6cf95022a 100644
--- a/textproc/lucene/Makefile
+++ b/textproc/lucene/Makefile
@@ -7,10 +7,11 @@
# Please don't forget to bump the version in py-lucene if this changes!
PORTNAME= lucene
-PORTVERSION= 3.4.0
+PORTVERSION= 3.5.0
CATEGORIES= textproc java devel
-MASTER_SITES= ${MASTER_SITE_APACHE:S,%SUBDIR%,lucene/java/$(PORTVERSION),}
-DISTNAME= lucene-${PORTVERSION}
+MASTER_SITES= APACHE
+MASTER_SITE_SUBDIR= ${PORTNAME}/java/${PORTVERSION}/
+DISTNAME= lucene-${PORTVERSION}-src
EXTRACT_SUFX= .tgz
MAINTAINER= gerrit.beine@gmx.de
@@ -18,9 +19,10 @@ COMMENT= A full-text search engine for Java
LICENSE= AL2
-NO_BUILD= yes
USE_JAVA= yes
+USE_ANT= yes
JAVA_VERSION= 1.5+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
OPTIONS= DOCS "Install docs & examples" on \
CONTRIB "Install contribs" off
@@ -29,8 +31,8 @@ PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}-core-${PORTVERSION}.jar
.include <bsd.port.options.mk>
-CONTRIBS= analyzers \
- benchmark \
+CONTRIBS= benchmark \
+ demo \
facet \
grouping \
highlighter \
@@ -42,14 +44,17 @@ CONTRIBS= analyzers \
queries \
queryparser \
remote \
- smartcn \
spatial \
spellchecker \
- stempel \
xml-query-parser
+EXTRA_CONTRIBS_BUILD= analyzers
+
+EXTRA_CONTRIBS_DIRS= smartcn \
+ stempel
+
.if defined(WITH_CONTRIB)
-.for f in ${CONTRIBS}
+.for f in ${EXTRA_CONTRIBS_BUILD} ${CONTRIBS} ${EXTRA_CONTRIBS_DIRS}
PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar
.endfor
.endif
@@ -65,29 +70,35 @@ PORTEXAMPLES= *
DEMODIR= contrib/demo
.if defined(WITH_CONTRIB)
-post-extract:
- ${MV} ${WRKSRC}/contrib/analyzers/common/* ${WRKSRC}/contrib/analyzers/
- ${RMDIR} ${WRKSRC}/contrib/analyzers/common
- ${MV} ${WRKSRC}/contrib/analyzers/smartcn/ ${WRKSRC}/contrib/
- ${MV} ${WRKSRC}/contrib/analyzers/stempel/ ${WRKSRC}/contrib/
+post-build:
+.for i in ${EXTRA_CONTRIBS_BUILD} ${CONTRIBS}
+ cd ${WRKSRC}/contrib/${i} && ${ANT}
+.endfor
.endif
do-install:
- @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-core-${PORTVERSION}.jar \
- ${JAVAJARDIR}
+ ${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}-core-${PORTVERSION:R}-SNAPSHOT.jar \
+ ${JAVAJARDIR}/${PORTNAME}-core-${PORTVERSION}.jar
.if defined(WITH_CONTRIB)
. for f in ${CONTRIBS}
@${INSTALL_DATA} \
- ${WRKSRC}/contrib/${f}/${PORTNAME}-${f}-${PORTVERSION}.jar \
- ${JAVAJARDIR}
+ ${WRKSRC}/build/contrib/${f}/${PORTNAME}-${f}-${PORTVERSION:R}-SNAPSHOT.jar \
+ ${JAVAJARDIR}/${PORTNAME}-${f}-${PORTVERSION}.jar
. 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
+. 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
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/CHANGES.txt ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/NOTICE.txt ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
+.for i in CHANGES.txt LICENSE.txt NOTICE.txt README.txt
+ @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
@(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif
.if !defined(NOPORTEXAMPLES)
diff --git a/textproc/lucene/distinfo b/textproc/lucene/distinfo
index a2642818ab65..6acaae4e9812 100644
--- a/textproc/lucene/distinfo
+++ b/textproc/lucene/distinfo
@@ -1,2 +1,2 @@
-SHA256 (lucene-3.4.0.tgz) = 56fa8afd3b9cbce1b990aa10dd9af30aef434a06506f08814fb6b8c7c526af57
-SIZE (lucene-3.4.0.tgz) = 42933801
+SHA256 (lucene-3.5.0-src.tgz) = 814dbfcd91b76522ae350817c306be8c4a72dfe8c809540be4b20209acfb9a27
+SIZE (lucene-3.5.0-src.tgz) = 39564076