--- /dev/null
+# libglade-java OE build file
+# Copyright (C) 2006, Rene Wagner. All Rights Reserved
+# Released under the MIT license (see org.handhelds.familiar/COPYING.MIT)
+
+DESCRIPTION = "Glade Java bindings"
+HOMEPAGE = "http://java-gnome.sf.net"
+LICENSE = "LGPL"
+PRIORITY = "optional"
+MAINTAINER = "Rene Wagner <rw@handhelds.org>"
+PR = "r1"
+
+DEPENDS = "libglade libgtk-java"
+RDEPENDS_${PN} = "${PN}-common (>= ${PV})"
+
+inherit gnome java
+
+EXTRA_OECONF = "--without-javadocs --without-gcj-compile --without-gnome"
+
+EXTRA_AUTORECONF += "-I ${STAGING_DATADIR}/aclocal/jg-macros"
+
+PACKAGES =+ "${PN}-common ${PN}-examples"
+
+FILES_${PN} = "${libdir}/lib*so"
+FILES_${PN}-common = "${datadir}/java"
+FILES_${PN}-dev += "${datadir}/${PN}/macros"
+FILES_${PN}-examples = "${datadir}/doc/${PN}/examples"
+
--- /dev/null
+--- libgtk-java-2.6.2.orig/gtk2-java.pc.in 2005-10-20 23:33:20.000000000 +0200
++++ libgtk-java-2.6.2/gtk2-java.pc.in 2005-10-20 23:35:58.000000000 +0200
+@@ -10,6 +10,6 @@
+ api_version=@gtkapiversion@\r
+ classpath=@INSTALLED_CLASSPATH@\r
+ macro_dir=@INSTALLED_MACRO_DIR@\r
+-jnilibs=-L@libdir@ -lgtkjni\r
+-Libs: -L@libdir@ -lgtkjava\r
+-Cflags: -I@includedir@/libgtk-java\r
++jnilibs=-L${libdir} -lgtkjni\r
++Libs: -L${libdir} -lgtkjava\r
++Cflags: -I${includedir}/libgtk-java\r
--- /dev/null
+--- libgtk-java-2.6.2/src/jni/org_gnu_gtk_TextBuffer.c.orig 2005-09-30 22:50:27.000000000 +0200
++++ libgtk-java-2.6.2/src/jni/org_gnu_gtk_TextBuffer.c 2005-09-30 23:55:30.000000000 +0200
+@@ -120,7 +120,7 @@
+ const char *utf = (*env)->GetStringUTFChars(env, text, NULL);
+ jint len = (*env)->GetStringUTFLength(env, text);
+ gtk_text_buffer_insert_at_cursor (buffer_g,
+- (gchar*)utf, (gint32)len);
++ (gchar*)utf, (gint32)len - 1);
+ (*env)->ReleaseStringUTFChars(env, text, utf);
+ }
+
--- /dev/null
+# libgtk-java OE build file
+# Copyright (C) 2006, Rene Wagner. All Rights Reserved
+# Released under the MIT license (see org.handhelds.familiar/COPYING.MIT)
+
+DESCRIPTION = "Gtk+ Java bindings"
+HOMEPAGE = "http://java-gnome.sf.net"
+LICENSE = "LGPL"
+PRIORITY = "optional"
+MAINTAINER = "Rene Wagner <rw@handhelds.org>"
+PR = "r2"
+
+DEPENDS = "glib-2.0 gtk+ libart-lgpl pango"
+RDEPENDS_${PN} = "${PN}-common (>= ${PV})"
+
+inherit gnome java pkgconfig
+
+SRC_URI += "${DEBIAN_MIRROR}/main/libg/${PN}/${PN}_${PV}-1.diff.gz;patch=1 \
+ file://textbuffer.patch;patch=1 \
+ file://pc.patch;patch=1"
+
+EXTRA_OECONF = "--without-javadocs --without-gcj-compile"
+
+PACKAGES =+ "${PN}-common ${PN}-examples"
+
+FILES_${PN} = "${libdir}/lib*so"
+FILES_${PN}-common = "${datadir}/java"
+FILES_${PN}-dev += "${datadir}/${PN}/macros"
+FILES_${PN}-examples = "${datadir}/doc/${PN}/examples"
+
+do_stage () {
+ autotools_stage_all
+
+ install -d ${STAGING_DATADIR}/aclocal/jg-macros
+ for i in macros/*; do
+ install -m 0644 $i ${STAGING_DATADIR}/aclocal/jg-macros/
+ done
+
+ mkdir -p ${STAGING_DATADIR}/java
+ for i in *.jar; do
+ install -m 0644 $i ${STAGING_DATADIR}/java/`basename $i .jar`-${PV}.jar
+ (cd ${STAGING_DATADIR}/java && ln -sf `basename $i .jar`-${PV}.jar $i)
+ done
+}