mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
games-board/pychess: Drop old
Package-Manager: Portage-2.3.5, Repoman-2.3.2
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST pychess-0.12.3.tar.gz 4666113 SHA256 11d5e2d447bb945283f0239a407d8069b13afd77d3a2d491c9c352f1b7862e67 SHA512 597fd4c28a970df0d2ce3805eedd7530e259c1b60dd4e51bf1c56eb2376fe6256df30f12b077db3c9f1aab8baed06f023696827b57fb0963b9569b613656d4af WHIRLPOOL 295bf01c221b273abc2a60cdfd77a399af75a2e9f2de43188ea744204dad39220f152d7667699290d88b7dd75b26b5262b513f8ab6a114bb171a702ba184319b
|
||||
DIST pychess-0.12.4.tar.gz 4728410 SHA256 0706861dcea811abb80c8db589494e932b4bab931b2a8799fe53a2bd4b6ac372 SHA512 bf2a6cffca50742fbdfba04bc33807b53e4b7485cb6c9b6bb84816e176fd99f3929dbc8e504b46053cdcd30f691d6df948f5153508b2b6d3504f85a31eaccf62 WHIRLPOOL f488f85aaaafc844afd7911a6b92cfa085b66b476596468077746a42038a029df965ada212d04dea95f617d4bdf533442b84c470400715aa52e2756abc3c2d35
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
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>
|
||||
@@ -1,71 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit fdo-mime gnome2-utils distutils-r1 games
|
||||
|
||||
DESCRIPTION="A chess client for Gnome"
|
||||
HOMEPAGE="http://pychess.org/"
|
||||
SRC_URI="http://pychess.org/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="gstreamer"
|
||||
|
||||
DEPEND="dev-python/librsvg-python
|
||||
x11-libs/gtksourceview:3.0
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
dev-python/pygtk:2[${PYTHON_USEDEP}]
|
||||
dev-python/pygtksourceview:2[${PYTHON_USEDEP}]
|
||||
gstreamer? ( dev-python/gst-python:0.10[${PYTHON_USEDEP}] )
|
||||
dev-python/gconf-python
|
||||
x11-themes/gnome-icon-theme"
|
||||
RDEPEND=${DEPEND}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install --install-scripts="${GAMES_BINDIR}"
|
||||
|
||||
# bug 487706
|
||||
sed -i \
|
||||
-e "s/@PYTHON@/${EPYTHON}/" \
|
||||
"${ED%/}/$(python_get_sitedir)"/${PN}/Players/engineNest.py || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
DOCS="AUTHORS README.md" \
|
||||
distutils-r1_python_install_all
|
||||
prepgamesdirs
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
distutils-r1_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
games_pkg_preinst
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
games_pkg_postinst
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
||||
Reference in New Issue
Block a user