summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2009-07-20 23:10:36 +0000
committerGilles Dartiguelongue <eva@gentoo.org>2009-07-20 23:10:36 +0000
commit012c1a3779cbe116d00d73563fe4b30eb2bd7b0e (patch)
tree77511a03f54a911ba0f225375942e6ba05184293 /gnome-base
parentold (diff)
downloadgentoo-2-012c1a3779cbe116d00d73563fe4b30eb2bd7b0e.tar.gz
gentoo-2-012c1a3779cbe116d00d73563fe4b30eb2bd7b0e.tar.bz2
gentoo-2-012c1a3779cbe116d00d73563fe4b30eb2bd7b0e.zip
Fix libxklavier-4 support.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'gnome-base')
-rw-r--r--gnome-base/gdm/ChangeLog6
-rw-r--r--gnome-base/gdm/files/gdm-2.26.1-libxklavier4.patch50
-rw-r--r--gnome-base/gdm/gdm-2.26.1.ebuild7
3 files changed, 59 insertions, 4 deletions
diff --git a/gnome-base/gdm/ChangeLog b/gnome-base/gdm/ChangeLog
index 86f164520803..84b88d6570fd 100644
--- a/gnome-base/gdm/ChangeLog
+++ b/gnome-base/gdm/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for gnome-base/gdm
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.299 2009/06/19 18:36:48 nirbheek Exp $
+# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.300 2009/07/20 23:10:36 eva Exp $
+
+ 20 Jul 2009; Gilles Dartiguelongue <eva@gentoo.org> gdm-2.26.1.ebuild,
+ +files/gdm-2.26.1-libxklavier4.patch:
+ Fix libxklavier-4 support.
19 Jun 2009; <nirbheek@gentoo.org> gdm-2.26.1.ebuild:
Remove gksu dep -- bug 274483
diff --git a/gnome-base/gdm/files/gdm-2.26.1-libxklavier4.patch b/gnome-base/gdm/files/gdm-2.26.1-libxklavier4.patch
new file mode 100644
index 000000000000..6f665b7660cc
--- /dev/null
+++ b/gnome-base/gdm/files/gdm-2.26.1-libxklavier4.patch
@@ -0,0 +1,50 @@
+From 90267c7f7afc73b27193632ec4af2c5360fab85a Mon Sep 17 00:00:00 2001
+From: Gilles Dartiguelongue <eva@gentoo.org>
+Date: Tue, 21 Jul 2009 00:56:37 +0200
+Subject: [PATCH] Add support for libxklavier-4
+
+---
+ configure.ac | 10 +++++++---
+ gui/simple-greeter/gdm-layouts.c | 4 ++++
+ 2 files changed, 11 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index d4a44d5..068e45c 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -114,9 +114,13 @@ AC_ARG_ENABLE([libxklavier],
+ have_libxklavier=no
+ if test "x$enable_libxklavier" = "xyes"; then
+ PKG_CHECK_MODULES(LIBXKLAVIER,
+- libxklavier >= $LIBXKLAVIER_REQUIRED_VERSION,
+- have_libxklavier=yes,
+- have_libxklavier=no)
++ libxklavier >= 4,
++ [AC_DEFINE(HAVE_XKL_4, [1], [lixklavier-4 support])
++ have_libxklavier=yes],
++ [PKG_CHECK_MODULES(LIBXKLAVIER,
++ libxklavier >= $LIBXKLAVIER_REQUIRED_VERSION,
++ have_libxklavier=yes,
++ have_libxklavier=no)])
+ if test "x$have_libxklavier" = "xyes" ; then
+ AC_DEFINE(HAVE_LIBXKLAVIER, [], [Define if we have libxklavier])
+ fi
+diff --git a/gui/simple-greeter/gdm-layouts.c b/gui/simple-greeter/gdm-layouts.c
+index dc35094..97e1e08 100644
+--- a/gui/simple-greeter/gdm-layouts.c
++++ b/gui/simple-greeter/gdm-layouts.c
+@@ -52,7 +52,11 @@ init_xkl (void)
+ engine = xkl_engine_get_instance (GDK_DISPLAY ());
+ xkl_engine_backup_names_prop (engine);
+ config_registry = xkl_config_registry_get_instance (engine);
++#if HAVE_XKL_4
++ xkl_config_registry_load (config_registry, FALSE);
++#else
+ xkl_config_registry_load (config_registry);
++#endif
+
+ initial_config = xkl_config_rec_new ();
+ if (!xkl_config_rec_get_from_backup (initial_config, engine)) {
+--
+1.6.3.3
+
diff --git a/gnome-base/gdm/gdm-2.26.1.ebuild b/gnome-base/gdm/gdm-2.26.1.ebuild
index af7120021f39..8156033810f6 100644
--- a/gnome-base/gdm/gdm-2.26.1.ebuild
+++ b/gnome-base/gdm/gdm-2.26.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/gdm-2.26.1.ebuild,v 1.3 2009/06/19 18:36:48 nirbheek Exp $
+# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/gdm-2.26.1.ebuild,v 1.4 2009/07/20 23:10:36 eva Exp $
EAPI="2"
@@ -114,9 +114,10 @@ src_prepare() {
# Fix libxklavier automagic support
epatch "${WORKDIR}/${PN}-2.26.1-automagic-libxklavier-support.patch"
- # Fix intltoolize broken file, see upstream #577133
- sed "s:'\^\$\$lang\$\$':\^\$\$lang\$\$:g" -i po/Makefile.in.in || die "sed 2 failed"
+ # Fix libxklavier-4 support
+ epatch "${FILESDIR}/${PN}-2.26.1-libxklavier4.patch"
+ intltoolize --force --copy --automake || die "intltoolize failed"
eautoreconf
}