[pkg-java] r3942 - in trunk/lucene2/debian: . patches

janpascal-guest at alioth.debian.org janpascal-guest at alioth.debian.org
Wed Aug 1 20:29:43 UTC 2007


Author: janpascal-guest
Date: 2007-08-01 20:29:43 +0000 (Wed, 01 Aug 2007)
New Revision: 3942

Added:
   trunk/lucene2/debian/patches/01_remove_all_jarfiles.dpatch
   trunk/lucene2/debian/patches/02_full.dpatch
   trunk/lucene2/debian/patches/03_fix-benchmark-jar-locations.dpatch
Removed:
   trunk/lucene2/debian/patches/01_full.dpatch
   trunk/lucene2/debian/patches/01full
Modified:
   trunk/lucene2/debian/README.Debian
   trunk/lucene2/debian/control
   trunk/lucene2/debian/patches/00list
   trunk/lucene2/debian/rules
Log:
Updated README; try to build only the contribs we support; fixed building of benchmark

Modified: trunk/lucene2/debian/README.Debian
===================================================================
--- trunk/lucene2/debian/README.Debian	2007-08-01 20:29:38 UTC (rev 3941)
+++ trunk/lucene2/debian/README.Debian	2007-08-01 20:29:43 UTC (rev 3942)
@@ -11,8 +11,11 @@
   docs, and example applications
 
 Not all contrib libraries are included:
-- ant does not build
-- db/bdb-je, db/bdb and gdata-server need external libraries
+- ant depends on jtidy, which is not (yet) in Debian
+- db/bdb-je depends on je-2.0.90 from www.sleepycat.com, not
+  in Debian
+- gdata-server depends on many libraries, of which at least the 
+  Google Data API (com.google.gdata) packages are not in Debian
 
 The Javadoc(TM) for Lucene are included in the liblucene2-java-doc
 package, in /usr/share/doc/liblucene2-java-doc/docs/api FIXME

Modified: trunk/lucene2/debian/control
===================================================================
--- trunk/lucene2/debian/control	2007-08-01 20:29:38 UTC (rev 3941)
+++ trunk/lucene2/debian/control	2007-08-01 20:29:43 UTC (rev 3942)
@@ -7,14 +7,16 @@
 Build-Depends: debhelper (>= 4.0.0), dpatch (>= 2.0), sun-java5-jre, sun-java5-jdk, ant,
  ant-optional, javacc, junit, libxalan2-java
 Build-Depends-Indep: libjline-java, libcommons-digester-java, libregexp-java, 
- libdb4.3-java, libdb4.3-java-dev
+ libdb4.3-java, libdb4.3-java-dev, 
+ libcommons-collections3-java, libcommons-logging-java, libcommons-beanutils-java
 Standards-Version: 3.7.2
 
 Package: liblucene2-java
 Architecture: all
 Depends: ${misc:Depends}, 
  sun-java5-jre | sun-java6-jre,
- libjline-java, libcommons-digester-java, libregexp-java, libdb4.3-java
+ libjline-java, libcommons-digester-java, libregexp-java, libdb4.3-java,
+ libcommons-collections3-java, libcommons-logging-java, libcommons-beanutils-java
 Description: Full-text search engine library for Java(TM)
  Lucene is a full-text search engine for the Java(TM) programming language.
  Lucene is not a complete application, but rather a code library and API

Modified: trunk/lucene2/debian/patches/00list
===================================================================
--- trunk/lucene2/debian/patches/00list	2007-08-01 20:29:38 UTC (rev 3941)
+++ trunk/lucene2/debian/patches/00list	2007-08-01 20:29:43 UTC (rev 3942)
@@ -1 +1,3 @@
-01_full.dpatch
+01_remove_all_jarfiles.dpatch
+02_full.dpatch
+03_fix-benchmark-jar-locations.dpatch

