gtkhtml-3.8_3.12.3.bb : update gtkhtml with patch stolen from debian for
authorGraeme Gregory <dp@xora.org.uk>
Tue, 25 Mar 2008 03:07:20 +0000 (03:07 +0000)
committerGraeme Gregory <dp@xora.org.uk>
Tue, 25 Mar 2008 03:07:20 +0000 (03:07 +0000)
glib API changes

packages/gtkhtml/gtkhtml-3.8/.mtn2git_empty [new file with mode: 0644]
packages/gtkhtml/gtkhtml-3.8/60_glib-2.15-g-gnuc-function.patch [new file with mode: 0644]
packages/gtkhtml/gtkhtml-3.8_3.12.3.bb [new file with mode: 0644]

diff --git a/packages/gtkhtml/gtkhtml-3.8/.mtn2git_empty b/packages/gtkhtml/gtkhtml-3.8/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/gtkhtml/gtkhtml-3.8/60_glib-2.15-g-gnuc-function.patch b/packages/gtkhtml/gtkhtml-3.8/60_glib-2.15-g-gnuc-function.patch
new file mode 100644 (file)
index 0000000..60e4648
--- /dev/null
@@ -0,0 +1,39 @@
+diff -Nur gtkhtml3.8-3.12.3/src/htmlengine-edit-clueflowstyle.c gtkhtml3.8-3.12.3.new/src/htmlengine-edit-clueflowstyle.c
+--- gtkhtml3.8-3.12.3/src/htmlengine-edit-clueflowstyle.c      2007-01-29 10:50:59.000000000 +0100
++++ gtkhtml3.8-3.12.3.new/src/htmlengine-edit-clueflowstyle.c  2008-02-15 10:07:22.000000000 +0100
+@@ -175,7 +175,7 @@
+       while (p != NULL) {
+               if (HTML_OBJECT_TYPE (obj->parent) != HTML_TYPE_CLUEFLOW) {
+                       g_warning ("(%s:%s)  Eeeek!  Unknown parent type `%s'.",
+-                                 __FILE__, G_GNUC_FUNCTION,
++                                 __FILE__, G_STRFUNC,
+                                  html_type_name (HTML_OBJECT_TYPE (obj->parent)));
+                       break;
+               }
+@@ -209,7 +209,7 @@
+                               /* This should not happen.  */
+                               g_warning ("(%s:%s)  There were not enough paragraphs for "
+                                          "setting the paragraph style.",
+-                                         __FILE__, G_GNUC_FUNCTION);
++                                         __FILE__, G_STRFUNC);
+                               break;
+                       }
+               } while (obj != NULL && HTML_CLUEFLOW (obj->parent) == clueflow);
+@@ -217,7 +217,7 @@
+       if (prop_list == NULL) {
+               /* This should not happen.  */
+-              g_warning ("%s:%s Eeek!  Nothing done?", __FILE__, G_GNUC_FUNCTION);
++              g_warning ("%s:%s Eeek!  Nothing done?", __FILE__, G_STRFUNC);
+               return;
+       }
+@@ -280,7 +280,7 @@
+       while (p != NULL) {
+               if (HTML_OBJECT_TYPE (p->parent) != HTML_TYPE_CLUEFLOW) {
+                       g_warning ("(%s:%s)  Eeeek!  Unknown parent type `%s'.",
+-                                 __FILE__, G_GNUC_FUNCTION,
++                                 __FILE__, G_STRFUNC,
+                                  html_type_name (HTML_OBJECT_TYPE (p->parent)));
+                       break;
+               }
diff --git a/packages/gtkhtml/gtkhtml-3.8_3.12.3.bb b/packages/gtkhtml/gtkhtml-3.8_3.12.3.bb
new file mode 100644 (file)
index 0000000..e8727bd
--- /dev/null
@@ -0,0 +1,29 @@
+DESCRIPTION = "HTML rendering/editing library"
+SECTION = "x11/libs"
+PRIORITY = "optional"
+LICENSE = "GPL"
+DEPENDS = "gtk+ gail libbonoboui libgnomeprintui libgnomeui"
+
+SRC_URI = "${GNOME_MIRROR}/gtkhtml/3.12/gtkhtml-${PV}.tar.bz2 \
+           file://60_glib-2.15-g-gnuc-function.patch;patch=1"
+
+S = "${WORKDIR}/gtkhtml-${PV}"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = "--disable-gtk-doc"
+
+ORBIT_IDL = "${STAGING_BINDIR_NATIVE}/orbit-idl-2"
+
+do_configure_append() {
+        find ${S} -name Makefile | xargs sed -i s:'-I$(includedir)':'-I.':g
+        find ${S} -name Makefile | xargs sed -i s:'-I${prefix}/include':'-I.':g
+        find ${S} -name Makefile | xargs sed -i 's|ORBIT_IDL =.*|ORBIT_IDL = ${ORBIT_IDL}|'
+}
+
+do_stage() {
+       autotools_stage_all
+}
+
+FILES_${PN} += "${datadir}/gtkhtml-3.8"
+