0b7c365187ee7f0d8b2706fb7d0e294722f4b464
[debian/jabref.git] / debian / patches / 02_libs.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 02_libs.dpatch by  <gregor+debian@comodo.priv.at>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Use debian packages of libraries instead of shipped ones.
6
7 @DPATCH@
8 diff -urNad jabref-2.3~/build.xml jabref-2.3/build.xml
9 --- jabref-2.3~/build.xml       2008-04-12 23:31:44.000000000 +0200
10 +++ jabref-2.3/build.xml        2008-04-12 23:56:35.000000000 +0200
11 @@ -87,6 +87,7 @@
12  
13         <!-- Set the properties for library directories -->
14         <property name="library.directory" value="lib" />
15 +       <property name="library.directory.debian" value="/usr/share/java" />
16  
17  <!--    <property name="nsis.executable" value="makensis.exe"/> -->
18         <property name="nsis.executable.linux" value="makensis"/>
19 @@ -112,15 +113,15 @@
20         <path id="classpath">
21                 <pathelement path="${build.classes}" />
22                 <pathelement path="${build.dir}" />
23 -               <pathelement location="${library.directory}/antlr.jar" />
24 -               <pathelement location="${library.directory}/antlr-3.0b5.jar" />
25 -               <pathelement location="${library.directory}/looks-2.0.4.jar" />
26 -               <pathelement location="${library.directory}/forms-1.1.0.jar" />
27 -               <pathelement location="${library.directory}/spin.jar" />
28 -               <pathelement location="${library.directory}/glazedlists-1.7.0_java15.jar" />
29 -               <pathelement location="${library.directory}/microba.jar" />
30 -               <pathelement location="${library.directory}/PDFBox-0.7.3-dev-reduced.jar" />
31 -               <pathelement location="${library.directory}/JempBox-0.1.0-dev.jar" />
32 +               <pathelement location="${library.directory.debian}/antlr.jar" />
33 +               <pathelement location="${library.directory.debian}/antlr3.jar" />
34 +               <pathelement location="${library.directory.debian}/looks.jar" />
35 +               <pathelement location="${library.directory.debian}/forms.jar" />
36 +               <pathelement location="${library.directory.debian}/spin.jar" />
37 +               <pathelement location="${library.directory.debian}/glazedlists.jar" />
38 +               <pathelement location="${library.directory.debian}/microba.jar" />
39 +               <pathelement location="${library.directory.debian}/pdfbox.jar" />
40 +               <pathelement location="${library.directory.debian}/jempbox.jar" />
41         </path>
42  
43         <target name="run" depends="build">
44 @@ -363,15 +364,15 @@
45         <!-- Unpacks jar needed jar files from lib directory into temp directory. -->
46         <target name="unjarlib" description="Unpacks jars from library">
47                 <mkdir dir="${build.tmp}" />
48 -               <unjar src="${library.directory}/antlr.jar" dest="${build.tmp}" />
49 -               <unjar src="${library.directory}/antlr-3.0b5.jar" dest="${build.tmp}" />
50 -               <unjar src="${library.directory}/looks-2.0.4.jar" dest="${build.tmp}" />
51 -               <unjar src="${library.directory}/forms-1.1.0.jar" dest="${build.tmp}" />
52 -               <unjar src="${library.directory}/spin.jar" dest="${build.tmp}" />
53 -               <unjar src="${library.directory}/glazedlists-1.7.0_java15.jar" dest="${build.tmp}" />
54 -               <unjar src="${library.directory}/microba.jar" dest="${build.tmp}" />
55 -               <unjar src="${library.directory}/PDFBox-0.7.3-dev-reduced.jar" dest="${build.tmp}" />
56 -               <unjar src="${library.directory}/JempBox-0.1.0-dev.jar" dest="${build.tmp}" />
57 +               <unjar src="${library.directory.debian}/antlr.jar" dest="${build.tmp}" />
58 +               <unjar src="${library.directory.debian}/antlr3.jar" dest="${build.tmp}" />
59 +               <unjar src="${library.directory.debian}/looks.jar" dest="${build.tmp}" />
60 +               <unjar src="${library.directory.debian}/forms.jar" dest="${build.tmp}" />
61 +               <unjar src="${library.directory.debian}/spin.jar" dest="${build.tmp}" />
62 +               <unjar src="${library.directory.debian}/glazedlists.jar" dest="${build.tmp}" />
63 +               <unjar src="${library.directory.debian}/microba.jar" dest="${build.tmp}" />
64 +               <unjar src="${library.directory.debian}/pdfbox.jar" dest="${build.tmp}" />
65 +               <unjar src="${library.directory.debian}/jempbox.jar" dest="${build.tmp}" />
66                 <delete dir="${build.tmp}/META-INF" />
67                 <!-- rename the microba license file -->
68                 <move file="${build.tmp}/license.txt" tofile="${build.tmp}/microba-license.txt" />