Deleted: trunk/lucene2/debian/patches/01_full.dpatch
===================================================================
--- trunk/lucene2/debian/patches/01_full.dpatch	2007-08-01 20:29:38 UTC (rev 3941)
+++ trunk/lucene2/debian/patches/01_full.dpatch	2007-08-01 20:29:43 UTC (rev 3942)
@@ -1,124 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 01_full.dpatch by  <janpascal at vanbest.org>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: No description.
-
- at DPATCH@
-
---- lucene2-2.1.0.orig/contrib/db/bdb/build.xml
-+++ lucene2-2.1.0/contrib/db/bdb/build.xml
-@@ -8,7 +8,7 @@
-   <property name="db.version" value="4.3.29" />
- 
-   <path id="db.jar">
--    <pathelement location="lib/db-${db.version}.jar" />
-+    <pathelement location="/usr/share/java/libdb4.3-java.jar" />
-   </path>
- 
-   <available classname="com.sleepycat.db.internal.Db" property="db.jar.exists">
-@@ -19,6 +19,7 @@
- 
-   <property name="build.dir" location="../../../build/contrib/db/bdb" />
-   <property name="dist.dir" location="../../../dist/contrib/db/bdb" />
-+  <property name="java.library.path" location="/usr/lib/libdb_java.so" />
- 
-   <import file="../../contrib-build.xml" />
- 
---- lucene2-2.1.0.orig/contrib/lucli/build.xml
-+++ lucene2-2.1.0/contrib/lucli/build.xml
-@@ -8,7 +8,7 @@
- 
- 
-   <path id="additional.dependencies">
--    <pathelement location="lib/jline.jar"/>
-+    <pathelement location="/usr/share/java/jline.jar"/>
-   </path>
- 
-   <pathconvert property="project.classpath"
---- lucene2-2.1.0.orig/contrib/regex/build.xml
-+++ lucene2-2.1.0/contrib/regex/build.xml
-@@ -7,7 +7,8 @@
-   </description>
- 
-   <path id="additional.dependencies">
--    <fileset dir="lib" includes="*-oro-*.jar,*-regexp-*.jar"/>
-+    <fileset dir="/usr/share/java" includes="regexp-*.jar"/>
-+    <!--<fileset dir="/usr/share/java" includes="*-oro-*.jar,*-regexp-*.jar"/> -->
-   </path>
- 
-   <pathconvert property="project.classpath"
---- lucene2-2.1.0.orig/contrib/contrib-build.xml
-+++ lucene2-2.1.0/contrib/contrib-build.xml
-@@ -19,6 +19,7 @@
-   <path id="test.classpath">
-     <path refid="classpath"/>
-     <pathelement location="${junit.jar}"/>
-+    <pathelement location="../../build/classes/test"/>
-     <pathelement location="${build.dir}/classes/java"/>
-   </path>
- 
---- lucene2-2.1.0.orig/build.xml
-+++ lucene2-2.1.0/build.xml
-@@ -386,7 +386,7 @@
- 	<packageset dir="src/demo"/>
- 	
-         <packageset dir="contrib/analyzers/src/java"/>
--        <packageset dir="contrib/ant/src/java"/>
-+        <!-- debian-ignore <packageset dir="contrib/ant/src/java"/> -->
-         <packageset dir="contrib/highlighter/src/java"/>
-         <packageset dir="contrib/lucli/src/java"/>
-         <packageset dir="contrib/memory/src/java"/>
-@@ -400,9 +400,9 @@
-         <packageset dir="contrib/wordnet/src/java"/>
-           <packageset dir="contrib/benchmark/src/java"/>
-         
--        <packageset refid="gdata-server-core" />
--        <packageset refid="gdata-server-gom" />
--        <packageset refid="gdata-server-hivemind" />
-+        <!-- debian-ignore <packageset refid="gdata-server-core" /> -->
-+        <!-- debian-ignore <packageset refid="gdata-server-gom" /> -->
-+        <!-- debian-ignore <packageset refid="gdata-server-hivemind" /> -->
- 
-         <group title="Core" packages="org.apache.*:org.apache.lucene.analysis:org.apache.lucene.analysis.standard*"/>
- 
-@@ -425,6 +425,9 @@
-         <group title="contrib: Swing" packages="org.apache.lucene.swing*"/>
-         <group title="contrib: WordNet" packages="org.apache.lucene.wordnet*"/>
- 
-+	<link href="http://jline.sourceforge.net/apidocs/"/>
-+	<link href="http://jakarta.apache.org/regexp/apidocs/"/>
-+	<link href="http://jakarta.apache.org/commons/digester/commons-digester-1.7/docs/api/"/>
- 	
-       </javadoc>
-     </sequential>
---- lucene2-2.1.0.orig/common-build.xml
-+++ lucene2-2.1.0/common-build.xml
-@@ -22,7 +22,7 @@
- 
-   <property name="name" value="${ant.project.name}"/>
-   <property name="Name" value="Lucene"/>
--  <property name="version" value="2.1.1-dev"/>
-+  <property name="version" value="2.1.0"/>
-   <property name="year" value="2000-${current.year}"/>
-   <property name="final.name" value="lucene-${name}-${version}"/>
- 
-@@ -38,7 +38,8 @@
-   <property name="build.dir" location="build"/>
-   <property name="dist.dir" location="dist"/>
- 
--  <property name="javacc.home" location="${common.dir}"/>
-+  <property name="javacc.home" location="/usr/share/java"/>
-+  <property name="javacc.jar" location="/usr/share/java/javacc.jar"/>
- 
-   <property name="junit.output.dir" location="${build.dir}/test"/>
-   <property name="junit.reports" location="${build.dir}/test/reports"/>
-@@ -64,7 +65,7 @@
-   <available
-     property="javacc.present"
-     classname="org.javacc.parser.Main"
--    classpath="${javacc.home}/bin/lib/javacc.jar"
-+    classpath="/usr/share/java/javacc.jar"
-     />
- 
-   <available

