summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2012-05-03 05:05:47 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2012-05-03 05:05:47 +0000
commitd6fa34e2b16f03237ae0c9db4c9e81a06f719bce (patch)
tree10ac547d99270ed180ec6ccacbe1c9b293a74267 /dev-util
parentdev-util/pkgconfig -> virtual/pkgconfig (diff)
downloadgentoo-2-d6fa34e2b16f03237ae0c9db4c9e81a06f719bce.tar.gz
gentoo-2-d6fa34e2b16f03237ae0c9db4c9e81a06f719bce.tar.bz2
gentoo-2-d6fa34e2b16f03237ae0c9db4c9e81a06f719bce.zip
Version bump, now supports globs in search tab. Add patch to use gsettings instead of libgnome's gconf keys for default fonts (bug #396637, thanks to Rafał Mużyło).
(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/devhelp/ChangeLog10
-rw-r--r--dev-util/devhelp/devhelp-3.4.1.ebuild69
-rw-r--r--dev-util/devhelp/files/devhelp-3.4.1-gsettings-fonts.patch114
3 files changed, 192 insertions, 1 deletions
diff --git a/dev-util/devhelp/ChangeLog b/dev-util/devhelp/ChangeLog
index 1cce0dd7196e..b4fbdcf7d25a 100644
--- a/dev-util/devhelp/ChangeLog
+++ b/dev-util/devhelp/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for dev-util/devhelp
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/devhelp/ChangeLog,v 1.130 2012/04/29 15:39:22 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/devhelp/ChangeLog,v 1.131 2012/05/03 05:05:47 tetromino Exp $
+
+*devhelp-3.4.1 (03 May 2012)
+
+ 03 May 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
+ +devhelp-3.4.1.ebuild, +files/devhelp-3.4.1-gsettings-fonts.patch:
+ Version bump, now supports globs in search tab. Add patch to use gsettings
+ instead of libgnome's gconf keys for default fonts (bug #396637, thanks to
+ Rafał Mużyło).
29 Apr 2012; Markus Meier <maekke@gentoo.org> devhelp-3.2.0.ebuild:
x86 stable, bug #410611
diff --git a/dev-util/devhelp/devhelp-3.4.1.ebuild b/dev-util/devhelp/devhelp-3.4.1.ebuild
new file mode 100644
index 000000000000..a896b0f9e9aa
--- /dev/null
+++ b/dev-util/devhelp/devhelp-3.4.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/devhelp/devhelp-3.4.1.ebuild,v 1.1 2012/05/03 05:05:47 tetromino Exp $
+
+EAPI="4"
+GCONF_DEBUG="no"
+GNOME2_LA_PUNT="yes"
+PYTHON_DEPEND="2"
+
+inherit eutils gnome2 python toolchain-funcs
+
+DESCRIPTION="An API documentation browser for GNOME 2"
+HOMEPAGE="http://live.gnome.org/devhelp"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+
+COMMON_DEPEND=">=gnome-base/gconf-2.6:2
+ >=dev-libs/glib-2.25.11:2
+ >=x11-libs/gtk+-3.0.2:3
+ >=net-libs/webkit-gtk-1.6:3"
+RDEPEND="${COMMON_DEPEND}
+ gnome-base/gsettings-desktop-schemas"
+DEPEND="${COMMON_DEPEND}
+ >=sys-devel/gettext-0.17
+ >=dev-util/intltool-0.40
+ >=dev-util/pkgconfig-0.9"
+
+pkg_setup() {
+ DOCS="AUTHORS NEWS README"
+ # ICC is crazy, silence warnings (bug #154010)
+ if [[ $(tc-getCC) == "icc" ]] ; then
+ G2CONF="${G2CONF} --with-compile-warnings=no"
+ fi
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ # Use gsettings-desktop-schemas instead of obsolete libgnome's
+ # /desktop/gnome/interface/* gconf keys for fonts; bug #396637,
+ # https://bugzilla.gnome.org/show_bug.cgi?id=646402
+ epatch "${FILESDIR}/devhelp-3.4.1-gsettings-fonts.patch"
+
+ gnome2_src_prepare
+
+ python_clean_py-compile_files
+}
+
+pkg_preinst() {
+ gnome2_pkg_preinst
+ preserve_old_lib /usr/$(get_libdir)/libdevhelp-2.so.1
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+ python_need_rebuild
+ python_mod_optimize /usr/$(get_libdir)/gedit/plugins
+ # Keep all the notify calls around so that users get reminded to delete them
+ preserve_old_lib_notify /usr/$(get_libdir)/libdevhelp-1.so.1
+ preserve_old_lib_notify /usr/$(get_libdir)/libdevhelp-2.so.1
+}
+
+pkg_postrm() {
+ gnome2_pkg_postrm
+ python_mod_cleanup /usr/$(get_libdir)/gedit/plugins
+}
diff --git a/dev-util/devhelp/files/devhelp-3.4.1-gsettings-fonts.patch b/dev-util/devhelp/files/devhelp-3.4.1-gsettings-fonts.patch
new file mode 100644
index 000000000000..c2d91d372e92
--- /dev/null
+++ b/dev-util/devhelp/files/devhelp-3.4.1-gsettings-fonts.patch
@@ -0,0 +1,114 @@
+From d761ce906fab110d38d9e71d4c25a334d79b9869 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Rafa=C5=82=20Mu=C5=BCy=C5=82o?= <galtgendo@o2.pl>
+Date: Thu, 3 May 2012 00:15:50 -0400
+Subject: [PATCH] stop using obsoleted default keys
+
+https://bugzilla.gnome.org/show_bug.cgi?id=646402
+---
+ src/dh-preferences.c | 36 ++++++++----------------------------
+ src/dh-util.c | 14 ++++++++------
+ 2 files changed, 16 insertions(+), 34 deletions(-)
+
+diff --git a/src/dh-preferences.c b/src/dh-preferences.c
+index 7d75ebf..0f33810 100644
+--- a/src/dh-preferences.c
++++ b/src/dh-preferences.c
+@@ -287,41 +287,21 @@ preferences_connect_conf_listeners (void)
+ }
+ #endif
+
+-/* FIXME: Use the functions in dh-util.c for this. */
+ static void
+ preferences_fonts_get_font_names (gboolean use_system_fonts,
+ gchar **variable,
+ gchar **fixed)
+ {
+- gchar *var_font_name;
+- gchar *fixed_font_name;
+- IgeConf *conf;
+-
+- conf = ige_conf_get ();
++ gchar *name;
++ gdouble size;
+
+- if (use_system_fonts) {
+-#ifdef GDK_WINDOWING_QUARTZ
+- var_font_name = g_strdup ("Lucida Grande 14");
+- fixed_font_name = g_strdup ("Monaco 14");
+-#else
+- ige_conf_get_string (conf,
+- DH_CONF_SYSTEM_VARIABLE_FONT,
+- &var_font_name);
+- ige_conf_get_string (conf,
+- DH_CONF_SYSTEM_FIXED_FONT,
+- &fixed_font_name);
+-#endif
+- } else {
+- ige_conf_get_string (conf,
+- DH_CONF_VARIABLE_FONT,
+- &var_font_name);
+- ige_conf_get_string (conf,
+- DH_CONF_FIXED_FONT,
+- &fixed_font_name);
+- }
++ dh_util_font_get_variable (&name, &size, use_system_fonts);
++ *variable = g_strdup_printf ("%s %u", name, (guint)size);
++ g_free (name);
+
+- *variable = var_font_name;
+- *fixed = fixed_font_name;
++ dh_util_font_get_fixed (&name, &size, use_system_fonts);
++ *fixed = g_strdup_printf ("%s %u", name, (guint)size);
++ g_free (name);
+ }
+
+ static void
+diff --git a/src/dh-util.c b/src/dh-util.c
+index 74312d2..08151a3 100644
+--- a/src/dh-util.c
++++ b/src/dh-util.c
+@@ -603,6 +603,7 @@ dh_util_font_get_variable (gchar **name,
+ {
+ IgeConf *conf;
+ gchar *name_and_size;
++ GSettings *settings;
+
+ conf = ige_conf_get ();
+
+@@ -610,9 +611,9 @@ dh_util_font_get_variable (gchar **name,
+ #ifdef GDK_WINDOWING_QUARTZ
+ name_and_size = g_strdup ("Lucida Grande 14");
+ #else
+- ige_conf_get_string (conf,
+- DH_CONF_SYSTEM_VARIABLE_FONT,
+- &name_and_size);
++ settings = g_settings_new ("org.gnome.desktop.interface");
++ name_and_size = g_settings_get_string (settings, "font-name");
++ g_object_unref (settings);
+ #endif
+ } else {
+ ige_conf_get_string (conf,
+@@ -635,6 +636,7 @@ dh_util_font_get_fixed (gchar **name,
+ {
+ IgeConf *conf;
+ gchar *name_and_size;
++ GSettings *settings;
+
+ conf = ige_conf_get ();
+
+@@ -642,9 +644,9 @@ dh_util_font_get_fixed (gchar **name,
+ #ifdef GDK_WINDOWING_QUARTZ
+ name_and_size = g_strdup ("Monaco 14");
+ #else
+- ige_conf_get_string (conf,
+- DH_CONF_SYSTEM_FIXED_FONT,
+- &name_and_size);
++ settings = g_settings_new ("org.gnome.desktop.interface");
++ name_and_size = g_settings_get_string (settings, "monospace-font-name");
++ g_object_unref (settings);
+ #endif
+ } else {
+ ige_conf_get_string (conf,
+--
+1.7.8.6
+