1 |
commit: f98a786711acd2debf7537239e03a923ae9468a1 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 2 16:57:32 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 2 16:59:46 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f98a7867 |
7 |
|
8 |
games-board/pysolfc: 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 |
.../pysolfc/files/pysolfc-PIL-imports.patch | 12 ++-- |
17 |
games-board/pysolfc/pysolfc-2.0-r4.ebuild | 80 ++++++++++++++++++++++ |
18 |
2 files changed, 86 insertions(+), 6 deletions(-) |
19 |
|
20 |
diff --git a/games-board/pysolfc/files/pysolfc-PIL-imports.patch b/games-board/pysolfc/files/pysolfc-PIL-imports.patch |
21 |
index ed174d8..64d9980 100644 |
22 |
--- a/games-board/pysolfc/files/pysolfc-PIL-imports.patch |
23 |
+++ b/games-board/pysolfc/files/pysolfc-PIL-imports.patch |
24 |
@@ -3,9 +3,9 @@ https://bugs.gentoo.org/show_bug.cgi?id=471514 |
25 |
|
26 |
Index: pysollib/mfxutil.py |
27 |
=================================================================== |
28 |
-diff --git a/PySolFC/trunk/pysollib/mfxutil.py b/PySolFC/trunk/pysollib/mfxutil.py |
29 |
---- a/PySolFC/trunk/pysollib/mfxutil.py (revision 279) |
30 |
-+++ b/PySolFC/trunk/pysollib/mfxutil.py (working copy) |
31 |
+diff --git a/pysollib/mfxutil.py b/pysollib/mfxutil.py |
32 |
+--- a/pysollib/mfxutil.py (revision 279) |
33 |
++++ b/pysollib/mfxutil.py (working copy) |
34 |
@@ -41,18 +41,18 @@ |
35 |
Image = ImageTk = ImageOps = None |
36 |
if TOOLKIT == 'tk': |
37 |
@@ -35,9 +35,9 @@ diff --git a/PySolFC/trunk/pysollib/mfxutil.py b/PySolFC/trunk/pysollib/mfxutil. |
38 |
if TOOLKIT == 'tk' and Image and Image.VERSION >= '1.1.7': |
39 |
Index: scripts/cardset_viewer.py |
40 |
=================================================================== |
41 |
-diff --git a/PySolFC/trunk/scripts/cardset_viewer.py b/PySolFC/trunk/scripts/cardset_viewer.py |
42 |
---- a/PySolFC/trunk/scripts/cardset_viewer.py (revision 279) |
43 |
-+++ b/PySolFC/trunk/scripts/cardset_viewer.py (working copy) |
44 |
+diff --git a/scripts/cardset_viewer.py b/scripts/cardset_viewer.py |
45 |
+--- a/scripts/cardset_viewer.py (revision 279) |
46 |
++++ b/scripts/cardset_viewer.py (working copy) |
47 |
@@ -7,7 +7,7 @@ |
48 |
from math import sqrt, sin, cos, pi |
49 |
from Tkinter import * |
50 |
|
51 |
diff --git a/games-board/pysolfc/pysolfc-2.0-r4.ebuild b/games-board/pysolfc/pysolfc-2.0-r4.ebuild |
52 |
new file mode 100644 |
53 |
index 0000000..6c57179 |
54 |
--- /dev/null |
55 |
+++ b/games-board/pysolfc/pysolfc-2.0-r4.ebuild |
56 |
@@ -0,0 +1,80 @@ |
57 |
+# Copyright 1999-2016 Gentoo Foundation |
58 |
+# Distributed under the terms of the GNU General Public License v2 |
59 |
+# $Id$ |
60 |
+ |
61 |
+EAPI=6 |
62 |
+ |
63 |
+PYTHON_COMPAT=( python2_7 ) |
64 |
+PYTHON_REQ_USE="tk" |
65 |
+DISTUTILS_SINGLE_IMPL="1" |
66 |
+ |
67 |
+inherit eutils python-single-r1 distutils-r1 |
68 |
+ |
69 |
+MY_PN=PySolFC |
70 |
+SOL_URI="mirror://sourceforge/${PN}" |
71 |
+ |
72 |
+DESCRIPTION="An exciting collection of more than 1000 solitaire card games" |
73 |
+HOMEPAGE="http://pysolfc.sourceforge.net/" |
74 |
+SRC_URI="${SOL_URI}/${MY_PN}-${PV}.tar.bz2 |
75 |
+ extra-cardsets? ( ${SOL_URI}/${MY_PN}-Cardsets-${PV}.tar.bz2 )" |
76 |
+ |
77 |
+LICENSE="GPL-3" |
78 |
+SLOT="0" |
79 |
+KEYWORDS="~amd64 ~x86" |
80 |
+IUSE="extra-cardsets minimal +sound" |
81 |
+ |
82 |
+S=${WORKDIR}/${MY_PN}-${PV} |
83 |
+ |
84 |
+DEPEND="" |
85 |
+RDEPEND="${RDEPEND} |
86 |
+ !minimal? ( dev-python/pillow[tk,${PYTHON_USEDEP}] |
87 |
+ dev-tcltk/tktable ) |
88 |
+ sound? ( dev-python/pygame[${PYTHON_USEDEP}] )" |
89 |
+ |
90 |
+python_prepare_all() { |
91 |
+ local PATCHES=( |
92 |
+ "${FILESDIR}/${PN}-PIL-imports.patch" #471514 |
93 |
+ ) |
94 |
+ |
95 |
+ distutils-r1_python_prepare_all |
96 |
+} |
97 |
+ |
98 |
+pkg_setup() { |
99 |
+ python-single-r1_pkg_setup |
100 |
+} |
101 |
+ |
102 |
+src_prepare() { |
103 |
+ default |
104 |
+ distutils-r1_src_prepare |
105 |
+ |
106 |
+ sed -i \ |
107 |
+ -e "/pysol.desktop/d" \ |
108 |
+ -e "s:share/icons:share/pixmaps:" \ |
109 |
+ setup.py || die |
110 |
+ |
111 |
+ mv docs/README{,.txt} |
112 |
+} |
113 |
+ |
114 |
+src_compile() { |
115 |
+ distutils-r1_src_compile |
116 |
+} |
117 |
+ |
118 |
+python_install_all() { |
119 |
+ make_desktop_entry pysol.py "PySol Fan Club Edition" pysol02 |
120 |
+ |
121 |
+ if use extra-cardsets; then |
122 |
+ insinto /usr/share/${PN} |
123 |
+ doins -r "${WORKDIR}"/${MY_PN}-Cardsets-${PV}/* |
124 |
+ fi |
125 |
+ |
126 |
+ doman docs/*.6 |
127 |
+ |
128 |
+ DOCS=( README AUTHORS docs/README.txt docs/README.SOURCE ) |
129 |
+ HTML_DOCS=( docs/*html ) |
130 |
+ |
131 |
+ distutils-r1_python_install_all |
132 |
+} |
133 |
+ |
134 |
+src_install() { |
135 |
+ distutils-r1_src_install |
136 |
+} |