Added: trunk/lucene2/debian/patches/01_remove_all_jarfiles.dpatch
===================================================================
--- trunk/lucene2/debian/patches/01_remove_all_jarfiles.dpatch	                        (rev 0)
+++ trunk/lucene2/debian/patches/01_remove_all_jarfiles.dpatch	2007-08-01 20:29:43 UTC (rev 3942)
@@ -0,0 +1,33 @@
+#! /bin/sh
+## 01_remove_all_jarfiles.dpatch -- Jan-Pascal van Best <janpascal at vanbest.org>
+##
+## DP: We want to be use we do not build using jar files contained
+## DP: in the Lucene distribution tarball, so we start by removing
+## DP: all jar files.
+
+OPERATION="$1"
+DIRECTORY="$2"
+
+if [ -z "$OPERATION" ]; then
+	echo "Illegal arguments"
+	exit 1
+fi
+
+if [ -z "$DIRECTORY" ]; then
+	DIRECTORY="."
+fi
+
+case "$OPERATION" in
+  -patch)
+		echo "Removing all jar files under $DIRECTORY"
+		find $DIRECTORY -name \*.jar -exec rm {} \;
+		;;
+  -unpatch)
+		echo "Unable to magic back jar files..."
+		;;
+  *)
+		echo "Illegal command line $1 $2"
+		exit 1
+		;;
+esac
+


