ports/161119: Update textproc/lucene to version 3.4.0

Pedro Giffuni giffunip at tutopia.com
Thu Sep 29 05:20:03 UTC 2011


>Number:         161119
>Category:       ports
>Synopsis:       Update textproc/lucene to version 3.4.0
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 29 05:20:03 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Pedro Giffuni
>Release:        9.0-CURRENT (pre BETA)
>Organization:
>Environment:
FreeBSD mogwai.giffuni.net 9.0-CURRENT FreeBSD 9.0-CURRENT #6: Sat Apr 30 01:37:57 PDT 2011     root at build9x64.pcbsd.org:/usr/obj/pcbsd-build90/fbsd-source/9.0/sys/PCBSD  amd64

>Description:
Lucene version 3.x has many new features.

Lucene 2.9.4 is based on Java 4, while the Lucene 3.x series is based on Java 5.
Java 4 was deprecated recently on FreeBSD.
Versions of lucene and py-lucene are meant to match and since py-lucene was updated recently to version 3.4.0 it was only natural to do this update.



>How-To-Repeat:

>Fix:
Patch attached.

Please note that textproc/py-lucene will also require a small update to
the LUCENE_VER value in the Makefile.


Patch attached with submission follows:

diff -ruN lucene.orig/Makefile lucene/Makefile
--- lucene.orig/Makefile	2011-09-28 23:55:13.000000000 +0000
+++ lucene/Makefile	2011-09-28 23:55:53.000000000 +0000
@@ -5,10 +5,11 @@
 # $FreeBSD: ports/textproc/lucene/Makefile,v 1.9 2011/07/21 02:45:03 linimon Exp $
 
 PORTNAME=	lucene
-PORTVERSION=	2.9.4
+PORTVERSION=	3.4.0
 CATEGORIES=	textproc java devel
 MASTER_SITES=	${MASTER_SITE_APACHE:S,%SUBDIR%,lucene/java/$(PORTVERSION),}
 DISTNAME=	lucene-${PORTVERSION}
+EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	gerrit.beine at gmx.de
 COMMENT=	A full-text search engine for Java
@@ -25,27 +26,20 @@
 PLIST_FILES=	%%JAVAJARDIR%%/${PORTNAME}-core-${PORTVERSION}.jar
 
 CONTRIBS=	analyzers \
-		ant \
 		benchmark \
-		collation	\
-		bdb	\
-		bdb-je	\
-		instantiated \
+		grouping \
 		highlighter \
-		lucli \
+		icu \
+		instantiated \
 		memory \
 		misc \
 		queries \
 		queryparser	\
-		regex \
 		remote	\
 		smartcn \
-		snowball \
 		spatial \
 		spellchecker \
-		surround \
-		swing \
-		wikipedia \
+		stempel \
 		wordnet \
 		xml-query-parser
 
@@ -65,16 +59,19 @@
 PORTDOCS=	*
 .endif
 
-DEMODIR=	src/demo/org/apache/lucene/demo
+DEMODIR=	contrib/demo
 
-do-install:
-	@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-core-${PORTVERSION}.jar ${JAVAJARDIR}
 .if defined(WITH_CONTRIB)
-	${MV} ${WRKSRC}/contrib/analyzers/common/*.jar ${WRKSRC}/contrib/analyzers/
+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/db/bdb/ ${WRKSRC}/contrib/bdb
-	${MV} ${WRKSRC}/contrib/db/bdb-je/ ${WRKSRC}/contrib/bdb-je
+	${MV} ${WRKSRC}/contrib/analyzers/stempel/ ${WRKSRC}/contrib/
+.endif
+
+do-install:
+	@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-core-${PORTVERSION}.jar ${JAVAJARDIR}
+.if defined(WITH_CONTRIB)
 	${INSTALL_DATA} \
 	    ${CONTRIBS:C,^(.*)$,${WRKSRC}/contrib/\1/${PORTNAME}-\1-${PORTVERSION}.jar,} \
 	    ${JAVAJARDIR}
@@ -92,10 +89,11 @@
 	@cd ${WRKSRC}/${DEMODIR} \
 	    && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \; \
 	    && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
+PLIST_FILES+=%%DOCSDIR%%/.htaccess
 .endif
 
-post-install:
 .if !defined(NOPORTDOCS)
+post-install:
 	@${FIND} -s ${WRKSRC}/${DEMODIR} -not -type d \
 	    | ${SED} -ne 's,^${WRKSRC}/${DEMODIR},${EXAMPLESDIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
 	@${FIND} -s -d ${WRKSRC}/${DEMODIR} -type d \
diff -ruN lucene.orig/distinfo lucene/distinfo
--- lucene.orig/distinfo	2011-09-28 23:55:13.000000000 +0000
+++ lucene/distinfo	2011-09-29 00:01:34.000000000 +0000
@@ -1,2 +1,2 @@
-SHA256 (lucene-2.9.4.tar.gz) = e04fb2aa72e828c2f1b9a80823edfd9935915e83b19a9f9d84ebe92ab2232b00
-SIZE (lucene-2.9.4.tar.gz) = 18096066
+SHA256 (lucene-3.4.0.tgz) = 56fa8afd3b9cbce1b990aa10dd9af30aef434a06506f08814fb6b8c7c526af57
+SIZE (lucene-3.4.0.tgz) = 42933801


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list