summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/base.bbclass2
-rw-r--r--classes/java.bbclass26
-rw-r--r--conf/checksums.ini6
-rw-r--r--conf/distro/chinook-compat.conf2
-rw-r--r--packages/miglayout/miglayout_3.0.3.bb34
-rw-r--r--packages/swt/files/Makefile4
-rw-r--r--packages/swt/files/swt-hildon.patch50
-rw-r--r--packages/swt/swt-gtk.inc2
-rw-r--r--packages/swt/swt3.4-gtk-hildon_3.3+3.4M5.bb7
-rw-r--r--packages/swt/swt3.4-gtk-hildon_3.4.bb (renamed from packages/swt/swt3.4-gtk-hildon_3.3+3.4M3.bb)4
-rw-r--r--packages/swt/swt3.4-gtk_3.3+3.4M3.bb15
-rw-r--r--packages/swt/swt3.4-gtk_3.4.bb (renamed from packages/swt/swt3.4-gtk_3.3+3.4M5.bb)6
12 files changed, 89 insertions, 69 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index ac73e909f8..1a7ef4f143 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -636,7 +636,7 @@ def oe_unpack_file(file, data, url = None):
cmd = 'gzip -dc %s > %s' % (file, efile)
elif file.endswith('.bz2'):
cmd = 'bzip2 -dc %s > %s' % (file, efile)
- elif file.endswith('.zip'):
+ elif file.endswith('.zip') or file.endswith('.jar'):
cmd = 'unzip -q -o'
(type, host, path, user, pswd, parm) = bb.decodeurl(url)
if 'dos' in parm:
diff --git a/classes/java.bbclass b/classes/java.bbclass
index 11a2bf5c0c..620dae79fb 100644
--- a/classes/java.bbclass
+++ b/classes/java.bbclass
@@ -70,19 +70,27 @@ oe_jarinstall() {
oe_makeclasspath() {
# Purpose: Generate a classpath variable from the given Jar file names
- # where the ".jar" has been omitted.
+ # where the ".jar" has been omitted. The string is stored in the script
+ # variable whose name is given in the first argument to this function.
#
- # oe_makeclasspath foo baz bar
- # Prints ${datadir_java}/foo.jar:${datadir_java}/baz.jar:${datadir_java}/bar.jar
- #
- # oe_makeclasspath -s foo baz bar
- # Prints ${STAGING_DATADIR_JAVA}/foo.jar:${STAGING_DATADIR_JAVA}/baz.jar:${STAGING_DATADIR_JAVA}/bar.jar
+ # oe_makeclasspath cp foo baz bar
+ # Stores ${datadir_java}/foo.jar:${datadir_java}/baz.jar:${datadir_java}/bar.jar
+ # in variable "cp".
#
+ # oe_makeclasspath bootcp -s foo baz bar
+ # Stores ${STAGING_DATADIR_JAVA}/foo.jar:${STAGING_DATADIR_JAVA}/baz.jar:${STAGING_DATADIR_JAVA}/bar.jar
+ # in variable "bootcp".
+ #
# Provide the -s at the beginning otherwise strange things happen.
- #
+ # If -s is given the function checks whether the requested jar file exists
+ # and exits with an error message if it cannot be found.
+ #
dir=${datadir_java}
classpath=
delimiter=
+ retval=$1
+
+ shift
while [ "$#" -gt 0 ]; do
case "$1" in
@@ -95,7 +103,7 @@ oe_makeclasspath() {
*)
file=$dir/$1.jar
- if [ ! -f $file ]; then
+ if [ -z "$dir" -a ! -f $file ]; then
oefatal "oe_makeclasspath: Jar file for '$1' not found at $file"
fi
@@ -106,7 +114,7 @@ oe_makeclasspath() {
shift
done
- echo $classpath
+ eval $retval="$classpath"
}
# Creates a simple wrapper script for your Java program.
diff --git a/conf/checksums.ini b/conf/checksums.ini
index 99bc7bae3b..872e6720dc 100644
--- a/conf/checksums.ini
+++ b/conf/checksums.ini
@@ -13306,9 +13306,9 @@ sha256=dd170431235cc419cbe6c40362640927a78dc93e082623709abe1310fe804481
md5=e1f1af8c2add8310d0bbcddc9af523b8
sha256=dd170431235cc419cbe6c40362640927a78dc93e082623709abe1310fe804481
-[http://ftp.wh2.tu-dresden.de/pub/mirrors/eclipse/eclipse/downloads/drops/S-3.4M3-200711012000/swt-3.4M3-gtk-linux-x86.zip]
-md5=9473375f7615814025a5b66ee6a8400d
-sha256=b9eaecd9edc58291c5b2c0d8de6a1ce0677b442d63edccd52dd3080da0bc55dc
+[http://ftp.wh2.tu-dresden.de/pub/mirrors/eclipse/eclipse/downloads/drops/R-3.4-200806172000/swt-3.4-gtk-linux-x86.zip]
+md5=b6bf01aa408377f2fe5f617a4dea1876
+sha256=c913105c740fe9cbbf7ab49f663acf5640b812995c2f9c716294f6b44a3185c4
[http://sylpheed.good-day.net/sylpheed/v2.2/sylpheed-2.2.9.tar.bz2]
md5=45e9e89775613b0afb732fbc11c73d26
diff --git a/conf/distro/chinook-compat.conf b/conf/distro/chinook-compat.conf
index b9d882d5d6..ff6aa1f6a3 100644
--- a/conf/distro/chinook-compat.conf
+++ b/conf/distro/chinook-compat.conf
@@ -185,7 +185,7 @@ PREFERRED_PROVIDER_classpath = "classpath"
PREFERRED_VERSION_classpath = "0.97.2"
PREFERRED_PROVIDER_swt3.4-gtk = "swt3.4-gtk-hildon"
-PREFERRED_VERSION_swt3.4-gtk-hildon = "3.3+3.4M5"
+PREFERRED_VERSION_swt3.4-gtk-hildon = "3.4"
# Does not compile with the CodeSourcery compiler .. :(
#PREFERRED_VERSION_kaffe = "1.1.8+cvs20080120"
diff --git a/packages/miglayout/miglayout_3.0.3.bb b/packages/miglayout/miglayout_3.0.3.bb
new file mode 100644
index 0000000000..2450a7e01f
--- /dev/null
+++ b/packages/miglayout/miglayout_3.0.3.bb
@@ -0,0 +1,34 @@
+DESCRIPTION = "Flexible layout classes for Swing and SWT"
+LICENSE = "BSD"
+
+AUTHOR = "Mikael Grev"
+HOMEPAGE = "http://www.migcalendar.com/miglayout"
+
+SRC_URI = "http://www.migcalendar.com/${PN}/versions/${P}.zip"
+
+S = "${WORKDIR}"
+
+inherit java-library
+
+DEPENDS = "unzip-native fastjar-native classpath swt3.4-gtk"
+
+do_unpackpost() {
+ find -name "*.jar" -exec rm {} \;
+
+ mkdir sources
+ unzip miglayout-src.zip -d sources
+}
+
+addtask unpackpost after do_unpack before do_patch
+
+do_compile() {
+ oe_makeclasspath cp -s swt
+
+ javac \
+ -source 5.0 -sourcepath sources -cp $cp \
+ -d build \
+ `find sources -name "*.java" -and -not -wholename "*demo*"` \
+
+ fastjar -C build -c -f ${JARFILENAME} .
+}
+
diff --git a/packages/swt/files/Makefile b/packages/swt/files/Makefile
index 2eb3557cdd..4835f1410d 100644
--- a/packages/swt/files/Makefile
+++ b/packages/swt/files/Makefile
@@ -5,8 +5,8 @@ CLEANFILES=*.files *.jar *.so* *-stamp
RELEASE=OE_SWT_RELEASE
SONAME_VERSION=OE_SWT_API_VERSION
-GCJ=gcj
-JAR=gjar
+GCJ=false
+JAR=fastjar
JAVAC=javac -classpath .
LDCONFIG=/sbin/ldconfig
LN_S=ln -s
diff --git a/packages/swt/files/swt-hildon.patch b/packages/swt/files/swt-hildon.patch
index 5f095e08fc..90ceb1ee0e 100644
--- a/packages/swt/files/swt-hildon.patch
+++ b/packages/swt/files/swt-hildon.patch
@@ -1,7 +1,7 @@
-Index: swt/swt-source/make_linux.mak
+Index: swt-source/make_linux.mak
===================================================================
---- swt.orig/swt-source/make_linux.mak 2007-06-20 12:01:22.000000000 +0200
-+++ swt/swt-source/make_linux.mak 2008-02-14 11:32:49.000000000 +0100
+--- swt-source.orig/make_linux.mak 2007-06-20 12:01:22.000000000 +0200
++++ swt-source/make_linux.mak 2008-10-08 01:36:56.000000000 +0200
@@ -45,8 +45,8 @@
CAIROLIBS = `pkg-config --libs-only-L cairo` -lcairo
@@ -31,10 +31,10 @@ Index: swt/swt-source/make_linux.mak
-fPIC \
${SWT_PTR_CFLAGS}
LIBS = -shared -fPIC
-Index: swt/swt-source/os.c
+Index: swt-source/os.c
===================================================================
---- swt.orig/swt-source/os.c 2007-10-30 16:24:28.000000000 +0100
-+++ swt/swt-source/os.c 2008-02-14 09:32:49.000000000 +0100
+--- swt-source.orig/os.c 2008-06-05 13:31:52.000000000 +0200
++++ swt-source/os.c 2008-10-08 01:36:56.000000000 +0200
@@ -17,6 +17,9 @@
#include "os_structs.h"
#include "os_stats.h"
@@ -45,7 +45,7 @@ Index: swt/swt-source/os.c
#define OS_NATIVE(func) Java_org_eclipse_swt_internal_gtk_OS_##func
#ifndef NO_Call
-@@ -7015,9 +7018,18 @@
+@@ -7133,9 +7136,18 @@
JNIEXPORT void JNICALL OS_NATIVE(_1gtk_1container_1add)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
@@ -66,7 +66,7 @@ Index: swt/swt-source/os.c
}
#endif
-@@ -9121,9 +9133,12 @@
+@@ -9375,9 +9387,12 @@
JNIEXPORT jint JNICALL OS_NATIVE(_1gtk_1menu_1bar_1new)
(JNIEnv *env, jclass that)
{
@@ -80,7 +80,7 @@ Index: swt/swt-source/os.c
OS_NATIVE_EXIT(env, that, _1gtk_1menu_1bar_1new_FUNC);
return rc;
}
-@@ -15464,8 +15479,23 @@
+@@ -15849,8 +15864,23 @@
(JNIEnv *env, jclass that, jint arg0)
{
jint rc = 0;
@@ -105,11 +105,11 @@ Index: swt/swt-source/os.c
OS_NATIVE_EXIT(env, that, _1gtk_1window_1new_FUNC);
return rc;
}
-Index: swt/swt-source/org/eclipse/swt/widgets/Menu.java
+Index: swt-source/org/eclipse/swt/widgets/Menu.java
===================================================================
---- swt.orig/swt-source/org/eclipse/swt/widgets/Menu.java 2007-05-31 18:03:50.000000000 +0200
-+++ swt/swt-source/org/eclipse/swt/widgets/Menu.java 2008-02-14 09:05:04.000000000 +0100
-@@ -259,9 +259,17 @@
+--- swt-source.orig/org/eclipse/swt/widgets/Menu.java 2008-06-05 13:31:08.000000000 +0200
++++ swt-source/org/eclipse/swt/widgets/Menu.java 2008-10-08 01:36:56.000000000 +0200
+@@ -287,9 +287,17 @@
if ((style & SWT.BAR) != 0) {
handle = OS.gtk_menu_bar_new ();
if (handle == 0) error (SWT.ERROR_NO_HANDLES);
@@ -127,11 +127,11 @@ Index: swt/swt-source/org/eclipse/swt/widgets/Menu.java
} else {
handle = OS.gtk_menu_new ();
if (handle == 0) error (SWT.ERROR_NO_HANDLES);
-Index: swt/swt-source/org/eclipse/swt/internal/gtk/OS.java
+Index: swt-source/org/eclipse/swt/internal/gtk/OS.java
===================================================================
---- swt.orig/swt-source/org/eclipse/swt/internal/gtk/OS.java 2007-10-30 16:06:36.000000000 +0100
-+++ swt/swt-source/org/eclipse/swt/internal/gtk/OS.java 2008-02-14 09:05:04.000000000 +0100
-@@ -471,6 +471,11 @@
+--- swt-source.orig/org/eclipse/swt/internal/gtk/OS.java 2008-06-05 13:32:08.000000000 +0200
++++ swt-source/org/eclipse/swt/internal/gtk/OS.java 2008-10-08 01:36:56.000000000 +0200
+@@ -473,6 +473,11 @@
public static final byte[] window_state_event = ascii("window-state-event");
/** Properties */
@@ -143,11 +143,11 @@ Index: swt/swt-source/org/eclipse/swt/internal/gtk/OS.java
public static final byte[] active = ascii("active");
public static final byte[] background_gdk = ascii("background-gdk");
public static final byte[] button_relief = ascii("button-relief");
-Index: swt/swt-source/org/eclipse/swt/widgets/Shell.java
+Index: swt-source/org/eclipse/swt/widgets/Shell.java
===================================================================
---- swt.orig/swt-source/org/eclipse/swt/widgets/Shell.java 2007-11-01 11:31:12.000000000 +0100
-+++ swt/swt-source/org/eclipse/swt/widgets/Shell.java 2008-02-14 10:51:37.000000000 +0100
-@@ -1028,6 +1028,14 @@
+--- swt-source.orig/org/eclipse/swt/widgets/Shell.java 2008-06-05 13:31:10.000000000 +0200
++++ swt-source/org/eclipse/swt/widgets/Shell.java 2008-10-08 01:36:56.000000000 +0200
+@@ -1067,6 +1067,14 @@
int /*long*/ gtk_size_allocate (int /*long*/ widget, int /*long*/ allocation) {
int width = OS.GTK_WIDGET_WIDTH (shellHandle);
int height = OS.GTK_WIDGET_HEIGHT (shellHandle);
@@ -162,7 +162,7 @@ Index: swt/swt-source/org/eclipse/swt/widgets/Shell.java
if (!resized || oldWidth != width || oldHeight != height) {
oldWidth = width;
oldHeight = height;
-@@ -1384,14 +1392,53 @@
+@@ -1472,14 +1480,53 @@
if ((state & FOREIGN_HANDLE) != 0) return;
Monitor monitor = getMonitor ();
Rectangle rect = monitor.getClientArea ();
@@ -216,10 +216,10 @@ Index: swt/swt-source/org/eclipse/swt/widgets/Shell.java
public void setMaximized (boolean maximized) {
checkWidget();
super.setMaximized (maximized);
-Index: swt/swt-source/os_custom.c
+Index: swt-source/os_custom.c
===================================================================
---- swt.orig/swt-source/os_custom.c 2007-05-31 18:04:22.000000000 +0200
-+++ swt/swt-source/os_custom.c 2008-02-14 13:55:49.000000000 +0100
+--- swt-source.orig/os_custom.c 2008-06-05 13:31:50.000000000 +0200
++++ swt-source/os_custom.c 2008-10-08 01:36:56.000000000 +0200
@@ -13,6 +13,8 @@
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/packages/swt/swt-gtk.inc b/packages/swt/swt-gtk.inc
index 0bdaaab932..a5e62b7155 100644
--- a/packages/swt/swt-gtk.inc
+++ b/packages/swt/swt-gtk.inc
@@ -3,7 +3,7 @@ LICENSE = "CPL MPL LGPL"
inherit java-library
-DEPENDS = "classpath-tools-native cairo gtk+ atk libxtst"
+DEPENDS = "fastjar-native cairo gtk+ atk libxtst"
S = "${WORKDIR}/swt-source"
diff --git a/packages/swt/swt3.4-gtk-hildon_3.3+3.4M5.bb b/packages/swt/swt3.4-gtk-hildon_3.3+3.4M5.bb
deleted file mode 100644
index 9a74844f59..0000000000
--- a/packages/swt/swt3.4-gtk-hildon_3.3+3.4M5.bb
+++ /dev/null
@@ -1,7 +0,0 @@
-require swt3.4-gtk_${PV}.bb
-
-PR = "r1"
-
-DEPENDS += "libhildon libhildonfm"
-
-SRC_URI += "file://swt-hildon.patch;patch=1;pnum=2"
diff --git a/packages/swt/swt3.4-gtk-hildon_3.3+3.4M3.bb b/packages/swt/swt3.4-gtk-hildon_3.4.bb
index 7033d0c854..667e516fa0 100644
--- a/packages/swt/swt3.4-gtk-hildon_3.3+3.4M3.bb
+++ b/packages/swt/swt3.4-gtk-hildon_3.4.bb
@@ -1,7 +1,7 @@
require swt3.4-gtk_${PV}.bb
-PR = "r3"
+PR = "r0"
DEPENDS += "libhildon libhildonfm"
-SRC_URI += "file://swt-hildon.patch;patch=1;pnum=2"
+SRC_URI += "file://swt-hildon.patch;patch=1"
diff --git a/packages/swt/swt3.4-gtk_3.3+3.4M3.bb b/packages/swt/swt3.4-gtk_3.3+3.4M3.bb
deleted file mode 100644
index eda136b329..0000000000
--- a/packages/swt/swt3.4-gtk_3.3+3.4M3.bb
+++ /dev/null
@@ -1,15 +0,0 @@
-require swt-gtk.inc
-
-PR = "r1"
-
-SRC_URI = "http://ftp.wh2.tu-dresden.de/pub/mirrors/eclipse/eclipse/downloads/drops/S-3.4M3-200711012000/swt-3.4M3-gtk-linux-x86.zip \
- file://Makefile \
- file://make_linux-fix.patch;patch=1"
-
-# A number which is used by SWT to mark the shared libraries.
-SWTVERSION = "3416"
-SWT_API_VERSION = "3.4"
-
-PROVIDES = "swt3.4-gtk"
-
-RCONFLICTS = "libswt3.3-gtk-java"
diff --git a/packages/swt/swt3.4-gtk_3.3+3.4M5.bb b/packages/swt/swt3.4-gtk_3.4.bb
index 4cdd7c0f94..b6eafcad8c 100644
--- a/packages/swt/swt3.4-gtk_3.3+3.4M5.bb
+++ b/packages/swt/swt3.4-gtk_3.4.bb
@@ -1,12 +1,12 @@
require swt-gtk.inc
-PR = "r1"
+PR = "r0"
-SRC_URI = "http://ftp.wh2.tu-dresden.de/pub/mirrors/eclipse/eclipse/downloads/drops/S-3.4M5-200802071530/swt-3.4M5-gtk-linux-x86.zip \
+SRC_URI = "http://ftp.wh2.tu-dresden.de/pub/mirrors/eclipse/eclipse/downloads/drops/R-3.4-200806172000/swt-3.4-gtk-linux-x86.zip \
file://Makefile"
# A number which is used by SWT to mark the shared libraries.
-SWTVERSION = "3428"
+SWTVERSION = "3448"
SWT_API_VERSION = "3.4"
PROVIDES = "swt3.4-gtk"