Property changes on: trunk/lucene2/debian/patches/01_remove_all_jarfiles.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Deleted: trunk/lucene2/debian/patches/01full
===================================================================
--- trunk/lucene2/debian/patches/01full	2007-08-01 20:29:38 UTC (rev 3941)
+++ trunk/lucene2/debian/patches/01full	2007-08-01 20:29:43 UTC (rev 3942)
@@ -1,116 +0,0 @@
---- lucene2-2.1.0.orig/contrib/db/bdb/build.xml
-+++ lucene2-2.1.0/contrib/db/bdb/build.xml
-@@ -8,7 +8,7 @@
-   <property name="db.version" value="4.3.29" />
- 
-   <path id="db.jar">
--    <pathelement location="lib/db-${db.version}.jar" />
-+    <pathelement location="/usr/share/java/libdb4.3-java.jar" />
-   </path>
- 
-   <available classname="com.sleepycat.db.internal.Db" property="db.jar.exists">
-@@ -19,6 +19,7 @@
- 
-   <property name="build.dir" location="../../../build/contrib/db/bdb" />
-   <property name="dist.dir" location="../../../dist/contrib/db/bdb" />
-+  <property name="java.library.path" location="/usr/lib/libdb_java.so" />
- 
-   <import file="../../contrib-build.xml" />
- 
---- lucene2-2.1.0.orig/contrib/lucli/build.xml
-+++ lucene2-2.1.0/contrib/lucli/build.xml
-@@ -8,7 +8,7 @@
- 
- 
-   <path id="additional.dependencies">
--    <pathelement location="lib/jline.jar"/>
-+    <pathelement location="/usr/share/java/jline.jar"/>
-   </path>
- 
-   <pathconvert property="project.classpath"
---- lucene2-2.1.0.orig/contrib/regex/build.xml
-+++ lucene2-2.1.0/contrib/regex/build.xml
-@@ -7,7 +7,8 @@
-   </description>
- 
-   <path id="additional.dependencies">
--    <fileset dir="lib" includes="*-oro-*.jar,*-regexp-*.jar"/>
-+    <fileset dir="/usr/share/java" includes="regexp-*.jar"/>
-+    <!--<fileset dir="/usr/share/java" includes="*-oro-*.jar,*-regexp-*.jar"/> -->
-   </path>
- 
-   <pathconvert property="project.classpath"
---- lucene2-2.1.0.orig/contrib/contrib-build.xml
-+++ lucene2-2.1.0/contrib/contrib-build.xml
-@@ -19,6 +19,7 @@
-   <path id="test.classpath">
-     <path refid="classpath"/>
-     <pathelement location="${junit.jar}"/>
-+    <pathelement location="../../build/classes/test"/>
-     <pathelement location="${build.dir}/classes/java"/>
-   </path>
- 
---- lucene2-2.1.0.orig/build.xml
-+++ lucene2-2.1.0/build.xml
-@@ -386,7 +386,7 @@
- 	<packageset dir="src/demo"/>
- 	
-         <packageset dir="contrib/analyzers/src/java"/>
--        <packageset dir="contrib/ant/src/java"/>
-+        <!-- debian-ignore <packageset dir="contrib/ant/src/java"/> -->
-         <packageset dir="contrib/highlighter/src/java"/>
-         <packageset dir="contrib/lucli/src/java"/>
-         <packageset dir="contrib/memory/src/java"/>
-@@ -400,9 +400,9 @@
-         <packageset dir="contrib/wordnet/src/java"/>
-           <packageset dir="contrib/benchmark/src/java"/>
-         
--        <packageset refid="gdata-server-core" />
--        <packageset refid="gdata-server-gom" />
--        <packageset refid="gdata-server-hivemind" />
-+        <!-- debian-ignore <packageset refid="gdata-server-core" /> -->
-+        <!-- debian-ignore <packageset refid="gdata-server-gom" /> -->
-+        <!-- debian-ignore <packageset refid="gdata-server-hivemind" /> -->
- 
-         <group title="Core" packages="org.apache.*:org.apache.lucene.analysis:org.apache.lucene.analysis.standard*"/>
- 
-@@ -425,6 +425,9 @@
-         <group title="contrib: Swing" packages="org.apache.lucene.swing*"/>
-         <group title="contrib: WordNet" packages="org.apache.lucene.wordnet*"/>
- 
-+	<link href="http://jline.sourceforge.net/apidocs/"/>
-+	<link href="http://jakarta.apache.org/regexp/apidocs/"/>
-+	<link href="http://jakarta.apache.org/commons/digester/commons-digester-1.7/docs/api/"/>
- 	
-       </javadoc>
-     </sequential>
---- lucene2-2.1.0.orig/common-build.xml
-+++ lucene2-2.1.0/common-build.xml
-@@ -22,7 +22,7 @@
- 
-   <property name="name" value="${ant.project.name}"/>
-   <property name="Name" value="Lucene"/>
--  <property name="version" value="2.1.1-dev"/>
-+  <property name="version" value="2.1.0"/>
-   <property name="year" value="2000-${current.year}"/>
-   <property name="final.name" value="lucene-${name}-${version}"/>
- 
-@@ -38,7 +38,8 @@
-   <property name="build.dir" location="build"/>
-   <property name="dist.dir" location="dist"/>
- 
--  <property name="javacc.home" location="${common.dir}"/>
-+  <property name="javacc.home" location="/usr/share/java"/>
-+  <property name="javacc.jar" location="/usr/share/java/javacc.jar"/>
- 
-   <property name="junit.output.dir" location="${build.dir}/test"/>
-   <property name="junit.reports" location="${build.dir}/test/reports"/>
-@@ -64,7 +65,7 @@
-   <available
-     property="javacc.present"
-     classname="org.javacc.parser.Main"
--    classpath="${javacc.home}/bin/lib/javacc.jar"
-+    classpath="/usr/share/java/javacc.jar"
-     />
- 
-   <available

