Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/pychess/
Date: Tue, 02 Aug 2016 21:34:44
Message-Id: 1470173594.cf76762c1faf6f8095dd26570b5b15d32384d475.wizardedit@gentoo
1 commit: cf76762c1faf6f8095dd26570b5b15d32384d475
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 2 18:09:58 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 2 21:33:14 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf76762c
7
8 games-board/pychess: remove deprecated games eclass
9
10 Also update to EAPI 6
11
12 Gentoo-Bug: https://bugs.gentoo.org/574082
13
14 Package-Manager: portage-2.3.0
15
16 games-board/pychess/pychess-0.12.3-r1.ebuild | 70 ++++++++++++++++++++++++++++
17 1 file changed, 70 insertions(+)
18
19 diff --git a/games-board/pychess/pychess-0.12.3-r1.ebuild b/games-board/pychess/pychess-0.12.3-r1.ebuild
20 new file mode 100644
21 index 0000000..b7a1b95
22 --- /dev/null
23 +++ b/games-board/pychess/pychess-0.12.3-r1.ebuild
24 @@ -0,0 +1,70 @@
25 +# Copyright 1999-2016 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Id$
28 +
29 +EAPI=6
30 +PYTHON_COMPAT=( python2_7 )
31 +PYTHON_REQ_USE="sqlite"
32 +
33 +inherit fdo-mime gnome2-utils distutils-r1
34 +
35 +DESCRIPTION="A chess client for Gnome"
36 +HOMEPAGE="http://pychess.org/"
37 +SRC_URI="http://pychess.org/download/${P}.tar.gz"
38 +
39 +LICENSE="GPL-3"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~x86"
42 +IUSE="gstreamer"
43 +
44 +DEPEND="
45 + dev-python/gconf-python
46 + dev-python/librsvg-python
47 + dev-python/pycairo[${PYTHON_USEDEP}]
48 + dev-python/pygobject:3[${PYTHON_USEDEP}]
49 + dev-python/pygtk:2[${PYTHON_USEDEP}]
50 + dev-python/pygtksourceview:2[${PYTHON_USEDEP}]
51 + x11-libs/gtksourceview:3.0
52 + x11-themes/gnome-icon-theme
53 + gstreamer? ( dev-python/gst-python:0.10[${PYTHON_USEDEP}] )"
54 +RDEPEND=${DEPEND}
55 +
56 +python_install() {
57 + distutils-r1_python_install
58 +
59 + # bug 487706
60 + sed -i \
61 + -e "s/@PYTHON@/${EPYTHON}/" \
62 + "${ED%/}/$(python_get_sitedir)"/${PN}/Players/engineNest.py || die
63 +}
64 +
65 +python_install_all() {
66 + DOCS="AUTHORS README.md" \
67 + distutils-r1_python_install_all
68 +}
69 +
70 +src_prepare() {
71 + distutils-r1_src_prepare
72 +}
73 +
74 +src_compile() {
75 + distutils-r1_src_compile
76 +}
77 +
78 +src_install() {
79 + distutils-r1_src_install
80 +}
81 +
82 +pkg_preinst() {
83 + gnome2_icon_savelist
84 +}
85 +
86 +pkg_postinst() {
87 + gnome2_icon_cache_update
88 + fdo-mime_desktop_database_update
89 +}
90 +
91 +pkg_postrm() {
92 + gnome2_icon_cache_update
93 + fdo-mime_desktop_database_update
94 +}