From 307b87971bdc65fbd1acb692befd34cfef72e1c9 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sun, 8 Jan 2006 12:36:35 +0000 Subject: [PATCH] multimedia/quodlibet, i18n problem with quodlibet.mo QuodLibet's .mo [1], quodlibet.mo, is not found by default on FreeBSD. The path of i18ndir is responsible for it. [1] Submitted by: Byung-Hee HWANG PR: ports/91473 Approved by: Chang bom Yoon --- multimedia/quodlibet/Makefile | 2 +- multimedia/quodlibet/files/patch-quodlibet.py | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 multimedia/quodlibet/files/patch-quodlibet.py (limited to 'multimedia/quodlibet') diff --git a/multimedia/quodlibet/Makefile b/multimedia/quodlibet/Makefile index ae5274745d40..d80e6d80123f 100644 --- a/multimedia/quodlibet/Makefile +++ b/multimedia/quodlibet/Makefile @@ -7,7 +7,7 @@ PORTNAME= quodlibet PORTVERSION= 0.16 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= multimedia audio python MASTER_SITES= http://www.sacredchao.net/~piman/software/ diff --git a/multimedia/quodlibet/files/patch-quodlibet.py b/multimedia/quodlibet/files/patch-quodlibet.py new file mode 100644 index 000000000000..aff4cc37f846 --- /dev/null +++ b/multimedia/quodlibet/files/patch-quodlibet.py @@ -0,0 +1,21 @@ +--- quodlibet.py.orig 2005-12-12 15:43:59.000000000 -0700 ++++ quodlibet.py 2006-01-07 11:25:44.773179056 -0700 +@@ -273,15 +273,15 @@ + basedir = os.getcwd() + if basedir.endswith("/share/quodlibet"): + sys.path.append(basedir[:-15] + "lib/quodlibet") +- i18ndir = "/usr/share/locale" ++ i18ndir = "/usr/X11R6/share/locale" + + import locale, gettext, util + try: locale.setlocale(locale.LC_ALL, '') + except: pass + +- gettext.bindtextdomain("quodlibet") ++ gettext.bindtextdomain("quodlibet", i18ndir) + gettext.textdomain("quodlibet") +- util.gettext_install("quodlibet", unicode=True) ++ util.gettext_install("quodlibet", i18ndir, unicode=True) + util.ctypes_init() + + from util import to -- cgit v1.2.3