summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Boshell <leonardop@gentoo.org>2003-09-14 15:47:04 +0000
committerLeonardo Boshell <leonardop@gentoo.org>2003-09-14 15:47:04 +0000
commit5927f5490b3c03d1267c5ec3609118dc7a5aeef1 (patch)
treea9f25abc7dc8ae62a36afd14f21b2a82444d3bc5 /app-editors/gedit
parentVersion bumped. Marked 0.4.0 as stable on x86 (diff)
downloadgentoo-2-5927f5490b3c03d1267c5ec3609118dc7a5aeef1.tar.gz
gentoo-2-5927f5490b3c03d1267c5ec3609118dc7a5aeef1.tar.bz2
gentoo-2-5927f5490b3c03d1267c5ec3609118dc7a5aeef1.zip
patch for bug #28664
Diffstat (limited to 'app-editors/gedit')
-rw-r--r--app-editors/gedit/ChangeLog5
-rw-r--r--app-editors/gedit/files/gedit-2.4.0-fix_LC_ALL.patch29
-rw-r--r--app-editors/gedit/gedit-2.4.0.ebuild10
3 files changed, 42 insertions, 2 deletions
diff --git a/app-editors/gedit/ChangeLog b/app-editors/gedit/ChangeLog
index 4649f43a0819..5624723b82bb 100644
--- a/app-editors/gedit/ChangeLog
+++ b/app-editors/gedit/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-editors/gedit
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/gedit/ChangeLog,v 1.38 2003/09/11 15:08:26 obz Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/gedit/ChangeLog,v 1.39 2003/09/14 15:47:04 leonardop Exp $
+
+ 14 Sep 2003; L. Boshell <leonardop@gentoo.org> gedit-2.4.0.ebuild :
+ Added a patch for bug #28664.
*gedit-2.4.0 (11 Sep 2003)
diff --git a/app-editors/gedit/files/gedit-2.4.0-fix_LC_ALL.patch b/app-editors/gedit/files/gedit-2.4.0-fix_LC_ALL.patch
new file mode 100644
index 000000000000..eb5a6aa81e49
--- /dev/null
+++ b/app-editors/gedit/files/gedit-2.4.0-fix_LC_ALL.patch
@@ -0,0 +1,29 @@
+diff -NurB gedit-2.4.0-orig/gedit/gedit2.c gedit-2.4.0/gedit/gedit2.c
+--- gedit-2.4.0-orig/gedit/gedit2.c 2003-08-22 05:44:01.000000000 -0500
++++ gedit-2.4.0/gedit/gedit2.c 2003-09-14 10:26:06.000000000 -0500
+@@ -32,6 +32,10 @@
+ #include <config.h>
+ #endif
+
++#ifdef HAVE_LOCALE_H
++#include <locale.h>
++#endif
++
+ #include <string.h>
+
+ #include <libgnome/libgnome.h>
+@@ -347,11 +351,13 @@
+ int
+ main (int argc, char **argv)
+ {
+- GnomeProgram *program;
++ GnomeProgram *program;
+ gboolean restored = FALSE;
+ CORBA_Object factory;
+
++#ifdef HAVE_LOCALE_H
+ setlocale (LC_ALL, "");
++#endif
+
+ bindtextdomain (GETTEXT_PACKAGE, GEDIT_LOCALEDIR);
+ textdomain (GETTEXT_PACKAGE);
diff --git a/app-editors/gedit/gedit-2.4.0.ebuild b/app-editors/gedit/gedit-2.4.0.ebuild
index c2fe1c920945..b929d3fdb660 100644
--- a/app-editors/gedit/gedit-2.4.0.ebuild
+++ b/app-editors/gedit/gedit-2.4.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/gedit/gedit-2.4.0.ebuild,v 1.1 2003/09/11 15:08:28 obz Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/gedit/gedit-2.4.0.ebuild,v 1.2 2003/09/14 15:47:04 leonardop Exp $
inherit gnome2
@@ -27,3 +27,11 @@ DEPEND="${RDEPEND}
>=dev-util/intltool-0.25"
DOCS="AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README THANKS TODO"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-2.4.0-fix_LC_ALL.patch
+}
+