pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/inputmethod/ibus Add a patch to fix translations fail ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6ac2f5ad4cf3
branches:  trunk
changeset: 603254:6ac2f5ad4cf3
user:      obache <obache%pkgsrc.org@localhost>
date:      Wed May 02 09:11:43 2012 +0000

description:
Add a patch to fix translations fail of ibus-setup.

Bump PKGREVISION.

diffstat:

 inputmethod/ibus/Makefile                    |   3 ++-
 inputmethod/ibus/distinfo                    |   3 ++-
 inputmethod/ibus/patches/patch-setup_i18n.py |  28 ++++++++++++++++++++++++++++
 3 files changed, 32 insertions(+), 2 deletions(-)

diffs (56 lines):

diff -r a660456a220e -r 6ac2f5ad4cf3 inputmethod/ibus/Makefile
--- a/inputmethod/ibus/Makefile Wed May 02 08:26:21 2012 +0000
+++ b/inputmethod/ibus/Makefile Wed May 02 09:11:43 2012 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2012/04/22 13:57:30 obache Exp $
+# $NetBSD: Makefile,v 1.15 2012/05/02 09:11:43 obache Exp $
 #
 
 DISTNAME=      ibus-1.4.1
+PKGREVISION=   1
 CATEGORIES=    inputmethod
 MASTER_SITES=  http://ibus.googlecode.com/files/
 
diff -r a660456a220e -r 6ac2f5ad4cf3 inputmethod/ibus/distinfo
--- a/inputmethod/ibus/distinfo Wed May 02 08:26:21 2012 +0000
+++ b/inputmethod/ibus/distinfo Wed May 02 09:11:43 2012 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.4 2012/04/22 13:57:30 obache Exp $
+$NetBSD: distinfo,v 1.5 2012/05/02 09:11:44 obache Exp $
 
 SHA1 (ibus-1.4.1.tar.gz) = 4cc045553885d35a118ec4b44c2694910209509e
 RMD160 (ibus-1.4.1.tar.gz) = 4003fc9392c59ce35048689aa50a941cfd151cff
 Size (ibus-1.4.1.tar.gz) = 1479412 bytes
+SHA1 (patch-setup_i18n.py) = a132bb392b9b50185fe6e8740e4c74243e730fe6
diff -r a660456a220e -r 6ac2f5ad4cf3 inputmethod/ibus/patches/patch-setup_i18n.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/ibus/patches/patch-setup_i18n.py      Wed May 02 09:11:43 2012 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-setup_i18n.py,v 1.1 2012/05/02 09:11:44 obache Exp $
+
+* fix translations fail
+ http://code.google.com/p/ibus/issues/detail?id=1453
+
+--- setup/i18n.py.orig 2012-02-02 04:54:54.000000000 +0000
++++ setup/i18n.py
+@@ -20,6 +20,7 @@
+ # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+ # Boston, MA  02111-1307  USA
+ 
++import locale
+ import gettext
+ import os
+ 
+@@ -30,5 +31,12 @@ N_ = lambda a: a
+ 
+ def init():
+     localedir = os.getenv("IBUS_LOCALEDIR")
++    # Python's locale module doesn't provide all methods on some
++    # operating systems like FreeBSD
++    try:
++        # for non-standard localedir
++        locale.bindtextdomain(DOMAINNAME, localedir)
++    except AttributeError:
++        pass
+     gettext.bindtextdomain(DOMAINNAME, localedir)
+     gettext.bind_textdomain_codeset(DOMAINNAME, "UTF-8")



Home | Main Index | Thread Index | Old Index