summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2012-03-21 22:45:58 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2012-03-21 22:45:58 +0000
commitb1141da2408523c1fb92759f539bcaa304cbfe7e (patch)
treebef690931743ccced137232e14eeb8270675728e /games-util/pyfa/files
parentAdd in dependency on app-arch/unzip fixing bug 409123. (diff)
downloadgentoo-2-b1141da2408523c1fb92759f539bcaa304cbfe7e.tar.gz
gentoo-2-b1141da2408523c1fb92759f539bcaa304cbfe7e.tar.bz2
gentoo-2-b1141da2408523c1fb92759f539bcaa304cbfe7e.zip
Pyfa only supports wxpython:2.8. Fix dependency, add patch to select correct slot of wxpython at runtime, and drop broken versions. Thanks to Samuli Suominen for noticing.
(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)
Diffstat (limited to 'games-util/pyfa/files')
-rw-r--r--games-util/pyfa/files/pyfa-1.1.4-wxversion.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/games-util/pyfa/files/pyfa-1.1.4-wxversion.patch b/games-util/pyfa/files/pyfa-1.1.4-wxversion.patch
new file mode 100644
index 000000000000..624068b2bc9d
--- /dev/null
+++ b/games-util/pyfa/files/pyfa-1.1.4-wxversion.patch
@@ -0,0 +1,40 @@
+From 6971971729dbbea1db8c1006c99b1035f30214a2 Mon Sep 17 00:00:00 2001
+From: Alexandre Rostovtsev <tetromino@gentoo.org>
+Date: Wed, 21 Mar 2012 18:24:26 -0400
+Subject: [PATCH] Use wxversion.select('2.8') to support systems that have
+ wxpython-2.9 installed
+
+Pyfa-1.x supports only wxpython-2.8, but multiple wxpython versions can
+be installed in parallel, and by default, 'import wx' pulls in the
+latest one.
+
+To support systems that have both wxpython-2.8 and 2.9 installed, pyfa
+needs to call wxversion.select.
+
+Note that wxversion.select can potentially fail with several exceptions
+internal to the wxversion module, so for simplicity, just check for all
+of them with an 'except:'.
+
+http://trac.evefit.org/ticket/475
+---
+ pyfa.py | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/pyfa.py b/pyfa.py
+index aedb718..6992aaf 100755
+--- a/pyfa.py
++++ b/pyfa.py
+@@ -29,8 +29,8 @@ if not hasattr(sys, 'frozen'):
+
+ try:
+ import wxversion
+- wxversion.ensureMinimal('2.8')
+- except ImportError:
++ wxversion.select('2.8')
++ except:
+ print "Cannot find wxPython or the installed wxPython version doesn't meet the min. requirements.\nYou can download wxPython (2.8) from http://www.wxpython.org/"
+ sys.exit(1)
+
+--
+1.7.8.5
+