[sweethome3d-furniture-editor] 06/12: Add build.patch and merge existing patches into this one.

Markus Koschany apo at moszumanska.debian.org
Sun Oct 9 21:32:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

apo pushed a commit to branch master
in repository sweethome3d-furniture-editor.

commit 64be341365aa89625db980701f45d72ed201dbc1
Author: Markus Koschany <apo at debian.org>
Date:   Sun Oct 9 22:53:38 2016 +0200

    Add build.patch and merge existing patches into this one.
---
 debian/patches/build.patch | 106 +++++++++++++++++++++++++++++++++++++++++++++
 debian/patches/series      |   1 +
 2 files changed, 107 insertions(+)

diff --git a/debian/patches/build.patch b/debian/patches/build.patch
new file mode 100644
index 0000000..bd9e37e
--- /dev/null
+++ b/debian/patches/build.patch
@@ -0,0 +1,106 @@
+From: Markus Koschany <apo at debian.org>
+Date: Sun, 9 Oct 2016 22:39:54 +0200
+Subject: build
+
+Debianize the build system. Use only system libraries.
+See also
+
+Bug-Debian: http://bugs.debian.org/734272
+Forwarded: not-needed
+---
+ build.xml | 26 +++++++++++++++++---------
+ 1 file changed, 17 insertions(+), 9 deletions(-)
+
+diff --git a/build.xml b/build.xml
+index 09403bb..0698f32 100644
+--- a/build.xml
++++ b/build.xml
+@@ -16,9 +16,11 @@
+           description="Builds build/FurnitureLibraryEditor.jar with all its classes">
+     <!-- Compile Sweet Home 3D -->
+     <mkdir dir="build/classes"/>
++    <!--
+     <javac srcdir="../SweetHome3D/src" destdir="build/classes"
+            encoding="ISO-8859-1" target="1.5">
+-      <!-- Use lib as an extension directory to override default Java 3D libraries -->
++    -->  <!-- Use lib as an extension directory to override default Java 3D libraries -->
++    <!--
+       <extdirs>
+         <pathelement location="../SweetHome3D/lib"/>
+       </extdirs>
+@@ -26,13 +28,17 @@
+         <pathelement location="../SweetHome3D/libtest/AppleJavaExtensions.jar"/>
+         <pathelement location="../SweetHome3D/libtest/jnlp.jar"/>
+       </classpath>
+-    </javac>
++    </javac>-->
+     <!-- Compile Furniture Library Editor -->
+     <javac srcdir="src" destdir="build/classes"
+            encoding="ISO-8859-1" target="1.5">
+       <classpath>
+         <pathelement location="build/classes"/>
+-        <pathelement location="../SweetHome3D/lib/batik-svgpathparser-1.7.jar"/>
++        <pathelement location="/usr/share/sweethome3d/sweethome3d.jar"/>
++        <pathelement location="/usr/share/java/j3dcore.jar"/>
++        <pathelement location="/usr/share/java/vecmath.jar"/>
++        <pathelement location="/usr/share/java/batik-alljar"/>
++ 
+         <pathelement location="../SweetHome3D/libtest/AppleJavaExtensions.jar"/>
+       </classpath>
+     </javac>
+@@ -45,12 +51,12 @@
+       </fileset>
+     </copy>
+     <copy todir="build/classes">
+-      <fileset dir="../SweetHome3D/src">
++      <fileset dir="build/classes-sh3d">
+         <include name="**"/>
+         <exclude name="**/*.java"/>
+         <exclude name="**/package.html"/> 
+         <exclude name="**/*_*.properties"/>
+-        <exclude name="com/eteks/sweethome3d/io/DefaultFurniture*.*"/>
++        <!--<exclude name="com/eteks/sweethome3d/io/DefaultFurniture*.*"/>-->
+         <exclude name="com/eteks/sweethome3d/io/Contributed*.*"/>
+         <exclude name="com/eteks/sweethome3d/io/DefaultTextures*.*"/>
+         <exclude name="com/eteks/sweethome3d/io/resources/**"/>
+@@ -59,10 +65,10 @@
+       </fileset>
+     </copy>
+     <copy todir="build/classes">
+-      <fileset dir="../SweetHome3D/src">
++      <fileset dir="build/classes-sh3d">
+         <include name="**/*_fr.properties"/>
+         <include name="com/eteks/sweethome3d/io/resources/patterns/**"/>
+-        <exclude name="com/eteks/sweethome3d/io/DefaultFurniture*.*"/>
++        <!--<exclude name="com/eteks/sweethome3d/io/DefaultFurniture*.*"/>-->
+         <exclude name="com/eteks/sweethome3d/io/Contributed*.*"/>
+         <exclude name="com/eteks/sweethome3d/io/DefaultTextures*.*"/>
+       </fileset>
+@@ -131,15 +137,17 @@
+     </zip>
+   </target>
+ 
+-  <target name="furnitureLibraryEditorJarExecutable" depends="furnitureLibraryEditor,jogl-java3d"
++  <target name="furnitureLibraryEditorJarExecutable" depends="furnitureLibraryEditor"
+           description="Builds FurnitureLibraryEditor-version.jar executable Jar">
+     <!-- Create FurnitureLibraryEditor-version.jar containing Furniture Library Editor classes and resources,
+          and other DLLs and jars -->
+     <jar destfile="FurnitureLibraryEditor-${version}.jar">
+       <manifest>
+         <attribute name="Main-Class" value="com.eteks.furniturelibraryeditor.FurnitureLibraryEditorBootstrap"/>
++        <attribute name="Class-Path" value="/usr/share/java/j3dcore.jar /usr/share/java/j3dutils.jar /usr/share/java/vecmath.jar /usr/share/java/batik-all.jar /usr/share/icedtea-web/netx.jar"/>
+       </manifest>
+       <zipfileset src="build/FurnitureLibraryEditor.jar"/>
++      <!--
+       <fileset dir="../SweetHome3D/lib">
+         <include name="windows/**/*.dll"/>
+         <include name="linux/**/*.so"/>
+@@ -166,7 +174,7 @@
+         <include name="THIRDPARTY-LICENSE-JAVA3D.TXT"/>
+         <include name="THIRDPARTY-LICENSE-TANGO.TXT"/>
+         <include name="THIRDPARTY-LICENSE-CONTRIBUTIONS.TXT"/>
+-      </fileset>
++      </fileset>-->
+     </jar>
+  
+     <!-- Clean build directory -->
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..5879227
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+build.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/sweethome3d-furniture-editor.git



More information about the pkg-java-commits mailing list