summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <rhill@gentoo.org>2007-12-07 00:04:32 +0000
committerRyan Hill <rhill@gentoo.org>2007-12-07 00:04:32 +0000
commitc14d32cd0f63af8e4c3253fdcede0355c12366a9 (patch)
treeb6298bf8063598f02a67eb7ae0165d07ae3e26ec /games-util/mattricks/files
parentstable x86, bug 197806 (diff)
downloadhistorical-c14d32cd0f63af8e4c3253fdcede0355c12366a9.tar.gz
historical-c14d32cd0f63af8e4c3253fdcede0355c12366a9.tar.bz2
historical-c14d32cd0f63af8e4c3253fdcede0355c12366a9.zip
Use wxversion to force wxpython-2.6 when multiple slots are available. Bug
201317. Package-Manager: portage-2.1.4_rc7
Diffstat (limited to 'games-util/mattricks/files')
-rw-r--r--games-util/mattricks/files/mattricks-0.7-wxversion.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/games-util/mattricks/files/mattricks-0.7-wxversion.patch b/games-util/mattricks/files/mattricks-0.7-wxversion.patch
new file mode 100644
index 000000000000..b3076355686b
--- /dev/null
+++ b/games-util/mattricks/files/mattricks-0.7-wxversion.patch
@@ -0,0 +1,17 @@
+diff -Naur Mattricks-0.7-orig/Mattricks/Commonwx.py Mattricks-0.7/Mattricks/Commonwx.py
+--- Mattricks-0.7-orig/Mattricks/Commonwx.py 2004-04-15 06:20:07.000000000 -0600
++++ Mattricks-0.7/Mattricks/Commonwx.py 2007-12-04 21:05:15.000000000 -0600
+@@ -17,6 +17,13 @@
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
++try:
++ import wxversion
++ wxversion.select("2.6")
++except Exception, e:
++ print >> sys.stderr, "%s: wxPython 2.6 not installed." %e
++ sys.exit(1)
++
+ from wxPython.wx import *
+ from Common import *
+