summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantiago M. Mola <coldwind@gentoo.org>2008-03-31 14:24:55 +0000
committerSantiago M. Mola <coldwind@gentoo.org>2008-03-31 14:24:55 +0000
commit92d75f3f54ccf525d76cdd9b306cd6ab74779a0f (patch)
tree4fdfa6eb4f6b9b5d1c4a4969643a5b997d0c24ec /net-p2p/nicotine+
parentinclude the exact command executed in the log (diff)
downloadgentoo-2-92d75f3f54ccf525d76cdd9b306cd6ab74779a0f.tar.gz
gentoo-2-92d75f3f54ccf525d76cdd9b306cd6ab74779a0f.tar.bz2
gentoo-2-92d75f3f54ccf525d76cdd9b306cd6ab74779a0f.zip
Locale handling fixed, bug #197835
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-p2p/nicotine+')
-rw-r--r--net-p2p/nicotine+/ChangeLog10
-rw-r--r--net-p2p/nicotine+/files/nicotine+-1.2.9-locale-handling.patch70
-rw-r--r--net-p2p/nicotine+/nicotine+-1.2.9-r1.ebuild51
3 files changed, 129 insertions, 2 deletions
diff --git a/net-p2p/nicotine+/ChangeLog b/net-p2p/nicotine+/ChangeLog
index ba5e822ae324..1503ef55521d 100644
--- a/net-p2p/nicotine+/ChangeLog
+++ b/net-p2p/nicotine+/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-p2p/nicotine+
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/nicotine+/ChangeLog,v 1.27 2007/11/18 10:59:00 armin76 Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/nicotine+/ChangeLog,v 1.28 2008/03/31 14:24:54 coldwind Exp $
+
+*nicotine+-1.2.9-r1 (31 Mar 2008)
+
+ 31 Mar 2008; Santiago M. Mola <coldwind@gentoo.org>
+ +files/nicotine+-1.2.9-locale-handling.patch, +nicotine+-1.2.9-r1.ebuild:
+ Locale handling fixed, bug #197835
18 Nov 2007; Raúl Porcel <armin76@gentoo.org> nicotine+-1.2.9.ebuild:
Revert to ~arch, has open bugs
diff --git a/net-p2p/nicotine+/files/nicotine+-1.2.9-locale-handling.patch b/net-p2p/nicotine+/files/nicotine+-1.2.9-locale-handling.patch
new file mode 100644
index 000000000000..2777b1eec861
--- /dev/null
+++ b/net-p2p/nicotine+/files/nicotine+-1.2.9-locale-handling.patch
@@ -0,0 +1,70 @@
+diff -ur nicotine+-1.2.9.orig/pynicotine/gtkgui/frame.py nicotine+-1.2.9/pynicotine/gtkgui/frame.py
+--- nicotine+-1.2.9.orig/pynicotine/gtkgui/frame.py 2007-12-04 10:33:57.000000000 +0100
++++ nicotine+-1.2.9/pynicotine/gtkgui/frame.py 2007-12-04 10:40:31.000000000 +0100
+@@ -947,20 +947,8 @@
+
+ for widget in self.BuddiesComboEntries:
+ gobject.idle_add(widget.Fill)
+-
+- def getTabPosition(self, string):
+- if string == "top":
+- position = gtk.POS_TOP
+- elif string == "bottom":
+- position = gtk.POS_BOTTOM
+- elif string == "left":
+- position = gtk.POS_LEFT
+- elif string == "right":
+- position = gtk.POS_RIGHT
+- else:
+- position = gtk.POS_TOP
+- return position
+-
++
++
+ def OnAutoAway(self):
+ if not self.away:
+ self.autoaway = True
+@@ -1675,7 +1663,20 @@
+ message = message.replace(word, filler * len(word))
+
+ return message
+-
++
++ def getTabPosition(self, string):
++ if string in ("Top", "top", _("Top")):
++ position = gtk.POS_TOP
++ elif string in ("Bottom", "bottom", _("Bottom")):
++ position = gtk.POS_BOTTOM
++ elif string in ("Left", "left", _("Left")):
++ position = gtk.POS_LEFT
++ elif string in ("Right", "right", _("Right")):
++ position = gtk.POS_RIGHT
++ else:
++ position = gtk.POS_TOP
++ return position
++
+ def SetTabPositions(self):
+ ui = self.np.config.sections["ui"]
+ self.ChatNotebook.set_tab_pos(self.getTabPosition(ui["tabrooms"]))
+diff -ur nicotine+-1.2.9.orig/pynicotine/gtkgui/settingswindow.py nicotine+-1.2.9/pynicotine/gtkgui/settingswindow.py
+--- nicotine+-1.2.9.orig/pynicotine/gtkgui/settingswindow.py 2007-12-04 10:33:57.000000000 +0100
++++ nicotine+-1.2.9/pynicotine/gtkgui/settingswindow.py 2007-12-04 10:37:06.000000000 +0100
+@@ -1206,12 +1206,12 @@
+ def GetSettings(self):
+ return {
+ "ui": {
+- "tabmain": self.MainPosition.get_active_text().lower(),
+- "tabrooms": self.ChatRoomsPosition.get_active_text().lower(),
+- "tabprivate": self.PrivateChatPosition.get_active_text().lower(),
+- "tabinfo": self.UserInfoPosition.get_active_text().lower(),
+- "tabbrowse": self.UserBrowsePosition.get_active_text().lower(),
+- "tabsearch": self.SearchPosition.get_active_text().lower(),
++ "tabmain": self.MainPosition.get_active_text(),
++ "tabrooms": self.ChatRoomsPosition.get_active_text(),
++ "tabprivate": self.PrivateChatPosition.get_active_text(),
++ "tabinfo": self.UserInfoPosition.get_active_text(),
++ "tabbrowse": self.UserBrowsePosition.get_active_text(),
++ "tabsearch": self.SearchPosition.get_active_text(),
+ "labelmain": self.MainAngleSpin.get_value_as_int(),
+ "labelrooms": self.ChatRoomsAngleSpin.get_value_as_int(),
+ "labelprivate": self.PrivateChatAngleSpin.get_value_as_int(),
diff --git a/net-p2p/nicotine+/nicotine+-1.2.9-r1.ebuild b/net-p2p/nicotine+/nicotine+-1.2.9-r1.ebuild
new file mode 100644
index 000000000000..4558c28356a0
--- /dev/null
+++ b/net-p2p/nicotine+/nicotine+-1.2.9-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/nicotine+/nicotine+-1.2.9-r1.ebuild,v 1.1 2008/03/31 14:24:54 coldwind Exp $
+
+inherit distutils eutils multilib toolchain-funcs
+
+DESCRIPTION="A fork of nicotine, a Soulseek client in Python"
+HOMEPAGE="http://nicotine-plus.sourceforge.net"
+SRC_URI="mirror://sourceforge/nicotine-plus/${P}.tar.bz2"
+LICENSE="GPL-3 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
+IUSE="geoip spell vorbis"
+
+RDEPEND="virtual/python
+ >=dev-python/pygtk-2
+ vorbis? ( >=dev-python/pyvorbis-1.4-r1
+ >=dev-python/pyogg-1 )
+ geoip? ( >=dev-python/geoip-python-0.2.0
+ >=dev-libs/geoip-1.2.1 )
+ spell? ( dev-python/sexy-python )
+ !net-p2p/nicotine"
+
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ >=sys-apps/sed-4"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-locale-handling.patch
+}
+
+src_compile() {
+ distutils_src_compile
+
+ cd "${S}"/trayicon/
+ sed -i -e "s:/lib/:/$(get_libdir)/:" \
+ Makefile.in || die "sed failed"
+ ./autogen.py
+ emake CC="$(tc-getCC)" || die "emake failed"
+}
+
+src_install() {
+ distutils_python_version
+ distutils_src_install --install-lib \
+ /usr/$(get_libdir)/python${PYVER}/site-packages
+
+ cd "${S}"/trayicon/
+ emake DESTDIR="${D}" install || die "emake install failed"
+}