summaryrefslogtreecommitdiff
path: root/debian/patches/build.patch
blob: 9bc8c024c4f90109cac8cfc37e07ad6a667e1f3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Debian build.xml file
Index: elki-0.4.1/build.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ elki-0.4.1/build.xml	2012-01-30 21:01:27.000000000 +0100
@@ -0,0 +1,57 @@
+<project name="ELKI" default="dist" basedir=".">
+  <property name="src" location="src"/>
+  <property name="build" location="build"/>
+  <property name="dist" location="dist"/>
+  <property name="elki" value="de.lmu.ifi.dbs.elki"/>
+  <property name="title" value="ELKI: Environment for DeveLoping KDD-Applications Supported by Index-Structures"/>
+  <property name="url" value="http://elki.dbs.ifi.lmu.de/"/>
+  <property name="version" value="0.4.1"/>
+
+  <target name="init">
+    <!-- Create the build directory structure used by compile -->
+    <mkdir dir="${build}"/>
+  </target>
+
+  <target name="compile" depends="init">
+    <!-- Compile the java code from ${src} into ${build} -->
+    <javac destdir="${build}" includeantruntime="false" deprecation="false" debug="false" optimize="true" source="1.6" target="1.6" debuglevel="" encoding="UTF-8">
+      <compilerarg value="-Xlint:all" />
+      <classpath>
+        <pathelement path="${src}" />
+        <pathelement path="/usr/share/java/batik.jar" />
+        <pathelement path="/usr/share/java/xml-commons-external.jar" />
+        <pathelement path="/usr/share/java/fop.jar" />
+      </classpath>
+      <src path="${src}" />
+    </javac>
+  </target>
+
+  <target name="install" depends="init">
+    <copy todir="${build}">
+        <fileset dir="${src}">
+            <exclude name="**/*.java" />
+        </fileset>
+    </copy>
+  </target>
+
+  <target name="dist" depends="compile, install">
+    <!-- build precompiled jar -->
+    <jar jarfile="${dist}/elki.jar" basedir="${build}">
+      <manifest>
+        <attribute name="Main-class" value="${elki}.gui.minigui.MiniGUI" />
+        <attribute name="Built-By" value="erich@debian.org" />
+        <attribute name="Implementation-Title" value="${title}" />
+        <attribute name="Implementation-Version" value="${version}" />
+        <attribute name="Implementation-URL" value="${url}" />
+        <attribute name="Class-Path" value="batik.jar fop.jar xml-commons-external.jar" />
+      </manifest>
+    </jar>
+    <!-- build source jar -->
+    <jar jarfile="${dist}/elki-src.jar" basedir="${src}" />
+  </target>
+
+  <target name="clean">
+    <delete dir="${build}"/>
+    <delete dir="${dist}"/>
+  </target>
+</project>