File: eclipse-build.dpatch

package info (click to toggle)
eclipse 3.2.1-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 54,216 kB
  • ctags: 71
  • sloc: sh: 8,046; makefile: 496
file content (59 lines) | stat: -rw-r--r-- 2,079 bytes parent folder | download
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
#! /bin/sh -e
##
## DP: Debian specific patch, converted from eclipse-build.patch

[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"

if [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
    -patch)
	patch $patch_opts -p0 < $0;;
    -unpatch)
	patch $patch_opts -p0 -R < $0;;
    *)
	echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
	exit 1;;
esac
exit 0

@DPATCH@
diff -r -u source-tree.orig/build.xml source-tree/build.xml
--- source-tree.orig/build.xml	2006-10-28 11:34:45.000000000 +0200
+++ source-tree/build.xml	2006-10-28 12:11:13.000000000 +0200
@@ -95,6 +95,21 @@
 			<arg line="build.sh" />
 		</exec>
 		<move file="${launcherlibs}/library/${installWs}/eclipse" todir="${launcherlibs}/" />
+
+		<delete dir="${launcherlibs}/library"/>
+
+		<!-- Copy icon for un-supported platforms -->
+		<copy file="features/org.eclipse.platform.launchers/bin/gtk/linux/x86/icon.xpm" todir="${launcherlibs}/"/>
+
+		<!-- Build JNI libs -->
+		<!-- liblocalfile -->
+		<exec dir="plugins/org.eclipse.core.filesystem/natives/unix/linux" executable="make" failonerror="true"/>
+		<move file="plugins/org.eclipse.core.filesystem/natives/unix/linux/liblocalfile_1_0_0.so" 
+			 todir="plugins/org.eclipse.core.filesystem.linux.${installArch}/os/linux/${installArch}">
+		    </move>
+		<!-- and libupdate -->
+		<ant dir="plugins/org.eclipse.update.core.linux/src" antfile="build.xml" />
+
 	</target>
 
 
@@ -265,8 +280,8 @@
 			<os family="mac" />
 		</condition>
 		<property name="bootclasspath" refid="default.bootclasspath" />
-		<property name="J2SE-1.5" refid="java5.bootclasspath" />
-		<property name="javadoc1.5" value="${java5.home}/bin/javadoc" />
+		<!-- <property name="J2SE-1.5" refid="java5.bootclasspath" />
+		<property name="javadoc1.5" value="${java5.home}/bin/javadoc" /> -->
 
 		<!--set the compiler and compiler arguments-->
 		<!--the default compiler is set to the one used by eclipse rel. eng. -->