summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2013-02-27 01:31:07 +0000
committerSergey Popov <pinkbyte@gentoo.org>2013-02-27 01:31:07 +0000
commita39c1ce55b2ac5f6139466e52ac747f6e453cae8 (patch)
tree1d5f48a6d459825f34a7ae135d6ac938bca5d43c /net-p2p/transmission
parentRemove old versions. (diff)
downloadgentoo-2-a39c1ce55b2ac5f6139466e52ac747f6e453cae8.tar.gz
gentoo-2-a39c1ce55b2ac5f6139466e52ac747f6e453cae8.tar.bz2
gentoo-2-a39c1ce55b2ac5f6139466e52ac747f6e453cae8.zip
Add patch with fixing path for locale-specific files
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)
Diffstat (limited to 'net-p2p/transmission')
-rw-r--r--net-p2p/transmission/ChangeLog6
-rw-r--r--net-p2p/transmission/files/transmission-2.77-translations-path-fix.patch15
-rw-r--r--net-p2p/transmission/transmission-2.77.ebuild5
3 files changed, 24 insertions, 2 deletions
diff --git a/net-p2p/transmission/ChangeLog b/net-p2p/transmission/ChangeLog
index aa915e65c20c..66f927ecbfaf 100644
--- a/net-p2p/transmission/ChangeLog
+++ b/net-p2p/transmission/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-p2p/transmission
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v 1.225 2013/02/26 17:44:24 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v 1.226 2013/02/27 01:31:07 pinkbyte Exp $
+
+ 27 Feb 2013; Sergey Popov <pinkbyte@gentoo.org> transmission-2.77.ebuild,
+ +files/transmission-2.77-translations-path-fix.patch:
+ Add patch with fixing path for locale-specific files
*transmission-2.77 (26 Feb 2013)
diff --git a/net-p2p/transmission/files/transmission-2.77-translations-path-fix.patch b/net-p2p/transmission/files/transmission-2.77-translations-path-fix.patch
new file mode 100644
index 000000000000..70c848f55b3c
--- /dev/null
+++ b/net-p2p/transmission/files/transmission-2.77-translations-path-fix.patch
@@ -0,0 +1,15 @@
+Fix path for finding locale-specific files:
+QCoreApplication::applicationDirPath() transforms to '/usr/bin'
+and locale files are in '/usr/share/qt4/translations'
+
+--- qt/app.cc.orig 2013-02-27 05:23:30.512860807 +0400
++++ qt/app.cc 2013-02-27 05:23:56.424861629 +0400
+@@ -97,7 +97,7 @@
+ installTranslator( &qtTranslator );
+
+ // install the transmission translator
+- appTranslator.load( QString(MY_CONFIG_NAME) + "_" + QLocale::system().name(), QCoreApplication::applicationDirPath() + "/translations" );
++ appTranslator.load( QString(MY_CONFIG_NAME) + "_" + QLocale::system().name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath) );
+ installTranslator( &appTranslator );
+
+ Formatter::initUnits( );
diff --git a/net-p2p/transmission/transmission-2.77.ebuild b/net-p2p/transmission/transmission-2.77.ebuild
index 9630c99a8e4b..173f50969866 100644
--- a/net-p2p/transmission/transmission-2.77.ebuild
+++ b/net-p2p/transmission/transmission-2.77.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/transmission-2.77.ebuild,v 1.1 2013/02/26 17:44:25 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/transmission-2.77.ebuild,v 1.2 2013/02/27 01:31:07 pinkbyte Exp $
EAPI=5
inherit autotools eutils fdo-mime gnome2-utils qt4-r2 user
@@ -56,6 +56,9 @@ src_prepare() {
# http://trac.transmissionbt.com/ticket/4324
sed -i -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' lib${PN}/Makefile.am || die
+ # fix for broken translations path
+ epatch "${FILESDIR}/${P}-translations-path-fix.patch"
+
eautoreconf
}