ports/127147: Update port: textproc/lucene
Gerrit Beine
gerrit.beine at gmx.de
Sat Sep 6 13:20:04 UTC 2008
>Number: 127147
>Category: ports
>Synopsis: Update port: textproc/lucene
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sat Sep 06 13:20:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Gerrit Beine
>Release: FreeBSD 7.0-RELEASE
>Organization:
Beine Computer
>Environment:
FreeBSD tb.vmware.beine-computer.de 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Sun Mar 9 16:13:49 CET 2008 root at tb.vmware.beine-computer.de:/usr/src/sys/i386/compile/VMWARE i386
>Description:
Added option to install contrib JARs with the port.
Thanks to Mikhail T.
>How-To-Repeat:
>Fix:
diff -Nur /usr/ports/textproc/lucene/Makefile textproc/lucene/Makefile
--- /usr/ports/textproc/lucene/Makefile 2008-06-06 16:04:49.000000000 +0200
+++ textproc/lucene/Makefile 2008-09-06 15:07:54.000000000 +0200
@@ -6,7 +6,7 @@
PORTNAME= lucene
PORTVERSION= 2.3.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= textproc java devel
MASTER_SITES= ${MASTER_SITE_APACHE:S,%SUBDIR%,lucene/java,}
DISTNAME= lucene-${PORTVERSION}
@@ -18,12 +18,37 @@
USE_JAVA= yes
JAVA_VERSION= 1.5+
-OPTIONS= DOCS "Install docs & examples" on
+OPTIONS= DOCS "Install docs & examples" on \
+ CONTRIB "Install contribs" off
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}-core-${PORTVERSION}.jar
+CONTRIBS= analyzers \
+ ant \
+ benchmark \
+ highlighter \
+ lucli \
+ memory \
+ misc \
+ queries \
+ regex \
+ similarity \
+ snowball \
+ spellchecker \
+ surround \
+ swing \
+ wikipedia \
+ wordnet \
+ xml-query-parser
+
.include <bsd.port.pre.mk>
+.if defined(WITH_CONTRIB)
+.for f in ${CONTRIBS}
+PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar
+.endfor
+.endif
+
.if defined(WITHOUT_DOCS) || !defined(WITH_DOCS)
NOPORTDOCS= yes
.endif
@@ -36,6 +61,11 @@
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,} \
+ ${JAVADIR}
+.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/CHANGES.txt ${DOCSDIR}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list