]> pilppa.com Git - familiar-h63xx-build.git/commitdiff
Add libgtk-java and libglade-java
authorRene Wagner <rw@handhelds.org>
Wed, 1 Nov 2006 21:56:37 +0000 (22:56 +0100)
committerRene Wagner <rw@handhelds.org>
Wed, 1 Nov 2006 21:56:37 +0000 (22:56 +0100)
Signed-off-by: Rene Wagner <rw@handhelds.org>
org.handhelds.familiar/packages/java-gnome/libglade-java_2.10.1.bb [new file with mode: 0644]
org.handhelds.familiar/packages/java-gnome/libgtk-java/pc.patch [new file with mode: 0644]
org.handhelds.familiar/packages/java-gnome/libgtk-java/textbuffer.patch [new file with mode: 0644]
org.handhelds.familiar/packages/java-gnome/libgtk-java_2.6.2.bb [new file with mode: 0644]

diff --git a/org.handhelds.familiar/packages/java-gnome/libglade-java_2.10.1.bb b/org.handhelds.familiar/packages/java-gnome/libglade-java_2.10.1.bb
new file mode 100644 (file)
index 0000000..53bbfff
--- /dev/null
@@ -0,0 +1,27 @@
+# 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"
+
diff --git a/org.handhelds.familiar/packages/java-gnome/libgtk-java/pc.patch b/org.handhelds.familiar/packages/java-gnome/libgtk-java/pc.patch
new file mode 100644 (file)
index 0000000..6087e62
--- /dev/null
@@ -0,0 +1,12 @@
+--- 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
diff --git a/org.handhelds.familiar/packages/java-gnome/libgtk-java/textbuffer.patch b/org.handhelds.familiar/packages/java-gnome/libgtk-java/textbuffer.patch
new file mode 100644 (file)
index 0000000..0db37f0
--- /dev/null
@@ -0,0 +1,11 @@
+--- 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);
+ }
diff --git a/org.handhelds.familiar/packages/java-gnome/libgtk-java_2.6.2.bb b/org.handhelds.familiar/packages/java-gnome/libgtk-java_2.6.2.bb
new file mode 100644 (file)
index 0000000..59a5a55
--- /dev/null
@@ -0,0 +1,43 @@
+# 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
+}