Added: trunk/lucene2/debian/patches/02_full.dpatch
===================================================================
--- trunk/lucene2/debian/patches/02_full.dpatch	                        (rev 0)
+++ trunk/lucene2/debian/patches/02_full.dpatch	2007-08-01 20:29:43 UTC (rev 3942)
@@ -0,0 +1,125 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_full.dpatch by Jan-Pascal van Best <janpascal at vanbest.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: This patch file contains various patches to get Lucene to work
+## DP: nicely with Debian. Needs to be split up in separate patches.
+
+ at DPATCH@
+
+--- lucene2-2.1.0.orig/contrib/db/bdb/build.xml
++++ lucene2-2.1.0/contrib/db/bdb/build.xml
+@@ -8,7 +8,7 @@
+   <property name="db.version" value="4.3.29" />
+ 
+   <path id="db.jar">
+-    <pathelement location="lib/db-${db.version}.jar" />
++    <pathelement location="/usr/share/java/libdb4.3-java.jar" />
+   </path>
+ 
+   <available classname="com.sleepycat.db.internal.Db" property="db.jar.exists">
+@@ -19,6 +19,7 @@
+ 
+   <property name="build.dir" location="../../../build/contrib/db/bdb" />
+   <property name="dist.dir" location="../../../dist/contrib/db/bdb" />
++  <property name="java.library.path" location="/usr/lib/libdb_java.so" />
+ 
+   <import file="../../contrib-build.xml" />
+ 
+--- lucene2-2.1.0.orig/contrib/lucli/build.xml
++++ lucene2-2.1.0/contrib/lucli/build.xml
+@@ -8,7 +8,7 @@
+ 
+ 
+   <path id="additional.dependencies">
+-    <pathelement location="lib/jline.jar"/>
++    <pathelement location="/usr/share/java/jline.jar"/>
+   </path>
+ 
+   <pathconvert property="project.classpath"
+--- lucene2-2.1.0.orig/contrib/regex/build.xml
++++ lucene2-2.1.0/contrib/regex/build.xml
+@@ -7,7 +7,8 @@
+   </description>
+ 
+   <path id="additional.dependencies">
+-    <fileset dir="lib" includes="*-oro-*.jar,*-regexp-*.jar"/>
++    <fileset dir="/usr/share/java" includes="regexp-*.jar"/>
++    <!--<fileset dir="/usr/share/java" includes="*-oro-*.jar,*-regexp-*.jar"/> -->
+   </path>
+ 
+   <pathconvert property="project.classpath"
+--- lucene2-2.1.0.orig/contrib/contrib-build.xml
++++ lucene2-2.1.0/contrib/contrib-build.xml
+@@ -19,6 +19,7 @@
+   <path id="test.classpath">
+     <path refid="classpath"/>
+     <pathelement location="${junit.jar}"/>
++    <pathelement location="../../build/classes/test"/>
+     <pathelement location="${build.dir}/classes/java"/>
+   </path>
+ 
+--- lucene2-2.1.0.orig/build.xml
++++ lucene2-2.1.0/build.xml
+@@ -386,7 +386,7 @@
+ 	<packageset dir="src/demo"/>
+ 	
+         <packageset dir="contrib/analyzers/src/java"/>
+-        <packageset dir="contrib/ant/src/java"/>
++        <!-- debian-ignore <packageset dir="contrib/ant/src/java"/> -->
+         <packageset dir="contrib/highlighter/src/java"/>
+         <packageset dir="contrib/lucli/src/java"/>
+         <packageset dir="contrib/memory/src/java"/>
+@@ -400,9 +400,9 @@
+         <packageset dir="contrib/wordnet/src/java"/>
+           <packageset dir="contrib/benchmark/src/java"/>
+         
+-        <packageset refid="gdata-server-core" />
+-        <packageset refid="gdata-server-gom" />
+-        <packageset refid="gdata-server-hivemind" />
++        <!-- debian-ignore <packageset refid="gdata-server-core" /> -->
++        <!-- debian-ignore <packageset refid="gdata-server-gom" /> -->
++        <!-- debian-ignore <packageset refid="gdata-server-hivemind" /> -->
+ 
+         <group title="Core" packages="org.apache.*:org.apache.lucene.analysis:org.apache.lucene.analysis.standard*"/>
+ 
+@@ -425,6 +425,9 @@
+         <group title="contrib: Swing" packages="org.apache.lucene.swing*"/>
+         <group title="contrib: WordNet" packages="org.apache.lucene.wordnet*"/>
+ 
++	<link href="http://jline.sourceforge.net/apidocs/"/>
++	<link href="http://jakarta.apache.org/regexp/apidocs/"/>
++	<link href="http://jakarta.apache.org/commons/digester/commons-digester-1.7/docs/api/"/>
+ 	
+       </javadoc>
+     </sequential>
+--- lucene2-2.1.0.orig/common-build.xml
++++ lucene2-2.1.0/common-build.xml
+@@ -22,7 +22,7 @@
+ 
+   <property name="name" value="${ant.project.name}"/>
+   <property name="Name" value="Lucene"/>
+-  <property name="version" value="2.1.1-dev"/>
++  <property name="version" value="2.1.0"/>
+   <property name="year" value="2000-${current.year}"/>
+   <property name="final.name" value="lucene-${name}-${version}"/>
+ 
+@@ -38,7 +38,8 @@
+   <property name="build.dir" location="build"/>
+   <property name="dist.dir" location="dist"/>
+ 
+-  <property name="javacc.home" location="${common.dir}"/>
++  <property name="javacc.home" location="/usr/share/java"/>
++  <property name="javacc.jar" location="/usr/share/java/javacc.jar"/>
+ 
+   <property name="junit.output.dir" location="${build.dir}/test"/>
+   <property name="junit.reports" location="${build.dir}/test/reports"/>
+@@ -64,7 +65,7 @@
+   <available
+     property="javacc.present"
+     classname="org.javacc.parser.Main"
+-    classpath="${javacc.home}/bin/lib/javacc.jar"
++    classpath="/usr/share/java/javacc.jar"
+     />
+ 
+   <available


