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/xfreecell/, games-board/xfreecell/files/
Date: Mon, 01 Aug 2016 19:09:33
Message-Id: 1470077417.636a661e83744745ae24312cd1105825111890d1.wizardedit@gentoo
1 commit: 636a661e83744745ae24312cd1105825111890d1
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 1 18:47:25 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 1 18:50:17 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=636a661e
7
8 games-board/xfreecell: 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 .../xfreecell/files/xfreecell-1.0.5b-gcc43.patch | 20 ++++----
17 .../xfreecell/files/xfreecell-1.0.5b-gentoo.patch | 56 +++++++++++-----------
18 games-board/xfreecell/xfreecell-1.0.5b-r1.ebuild | 41 ++++++++++++++++
19 3 files changed, 79 insertions(+), 38 deletions(-)
20
21 diff --git a/games-board/xfreecell/files/xfreecell-1.0.5b-gcc43.patch b/games-board/xfreecell/files/xfreecell-1.0.5b-gcc43.patch
22 index cf7e899..aa3b434 100644
23 --- a/games-board/xfreecell/files/xfreecell-1.0.5b-gcc43.patch
24 +++ b/games-board/xfreecell/files/xfreecell-1.0.5b-gcc43.patch
25 @@ -1,5 +1,5 @@
26 ---- card.cpp
27 -+++ card.cpp
28 +--- a/card.cpp
29 ++++ b/card.cpp
30 @@ -1,5 +1,6 @@
31 +#include <cstdlib>
32 #include <cstdio>
33 @@ -8,8 +8,8 @@
34 #ifdef SHAPE
35 #include <X11/Xlib.h>
36 #include <X11/Xutil.h>
37 ---- freecell.cpp
38 -+++ freecell.cpp
39 +--- a/freecell.cpp
40 ++++ b/freecell.cpp
41 @@ -1,6 +1,7 @@
42 #include <dirent.h>
43 #include <fcntl.h>
44 @@ -19,8 +19,8 @@
45 #include <sys/stat.h>
46 #include <sys/time.h>
47 #include <sys/types.h>
48 ---- option.cpp
49 -+++ option.cpp
50 +--- a/option.cpp
51 ++++ b/option.cpp
52 @@ -3,7 +3,9 @@
53 #include <fcntl.h>
54 #include <dirent.h>
55 @@ -32,8 +32,8 @@
56
57 #include "general.h"
58 #include "option.h"
59 ---- subwindows.cpp
60 -+++ subwindows.cpp
61 +--- a/subwindows.cpp
62 ++++ b/subwindows.cpp
63 @@ -3,7 +3,8 @@
64 #include <fcntl.h>
65 #include <dirent.h>
66 @@ -44,8 +44,8 @@
67
68 #include "general.h"
69 #include "subwindows.h"
70 ---- widget/widget.h
71 -+++ widget/widget.h
72 +--- a/widget/widget.h
73 ++++ b/widget/widget.h
74 @@ -4,7 +4,9 @@
75 #include <X11/Xlib.h>
76 #include <X11/Xutil.h>
77
78 diff --git a/games-board/xfreecell/files/xfreecell-1.0.5b-gentoo.patch b/games-board/xfreecell/files/xfreecell-1.0.5b-gentoo.patch
79 index f000eb7..85a2e4d 100644
80 --- a/games-board/xfreecell/files/xfreecell-1.0.5b-gentoo.patch
81 +++ b/games-board/xfreecell/files/xfreecell-1.0.5b-gentoo.patch
82 @@ -1,5 +1,5 @@
83 -diff -ru xfreecell.orig/card.cpp xfreecell/card.cpp
84 ---- xfreecell.orig/card.cpp 1999-03-27 05:36:28.000000000 -0800
85 +diff -ru xfreecellg/card.cpp xfreecell/card.cpp
86 +--- xfreecellg/card.cpp 1999-03-27 05:36:28.000000000 -0800
87 +++ xfreecell/card.cpp 2004-02-25 02:17:24.000000000 -0800
88 @@ -119,7 +119,7 @@
89 int oldy = y();
90 @@ -10,8 +10,8 @@ diff -ru xfreecell.orig/card.cpp xfreecell/card.cpp
91 float curx = (float) oldx;
92 float cury = (float) oldy;
93
94 -diff -ru xfreecell.orig/freecell.cpp xfreecell/freecell.cpp
95 ---- xfreecell.orig/freecell.cpp 1999-07-27 07:15:27.000000000 -0700
96 +diff -ru xfreecellg/freecell.cpp xfreecell/freecell.cpp
97 +--- xfreecellg/freecell.cpp 1999-07-27 07:15:27.000000000 -0700
98 +++ xfreecell/freecell.cpp 2004-02-25 02:18:13.000000000 -0800
99 @@ -64,7 +64,7 @@
100 static GameNumberManager* gnManager;
101 @@ -31,8 +31,8 @@ diff -ru xfreecell.orig/freecell.cpp xfreecell/freecell.cpp
102
103 if (home == NULL) {
104 fprintf(stderr, "Cannot get $HOME. Assuming I am at home directory now.\n");
105 -diff -ru xfreecell.orig/gnmanager.cpp xfreecell/gnmanager.cpp
106 ---- xfreecell.orig/gnmanager.cpp 1999-07-27 07:18:05.000000000 -0700
107 +diff -ru xfreecellg/gnmanager.cpp xfreecell/gnmanager.cpp
108 +--- xfreecellg/gnmanager.cpp 1999-07-27 07:18:05.000000000 -0700
109 +++ xfreecell/gnmanager.cpp 2004-02-25 02:17:24.000000000 -0800
110 @@ -16,7 +16,7 @@
111 GameNumberManager::GameNumberManager()
112 @@ -61,8 +61,8 @@ diff -ru xfreecell.orig/gnmanager.cpp xfreecell/gnmanager.cpp
113 {
114 FILE* fp = fopen(file.c_str(), "w+");
115
116 -diff -ru xfreecell.orig/gnmanager.h xfreecell/gnmanager.h
117 ---- xfreecell.orig/gnmanager.h 1999-03-29 05:07:19.000000000 -0800
118 +diff -ru xfreecellg/gnmanager.h xfreecell/gnmanager.h
119 +--- xfreecellg/gnmanager.h 1999-03-29 05:07:19.000000000 -0800
120 +++ xfreecell/gnmanager.h 2004-02-25 02:17:24.000000000 -0800
121 @@ -2,7 +2,13 @@
122 #define GNManager_H
123 @@ -98,8 +98,8 @@ diff -ru xfreecell.orig/gnmanager.h xfreecell/gnmanager.h
124
125 hash_set<int> msWonGames;
126 hash_set<int> msLostGames;
127 -diff -ru xfreecell.orig/makefile xfreecell/makefile
128 ---- xfreecell.orig/makefile 1999-04-03 05:42:49.000000000 -0800
129 +diff -ru xfreecellg/makefile xfreecell/makefile
130 +--- xfreecellg/makefile 1999-04-03 05:42:49.000000000 -0800
131 +++ xfreecell/makefile 2004-02-25 02:17:48.000000000 -0800
132 @@ -1,16 +1,15 @@
133 OBJECTS=card.o freecell.o option.o stack.o subwindows.o undo.o util.o gnmanager.o random.o
134 @@ -146,8 +146,8 @@ diff -ru xfreecell.orig/makefile xfreecell/makefile
135 -# install ms-compatible/MSNumbers $(DESTDIR)/usr/local/lib/xfreecell
136 \ No newline at end of file
137 +# install ms-compatible/MSNumbers $(DESTDIR)/usr/share/xfreecell
138 -diff -ru xfreecell.orig/option.h xfreecell/option.h
139 ---- xfreecell.orig/option.h 1999-03-27 11:39:17.000000000 -0800
140 +diff -ru xfreecellg/option.h xfreecell/option.h
141 +--- xfreecellg/option.h 1999-03-27 11:39:17.000000000 -0800
142 +++ xfreecell/option.h 2004-02-25 02:17:24.000000000 -0800
143 @@ -22,7 +22,7 @@
144 void readPrefs();
145 @@ -158,8 +158,8 @@ diff -ru xfreecell.orig/option.h xfreecell/option.h
146
147 static int _speedup;
148 static bool _queryWindow;
149 -diff -ru xfreecell.orig/stack.h xfreecell/stack.h
150 ---- xfreecell.orig/stack.h 1999-03-02 10:20:02.000000000 -0800
151 +diff -ru xfreecellg/stack.h xfreecell/stack.h
152 +--- xfreecellg/stack.h 1999-03-02 10:20:02.000000000 -0800
153 +++ xfreecell/stack.h 2004-02-25 02:17:24.000000000 -0800
154 @@ -28,7 +28,7 @@
155 int _next_x, _next_y;
156 @@ -170,8 +170,8 @@ diff -ru xfreecell.orig/stack.h xfreecell/stack.h
157 };
158
159 class PlayStack : public Stack {
160 -diff -ru xfreecell.orig/subwindows.h xfreecell/subwindows.h
161 ---- xfreecell.orig/subwindows.h 1999-03-15 15:09:49.000000000 -0800
162 +diff -ru xfreecellg/subwindows.h xfreecell/subwindows.h
163 +--- xfreecellg/subwindows.h 1999-03-15 15:09:49.000000000 -0800
164 +++ xfreecell/subwindows.h 2004-02-25 02:17:24.000000000 -0800
165 @@ -76,7 +76,7 @@
166 int _undos;
167 @@ -182,8 +182,8 @@ diff -ru xfreecell.orig/subwindows.h xfreecell/subwindows.h
168
169 bool exitPressed;
170
171 -diff -ru xfreecell.orig/undo.cpp xfreecell/undo.cpp
172 ---- xfreecell.orig/undo.cpp 1999-03-25 07:48:40.000000000 -0800
173 +diff -ru xfreecellg/undo.cpp xfreecell/undo.cpp
174 +--- xfreecellg/undo.cpp 1999-03-25 07:48:40.000000000 -0800
175 +++ xfreecell/undo.cpp 2004-02-25 02:17:24.000000000 -0800
176 @@ -22,7 +22,7 @@
177 c->moveToStack(from, false, false);
178 @@ -194,8 +194,8 @@ diff -ru xfreecell.orig/undo.cpp xfreecell/undo.cpp
179
180 void undoClearMoves()
181 {
182 -diff -ru xfreecell.orig/widget/container.cpp xfreecell/widget/container.cpp
183 ---- xfreecell.orig/widget/container.cpp 1999-03-03 09:34:52.000000000 -0800
184 +diff -ru xfreecellg/widget/container.cpp xfreecell/widget/container.cpp
185 +--- xfreecellg/widget/container.cpp 1999-03-03 09:34:52.000000000 -0800
186 +++ xfreecell/widget/container.cpp 2004-02-25 02:17:24.000000000 -0800
187 @@ -61,18 +61,18 @@
188
189 @@ -233,8 +233,8 @@ diff -ru xfreecell.orig/widget/container.cpp xfreecell/widget/container.cpp
190 if (nscVec.size() == 0) {
191 _width = 0; _height = 0;
192 } else {
193 -diff -ru xfreecell.orig/widget/makefile xfreecell/widget/makefile
194 ---- xfreecell.orig/widget/makefile 1999-03-17 21:54:57.000000000 -0800
195 +diff -ru xfreecellg/widget/makefile xfreecell/widget/makefile
196 +--- xfreecellg/widget/makefile 1999-03-17 21:54:57.000000000 -0800
197 +++ xfreecell/widget/makefile 2004-02-25 02:17:59.000000000 -0800
198 @@ -1,15 +1,13 @@
199 OBJECTS=window.o plate.o string.o button.o label.o textfield.o container.o frame.o util.o scrollbar.o font.o main.o
200 @@ -255,16 +255,16 @@ diff -ru xfreecell.orig/widget/makefile xfreecell/widget/makefile
201
202 clean:
203 rm -f *.o *~ a.out .nfs* dummy
204 -diff -ru xfreecell.orig/widget/textfield.cpp xfreecell/widget/textfield.cpp
205 ---- xfreecell.orig/widget/textfield.cpp 1999-03-03 09:34:52.000000000 -0800
206 +diff -ru xfreecellg/widget/textfield.cpp xfreecell/widget/textfield.cpp
207 +--- xfreecellg/widget/textfield.cpp 1999-03-03 09:34:52.000000000 -0800
208 +++ xfreecell/widget/textfield.cpp 2004-02-25 02:17:24.000000000 -0800
209 @@ -1,3 +1,4 @@
210 +#include <cctype>
211 #include "widget.h"
212
213 GC NSTextField::gc;
214 -diff -ru xfreecell.orig/widget/widget.h xfreecell/widget/widget.h
215 ---- xfreecell.orig/widget/widget.h 1999-03-15 08:29:32.000000000 -0800
216 +diff -ru xfreecellg/widget/widget.h xfreecell/widget/widget.h
217 +--- xfreecellg/widget/widget.h 1999-03-15 08:29:32.000000000 -0800
218 +++ xfreecell/widget/widget.h 2004-02-25 02:17:24.000000000 -0800
219 @@ -114,7 +114,7 @@
220 Elt(NSWindow* nw, Window w) { nswindow = nw; window = w; }
221 @@ -302,8 +302,8 @@ diff -ru xfreecell.orig/widget/widget.h xfreecell/widget/widget.h
222 };
223
224 // ##### NSHContainer #####
225 -diff -ru xfreecell.orig/widget/window.cpp xfreecell/widget/window.cpp
226 ---- xfreecell.orig/widget/window.cpp 1999-03-03 09:34:52.000000000 -0800
227 +diff -ru xfreecellg/widget/window.cpp xfreecell/widget/window.cpp
228 +--- xfreecellg/widget/window.cpp 1999-03-03 09:34:52.000000000 -0800
229 +++ xfreecell/widget/window.cpp 2004-02-25 02:17:24.000000000 -0800
230 @@ -2,7 +2,7 @@
231
232
233 diff --git a/games-board/xfreecell/xfreecell-1.0.5b-r1.ebuild b/games-board/xfreecell/xfreecell-1.0.5b-r1.ebuild
234 new file mode 100644
235 index 0000000..232e308
236 --- /dev/null
237 +++ b/games-board/xfreecell/xfreecell-1.0.5b-r1.ebuild
238 @@ -0,0 +1,41 @@
239 +# Copyright 1999-2016 Gentoo Foundation
240 +# Distributed under the terms of the GNU General Public License v2
241 +# $Id$
242 +
243 +EAPI=6
244 +inherit eutils
245 +
246 +DESCRIPTION="A freecell game for X"
247 +HOMEPAGE="http://www2.giganet.net/~nakayama/"
248 +SRC_URI="http://www2.giganet.net/~nakayama/${P}.tgz
249 + http://www2.giganet.net/~nakayama/MSNumbers.gz"
250 +
251 +LICENSE="HPND"
252 +SLOT="0"
253 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
254 +IUSE=""
255 +
256 +RDEPEND="media-fonts/font-misc-misc
257 + x11-libs/libXext"
258 +DEPEND="${RDEPEND}
259 + x11-proto/xextproto"
260 +
261 +S=${WORKDIR}/${PN}
262 +
263 +PATCHES=(
264 + "${FILESDIR}"/${P}-gentoo.patch
265 + "${FILESDIR}"/${P}-gcc43.patch
266 +)
267 +
268 +src_install() {
269 + dobin xfreecell
270 + insinto /usr/share/${PN}
271 + doins "${WORKDIR}"/MSNumbers
272 + dodoc CHANGES README mshuffle.txt
273 + doman xfreecell.6
274 + make_desktop_entry xfreecell XFreecell
275 +}
276 +
277 +pkg_postinst() {
278 + einfo "Remember to restart X if this is the first time you've installed media-fonts/font-misc-misc"
279 +}