ports/158415: Update textproc/lucene to version 2.9.4

Pedro Giffuni giffunip at tutopia.com
Wed Jun 29 04:10:04 UTC 2011


>Number:         158415
>Category:       ports
>Synopsis:       Update textproc/lucene to version 2.9.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 29 04:10:02 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Pedro Giffuni
>Release:        9.0-CURRENT
>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 2.4.1 was releassed on 2009-03-09, it's rather old
and not mention in the homepage anymore.

According to the Apache Lucene homepage:
2.9.4 is a bugfix release for the Lucene Java 2.x series, based on Java 1.4.

I avoided, for the time being, Lucene 3.2 in order to keep compatibility.

ChangeLog is here:
http://lucene.apache.org/java/2_9_4/changes/Changes.html

I added the license(Apache).
Specified 1.4+ for Java as documented.
Made some tweaks to the contrib dir.


>How-To-Repeat:

>Fix:
Patch attached:

Patch attached with submission follows:

diff -ruN lucene.orig/Makefile lucene/Makefile
--- lucene.orig/Makefile	2011-06-28 15:52:05.000000000 +0000
+++ lucene/Makefile	2011-06-28 22:46:11.000000000 +0000
@@ -5,17 +5,19 @@
 # $FreeBSD: ports/textproc/lucene/Makefile,v 1.7 2009/12/18 19:06:55 pav Exp $
 
 PORTNAME=	lucene
-PORTVERSION=	2.4.1
+PORTVERSION=	2.9.4
 CATEGORIES=	textproc java devel
-MASTER_SITES=	${MASTER_SITE_APACHE:S,%SUBDIR%,lucene/java,}
+MASTER_SITES=	${MASTER_SITE_APACHE:S,%SUBDIR%,lucene/java/$(PORTVERSION),}
 DISTNAME=	lucene-${PORTVERSION}
 
 MAINTAINER=	gerrit.beine at gmx.de
 COMMENT=	A full-text search engine for Java
 
+LICENSE=	ASL
+
 NO_BUILD=	yes
 USE_JAVA=	yes
-JAVA_VERSION=	1.5+
+JAVA_VERSION=	1.4+
 
 OPTIONS=	DOCS    "Install docs & examples" on \
 		CONTRIB "Install contribs" off
@@ -25,15 +27,21 @@
 CONTRIBS=	analyzers \
 		ant \
 		benchmark \
+		collation	\
+		bdb	\
+		bdb-je	\
 		instantiated \
 		highlighter \
 		lucli \
 		memory \
 		misc \
 		queries \
+		queryparser	\
 		regex \
-		similarity \
+		remote	\
+		smartcn \
 		snowball \
+		spatial \
 		spellchecker \
 		surround \
 		swing \
@@ -62,6 +70,11 @@
 do-install:
 	@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-core-${PORTVERSION}.jar ${JAVAJARDIR}
 .if defined(WITH_CONTRIB)
+	${MV} ${WRKSRC}/contrib/analyzers/common/*.jar ${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
 	${INSTALL_DATA} \
 	    ${CONTRIBS:C,^(.*)$,${WRKSRC}/contrib/\1/${PORTNAME}-\1-${PORTVERSION}.jar,} \
 	    ${JAVAJARDIR}
diff -ruN lucene.orig/distinfo lucene/distinfo
--- lucene.orig/distinfo	2011-06-28 15:52:05.000000000 +0000
+++ lucene/distinfo	2011-06-28 16:29:43.000000000 +0000
@@ -1,3 +1,2 @@
-MD5 (lucene-2.4.1.tar.gz) = c896947f75e4dec8823a8908cac78a35
-SHA256 (lucene-2.4.1.tar.gz) = 359657971d74b8ef7a31f6dc1a55abd0cde854d4a28351d4cbea2f21c7487087
-SIZE (lucene-2.4.1.tar.gz) = 8772527
+SHA256 (lucene-2.9.4.tar.gz) = e04fb2aa72e828c2f1b9a80823edfd9935915e83b19a9f9d84ebe92ab2232b00
+SIZE (lucene-2.9.4.tar.gz) = 18096066


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



More information about the freebsd-ports-bugs mailing list