diff options
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/devhelp/devhelp_0.23.bb | 16 | ||||
-rw-r--r-- | recipes/devhelp/files/devhelp-includes.patch | 12 | ||||
-rw-r--r-- | recipes/devhelp/files/devhelp-webkit.patch | 71 |
3 files changed, 99 insertions, 0 deletions
diff --git a/recipes/devhelp/devhelp_0.23.bb b/recipes/devhelp/devhelp_0.23.bb new file mode 100644 index 0000000000..4cfcecea01 --- /dev/null +++ b/recipes/devhelp/devhelp_0.23.bb @@ -0,0 +1,16 @@ +DESCRIPTION = "API documentation browser for GTK+ and GNOME" +HOMEPAGE = "http://live.gnome.org/devhelp" +DEPENDS = "gconf glib-2.0 gtk+ libwnck webkit-gtk zlib" +PR = "r0" + +inherit gnome + +SRC_URI += "file://devhelp-includes.patch;patch=1 \ + file://devhelp-webkit.patch;patch=1" + +PACKAGES += "gedit-plugin-${PN}" +FILES_gedit-plugin-${PN} += "${libdir}/gedit-2" + +do_stage() { + autotools_stage_all +} diff --git a/recipes/devhelp/files/devhelp-includes.patch b/recipes/devhelp/files/devhelp-includes.patch new file mode 100644 index 0000000000..154dd8dac9 --- /dev/null +++ b/recipes/devhelp/files/devhelp-includes.patch @@ -0,0 +1,12 @@ +g_mapped_file_free() is deprecated since glib-2.22. +================================================================================ +--- devhelp-0.23/src/Makefile.am ++++ devhelp-0.23/src/Makefile.am +@@ -6,7 +6,6 @@ + -DLOCALEDIR=\""$(datadir)/locale"\" \ + -DDATADIR=\""$(datadir)"\" \ + -DG_LOG_DOMAIN=\"Devhelp\" \ +- -DG_DISABLE_DEPRECATED \ + -DGDK_DISABLE_DEPRECATED \ + -DGTK_DISABLE_DEPRECATED \ + -DG_DISABLE_SINGLE_INCLUDES \ diff --git a/recipes/devhelp/files/devhelp-webkit.patch b/recipes/devhelp/files/devhelp-webkit.patch new file mode 100644 index 0000000000..5ba3f3d5a8 --- /dev/null +++ b/recipes/devhelp/files/devhelp-webkit.patch @@ -0,0 +1,71 @@ +http://bugzilla.gnome.org/show_bug.cgi?id=586559 +Comment #6 from Daniel Macks (reporter, points: 15) +2009-07-15 17:27 UTC [reply] + +Created an attachment (id=138458) [edit] +Prepend file:// + +Here's the patch we're using in fink. Not "complete" (only minimal change to +work, not *every* use of webkit_web_view_open()) and doesn't resolve the +inconsistent meaning of "uri", but also doesn't change anything in webkit lib +API or behavior so no interface chaos (unlike webkit:) + +diff -Nurd -x'*~' devhelp-0.23.orig/src/dh-window.c devhelp-0.23/src/dh-window.c +--- devhelp-0.23.orig/src/dh-window.c 2008-11-28 10:56:04.000000000 -0500 ++++ devhelp-0.23/src/dh-window.c 2009-07-08 03:36:23.000000000 -0400 +@@ -133,6 +133,20 @@ + #define GET_PRIVATE(instance) G_TYPE_INSTANCE_GET_PRIVATE \ + (instance, DH_TYPE_WINDOW, DhWindowPriv); + ++ ++static void ++_webkit_web_view_open_compat (WebKitWebView *view, ++ const gchar *uri) ++{ ++ gchar *real_uri; ++ if (g_path_is_absolute(uri)) ++ real_uri = g_strdup_printf ("file://%s", uri); ++ else ++ real_uri = g_strdup (uri); ++ webkit_web_view_load_uri (view, real_uri); ++ g_free(real_uri); ++} ++ + static void + window_activate_new_window (GtkAction *action, + DhWindow *window) +@@ -803,7 +817,7 @@ + window); + + uri = dh_link_get_uri (link); +- webkit_web_view_open (view, uri); ++ _webkit_web_view_open_compat (view, uri); + g_free (uri); + + g_signal_handlers_unblock_by_func (view, +@@ -827,7 +841,7 @@ + view = window_get_active_web_view (window); + + uri = dh_link_get_uri (link); +- webkit_web_view_open (view, uri); ++ _webkit_web_view_open_compat (view, uri); + g_free (uri); + + window_check_history (window, view); +@@ -1093,7 +1107,7 @@ + } + + if (location) { +- webkit_web_view_open (WEBKIT_WEB_VIEW (view), location); ++ _webkit_web_view_open_compat (WEBKIT_WEB_VIEW (view), location); + } else { + webkit_web_view_open (WEBKIT_WEB_VIEW (view), "about:blank"); + } +@@ -1357,6 +1371,6 @@ + priv = window->priv; + + web_view = window_get_active_web_view (window); +- webkit_web_view_open (web_view, uri); ++ _webkit_web_view_open_compat (web_view, uri); + dh_book_tree_select_uri (DH_BOOK_TREE (priv->book_tree), uri); + } |