summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-board/pychess/files/pychess-0.10.1-python.patch')
-rw-r--r--games-board/pychess/files/pychess-0.10.1-python.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/games-board/pychess/files/pychess-0.10.1-python.patch b/games-board/pychess/files/pychess-0.10.1-python.patch
new file mode 100644
index 000000000000..11a6cce49c02
--- /dev/null
+++ b/games-board/pychess/files/pychess-0.10.1-python.patch
@@ -0,0 +1,19 @@
+python binary name is hardcoded, but
+we need to sed it in during installation
+
+https://bugs.gentoo.org/show_bug.cgi?id=487706
+
+--- a/lib/pychess/Players/engineNest.py
++++ b/lib/pychess/Players/engineNest.py
+@@ -70,9 +70,9 @@ backup = """
+ <engines version="%s">
+ <engine protocol="cecp" protover="2" binname="PyChess.py">
+ <meta><country>dk</country></meta>
+- <vm binname="python"><args><arg name='0' value="-u"/></args></vm></engine>
++ <vm binname="@PYTHON@"><args><arg name='0' value="-u"/></args></vm></engine>
+ <engine protocol="cecp" protover="2" binname="shatranj.py">
+- <vm binname="python"><args><arg name='0' value="-u"/></args></vm>
++ <vm binname="@PYTHON@"><args><arg name='0' value="-u"/></args></vm>
+ <args><arg name='0' value='-xboard'/></args></engine>
+ <engine protocol="cecp" protover="2" binname="gnuchess">
+ <meta><country>us</country></meta>