Property changes on: trunk/lucene2/debian/patches/02_full.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/lucene2/debian/patches/03_fix-benchmark-jar-locations.dpatch
===================================================================
--- trunk/lucene2/debian/patches/03_fix-benchmark-jar-locations.dpatch	                        (rev 0)
+++ trunk/lucene2/debian/patches/03_fix-benchmark-jar-locations.dpatch	2007-08-01 20:29:43 UTC (rev 3942)
@@ -0,0 +1,35 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03_fix-benchmark-jar-locations.dpatch by Jan-Pascal van Best <janpascal at vanbest.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix build.xml of contrib/benchmark so that it uses the jar files
+## DP: in /usr/share/java instead of those in the Lucene source tarball
+
+ at DPATCH@
+
+diff -u -r lucene-2.1.0/contrib/benchmark/build.xml lucene-2.1.0-new/contrib/benchmark/build.xml
+--- lucene-2.1.0/contrib/benchmark/build.xml	2007-02-14 17:46:14.000000000 +0100
++++ lucene-2.1.0-new/contrib/benchmark/build.xml	2007-04-15 17:51:11.000000000 +0200
+@@ -82,17 +82,17 @@
+         <antcall target="extract-reuters"/>
+     </target>
+     <property name="digester.jar" value="commons-digester-1.7.jar"/>
+-    <property name="collections.jar" value="commons-collections-3.1.jar"/>
++    <property name="collections.jar" value="commons-collections3.jar"/>
+     <property name="logging.jar" value="commons-logging-1.0.4.jar"/>
+     <property name="bean-utils.jar" value="commons-beanutils-1.7.0.jar"/>
+ 
+     <path id="classpath">
+         <pathelement path="${common.dir}/build/classes/java"/>
+         <pathelement path="${common.dir}/build/classes/demo"/>
+-        <pathelement path="${basedir}/lib/${digester.jar}"/>
+-        <pathelement path="${basedir}/lib/${collections.jar}"/>
+-        <pathelement path="${basedir}/lib/${logging.jar}"/>
+-        <pathelement path="${basedir}/lib/${bean-utils.jar}"/>
++        <pathelement path="/usr/share/java/${digester.jar}"/>
++        <pathelement path="/usr/share/java/${collections.jar}"/>
++        <pathelement path="/usr/share/java/${logging.jar}"/>
++        <pathelement path="/usr/share/java/${bean-utils.jar}"/>
+     </path>
+     <path id="run.classpath">
+         <path refid="classpath"/>


