Wed May 2 09:11:44 2012 UTC ()
Add a patch to fix translations fail of ibus-setup.

Bump PKGREVISION.


(obache)
diff -r1.14 -r1.15 pkgsrc/inputmethod/ibus/Makefile
diff -r1.4 -r1.5 pkgsrc/inputmethod/ibus/distinfo
diff -r0 -r1.1 pkgsrc/inputmethod/ibus/patches/patch-setup_i18n.py

cvs diff -r1.14 -r1.15 pkgsrc/inputmethod/ibus/Makefile (expand / switch to context diff)
--- pkgsrc/inputmethod/ibus/Makefile 2012/04/22 13:57:30 1.14
+++ pkgsrc/inputmethod/ibus/Makefile 2012/05/02 09:11:43 1.15
@@ -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/
 

cvs diff -r1.4 -r1.5 pkgsrc/inputmethod/ibus/distinfo (expand / switch to context diff)
--- pkgsrc/inputmethod/ibus/distinfo 2012/04/22 13:57:30 1.4
+++ pkgsrc/inputmethod/ibus/distinfo 2012/05/02 09:11:44 1.5
@@ -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

File Added: pkgsrc/inputmethod/ibus/patches/Attic/patch-setup_i18n.py
$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")