summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inputmethod/ibus/Makefile3
-rw-r--r--inputmethod/ibus/distinfo3
-rw-r--r--inputmethod/ibus/patches/patch-setup_i18n.py28
3 files changed, 32 insertions, 2 deletions
diff --git a/inputmethod/ibus/Makefile b/inputmethod/ibus/Makefile
index 8c5e0acd988..a463a72690d 100644
--- a/inputmethod/ibus/Makefile
+++ b/inputmethod/ibus/Makefile
@@ -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 --git a/inputmethod/ibus/distinfo b/inputmethod/ibus/distinfo
index eaae5f911b5..5017e66bb6a 100644
--- a/inputmethod/ibus/distinfo
+++ b/inputmethod/ibus/distinfo
@@ -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 --git a/inputmethod/ibus/patches/patch-setup_i18n.py b/inputmethod/ibus/patches/patch-setup_i18n.py
new file mode 100644
index 00000000000..910980eaba4
--- /dev/null
+++ b/inputmethod/ibus/patches/patch-setup_i18n.py
@@ -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")