Property changes on: trunk/lucene2/debian/patches/03_fix-benchmark-jar-locations.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Modified: trunk/lucene2/debian/rules
===================================================================
--- trunk/lucene2/debian/rules	2007-08-01 20:29:38 UTC (rev 3941)
+++ trunk/lucene2/debian/rules	2007-08-01 20:29:43 UTC (rev 3942)
@@ -21,11 +21,11 @@
 
 # Stuff from contrib we include
 # We do not include:
-#  - ant does not build
-#  - benchmark does not build
-#  - db/bdb-je, db/bdb and gdata-server need external libraries
+#  - ant depends on JTidy
+#  - db/bdb-je depends on je
+#  - gdata-server depends on Google Data API
 #  - contrib/javascript, is installed under doc
-LUCENE_CONTRIBS = analyzers db/bdb highlighter memory lucli misc queries regex similarity snowball spellchecker surround swing wordnet xml-query-parser
+LUCENE_CONTRIBS = analyzers benchmark db/bdb highlighter memory lucli miscellaneous queries regex similarity snowball spellchecker surround swing wordnet xml-query-parser
 
 # Explicitly build with sun-java5-jdk
 export JAVA_HOME = /usr/lib/jvm/java-1.5.0-sun
@@ -76,7 +76,11 @@
 
 	$(ANT) javacc
 	$(ANT) jar-core
-	$(ANT) build-contrib
+	# $(ANT) build-contrib
+	for contrib in $(LUCENE_CONTRIBS); do \
+	  cd $(CURDIR)/contrib/$$contrib ; \
+	  $(ANT) jar ; \
+	done
 	$(ANT) war-demo
 	$(ANT) test
 	export LD_LIBRARY_PATH=/usr/lib ; \




More information about the pkg-java-commits mailing list