diff options
author | Rene Wagner <rw@handhelds.org> | 2006-11-01 22:56:37 +0100 |
---|---|---|
committer | Rene Wagner <rw@handhelds.org> | 2006-11-01 22:56:37 +0100 |
commit | 2e763870f4634886b65fc0fbb8c4c8366162ab24 (patch) | |
tree | 9d95deaba86ffaa5e45835d78d16762fab54116e /org.handhelds.familiar/packages | |
parent | b492863e15325032f4734aec08209761b8fff5ac (diff) |
Add libgtk-java and libglade-java
Signed-off-by: Rene Wagner <rw@handhelds.org>
Diffstat (limited to 'org.handhelds.familiar/packages')
4 files changed, 93 insertions, 0 deletions
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 index 0000000..53bbfff --- /dev/null +++ b/org.handhelds.familiar/packages/java-gnome/libglade-java_2.10.1.bb @@ -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 index 0000000..6087e62 --- /dev/null +++ b/org.handhelds.familiar/packages/java-gnome/libgtk-java/pc.patch @@ -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@
+ classpath=@INSTALLED_CLASSPATH@
+ macro_dir=@INSTALLED_MACRO_DIR@
+-jnilibs=-L@libdir@ -lgtkjni
+-Libs: -L@libdir@ -lgtkjava
+-Cflags: -I@includedir@/libgtk-java
++jnilibs=-L${libdir} -lgtkjni
++Libs: -L${libdir} -lgtkjava
++Cflags: -I${includedir}/libgtk-java
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 index 0000000..0db37f0 --- /dev/null +++ b/org.handhelds.familiar/packages/java-gnome/libgtk-java/textbuffer.patch @@ -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 index 0000000..59a5a55 --- /dev/null +++ b/org.handhelds.familiar/packages/java-gnome/libgtk-java_2.6.2.bb @@ -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 +} |