1 |
commit: 8a3ee146de556ba70d0f8ac56736f693109e05a6 |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Feb 28 23:02:00 2020 +0000 |
4 |
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> |
5 |
CommitDate: Fri Feb 28 23:02:00 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=8a3ee146 |
7 |
|
8 |
games-arcade/gannatsu: remove package |
9 |
|
10 |
Sources unavailable, deprecated eclass. |
11 |
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> |
12 |
|
13 |
.../gannatsu/files/gannatsu-104-homedir.patch | 288 --------------------- |
14 |
.../gannatsu/files/gannatsu-104-makefile.patch | 19 -- |
15 |
games-arcade/gannatsu/gannatsu-104.ebuild | 63 ----- |
16 |
games-arcade/gannatsu/metadata.xml | 8 - |
17 |
4 files changed, 378 deletions(-) |
18 |
|
19 |
diff --git a/games-arcade/gannatsu/files/gannatsu-104-homedir.patch b/games-arcade/gannatsu/files/gannatsu-104-homedir.patch |
20 |
deleted file mode 100644 |
21 |
index 4cf8fb2..0000000 |
22 |
--- a/games-arcade/gannatsu/files/gannatsu-104-homedir.patch |
23 |
+++ /dev/null |
24 |
@@ -1,288 +0,0 @@ |
25 |
-diff -Naur act.c act.c |
26 |
---- act.c 2008-04-23 00:57:20.000000000 +0200 |
27 |
-+++ act.c 2009-10-31 11:09:04.000000000 +0100 |
28 |
-@@ -321,6 +321,14 @@ |
29 |
- |
30 |
- void act_init( void ) |
31 |
- { |
32 |
-+#ifdef __LINUX__ |
33 |
-+ char workfile[300]; |
34 |
-+ sprintf(workfile, "%s/.gannatsu/save/work.sav", getenv("HOME")); |
35 |
-+ char itemfile[300]; |
36 |
-+ sprintf(itemfile, "%s/.gannatsu/save/item_wk.sav", getenv("HOME")); |
37 |
-+ char targetfile[300]; |
38 |
-+ sprintf(targetfile, "%s/.gannatsu/save/target", getenv("HOME")); |
39 |
-+#endif |
40 |
- long i; |
41 |
- long x; |
42 |
- long y; |
43 |
-@@ -379,7 +387,11 @@ |
44 |
- } |
45 |
- |
46 |
- ResetGameFlag2( ); |
47 |
-+#ifdef __LINUX__ |
48 |
-+ LoadGameFlag2(workfile); |
49 |
-+#else |
50 |
- LoadGameFlag2( "save/work.sav"); |
51 |
-+#endif |
52 |
- for ( i = 0; i < 512; i++ ) |
53 |
- { |
54 |
- save_data[i] = gameflag2[i]; |
55 |
-@@ -2220,10 +2232,21 @@ |
56 |
- /* 一時ファイル保存 */ |
57 |
- void save_file_w( ) |
58 |
- { |
59 |
-+#ifdef __LINUX__ |
60 |
-+ char configfile[300]; |
61 |
-+ sprintf(configfile, "%s/.gannatsu/save/config", getenv("HOME")); |
62 |
-+ char workfile[300]; |
63 |
-+ sprintf(workfile, "%s/.gannatsu/save/work.sav", getenv("HOME")); |
64 |
-+ char itemfile[300]; |
65 |
-+ sprintf(itemfile, "%s/.gannatsu/save/item_wk.sav", getenv("HOME")); |
66 |
-+#endif |
67 |
- long i; |
68 |
- |
69 |
-+#ifdef __LINUX__ |
70 |
-+ SaveGameFlag(configfile); |
71 |
-+#else |
72 |
- SaveGameFlag("save/config"); |
73 |
-- |
74 |
-+#endif |
75 |
- |
76 |
- ResetGameFlag2( ); |
77 |
- // save_data[7] = player[7]; /* ハートのかけら所持個数 */ |
78 |
-@@ -2239,16 +2262,22 @@ |
79 |
- { |
80 |
- gameflag2[i] = save_data[i]; |
81 |
- } |
82 |
-+#ifdef __LINUX__ |
83 |
-+ SaveGameFlag2(workfile); |
84 |
-+#else |
85 |
- SaveGameFlag2( "save/work.sav"); |
86 |
-- |
87 |
-+#endif |
88 |
- /* アイテム取得情報 */ |
89 |
- ResetGameFlag2(); |
90 |
- for ( i = 0; i < 500; i++ ) |
91 |
- { |
92 |
- gameflag2[i] = item_wk[i]; |
93 |
- } |
94 |
-+#ifdef __LINUX__ |
95 |
-+ SaveGameFlag2(itemfile); |
96 |
-+#else |
97 |
- SaveGameFlag2("save/item_wk.sav"); |
98 |
-- |
99 |
-+#endif |
100 |
- } |
101 |
- |
102 |
- |
103 |
-diff -Naur init.c init.c |
104 |
---- init.c 2008-04-28 01:52:02.000000000 +0200 |
105 |
-+++ init.c 2009-10-31 10:58:54.000000000 +0100 |
106 |
-@@ -26,6 +26,17 @@ |
107 |
- |
108 |
- int main(int argc, char *argv[]) |
109 |
- { |
110 |
-+#ifdef __LINUX__ |
111 |
-+ char cfg_path[300]; |
112 |
-+ sprintf(cfg_path, "%s/.gannatsu/", getenv("HOME")); |
113 |
-+ mkdir(cfg_path, 0755); |
114 |
-+ char save_path[300]; |
115 |
-+ sprintf(save_path, "%s/.gannatsu/save/", getenv("HOME")); |
116 |
-+ mkdir(save_path, 0755); |
117 |
-+ char replay_path[300]; |
118 |
-+ sprintf(replay_path, "%s/.gannatsu/replay/", getenv("HOME")); |
119 |
-+ mkdir(replay_path, 0755); |
120 |
-+#endif |
121 |
- SDL_Rect rect; |
122 |
- Uint32 flags; |
123 |
- SDL_Surface* tmp; |
124 |
-@@ -136,12 +147,19 @@ |
125 |
- |
126 |
- void ExitProgram(void) |
127 |
- { |
128 |
-- |
129 |
-+#ifdef __LINUX__ |
130 |
-+ char configfile[300]; |
131 |
-+ sprintf(configfile, "%s/.gannatsu/save/config", getenv("HOME")); |
132 |
-+#endif |
133 |
- soundStopBgm(0); |
134 |
- soundStopSeAll(); |
135 |
- soundRelease(); |
136 |
- |
137 |
-- SaveGameFlag("save/config"); |
138 |
-+#ifdef __LINUX__ |
139 |
-+ SaveGameFlag(configfile); |
140 |
-+#else |
141 |
-+ SaveGameFlag("save/config"); |
142 |
-+#endif |
143 |
- |
144 |
- closePAD(); |
145 |
- // closeSDL(); |
146 |
-@@ -156,11 +174,19 @@ |
147 |
- |
148 |
- void main_init_config( void ) |
149 |
- { |
150 |
-+#ifdef __LINUX__ |
151 |
-+ char configfile[300]; |
152 |
-+ sprintf(configfile, "%s/.gannatsu/save/config", getenv("HOME")); |
153 |
-+#endif |
154 |
- int i; |
155 |
- |
156 |
- i = 0; |
157 |
- |
158 |
-+#ifdef __LINUX__ |
159 |
-+ if ( ! ( LoadGameFlag(configfile) == 0 ) ) |
160 |
-+#else |
161 |
- if ( ! ( LoadGameFlag("save/config") == 0 ) ) |
162 |
-+#endif |
163 |
- { |
164 |
- /* ファイルが存在しない場合の初期値設定 */ |
165 |
- ResetGameFlag(); |
166 |
-diff -Naur option.c option.c |
167 |
---- option.c 2008-04-13 19:02:16.000000000 +0200 |
168 |
-+++ option.c 2009-10-31 11:11:38.000000000 +0100 |
169 |
-@@ -248,6 +248,10 @@ |
170 |
- |
171 |
- void option_keys( void ) |
172 |
- { |
173 |
-+#ifdef __LINUX__ |
174 |
-+ char configfigfile[300]; |
175 |
-+ sprintf(configfigfile, "%s/.gannatsu/save/config.fig", getenv("HOME")); |
176 |
-+#endif |
177 |
- if ( ag == 0 ) |
178 |
- { |
179 |
- if ( IsPushKey( gameflag[0] ) ) |
180 |
-@@ -336,8 +340,11 @@ |
181 |
- if ( mode == 15 ) /* Exit */ |
182 |
- { |
183 |
- gameflag[133] = selct[2]; //アンカータイプ |
184 |
-+#ifdef __LINUX__ |
185 |
-+ SaveGameFlag(configfigfile); |
186 |
-+#else |
187 |
- SaveGameFlag("config/config.fig"); |
188 |
-- |
189 |
-+#endif |
190 |
- gameflag[40] = 1; /* モードによって変える */ |
191 |
- g_scene = EN_SN_TITLE; |
192 |
- scene_exit=0; |
193 |
-diff -Naur title.c title.c |
194 |
---- title.c 2008-04-13 19:02:14.000000000 +0200 |
195 |
-+++ title.c 2009-10-31 11:13:27.000000000 +0100 |
196 |
-@@ -152,6 +152,13 @@ |
197 |
- |
198 |
- void title_keys( void ) |
199 |
- { |
200 |
-+#ifdef __LINUX__ |
201 |
-+ char workfile[300]; |
202 |
-+ sprintf(workfile, "%s/.gannatsu/save/work.sav", getenv("HOME")); |
203 |
-+ char itemfile[300]; |
204 |
-+ sprintf(itemfile, "%s/.gannatsu/save/item_wk.sav", getenv("HOME")); |
205 |
-+#endif |
206 |
-+ |
207 |
- if ( IsPushKey( gameflag[0] ) ) |
208 |
- { |
209 |
- soundPlaySe( EN_SE_SELECT ); |
210 |
-@@ -315,10 +322,19 @@ |
211 |
- gameflag2[3] = 1; /* 画面No */ |
212 |
- gameflag2[2] = 0; /* ステージ */ |
213 |
- gameflag[70] = 1; |
214 |
-+#ifdef __LINUX__ |
215 |
-+ SaveGameFlag2(workfile); |
216 |
-+#else |
217 |
- SaveGameFlag2( "save/work.sav"); |
218 |
-+#endif |
219 |
- |
220 |
- ResetGameFlag2( ); |
221 |
-+ |
222 |
-+#ifdef __LINUX__ |
223 |
-+ SaveGameFlag2(itemfile); |
224 |
-+#else |
225 |
- SaveGameFlag2( "save/item_wk.sav"); |
226 |
-+#endif |
227 |
- |
228 |
- gameflag[40] = 4; |
229 |
- g_scene = EN_SN_ACT; |
230 |
-@@ -337,10 +353,19 @@ |
231 |
- gameflag[123] = gameflag[120]; //リプレイ選択時のステージ |
232 |
- gameflag[132] = 1; //リプレイ |
233 |
- gameflag[70] = 1; |
234 |
-+#ifdef __LINUX__ |
235 |
-+ SaveGameFlag2(workfile); |
236 |
-+#else |
237 |
- SaveGameFlag2( "save/work.sav"); |
238 |
-+#endif |
239 |
- |
240 |
- ResetGameFlag2( ); |
241 |
-+ |
242 |
-+#ifdef __LINUX__ |
243 |
-+ SaveGameFlag2(itemfile); |
244 |
-+#else |
245 |
- SaveGameFlag2( "save/item_wk.sav"); |
246 |
-+#endif |
247 |
- |
248 |
- gameflag[40] = 4; |
249 |
- g_scene = EN_SN_ACT; |
250 |
-@@ -362,10 +387,19 @@ |
251 |
- gameflag[123] = -1; //リプレイ選択時のステージ |
252 |
- gameflag[132] = 0; //リプレイ |
253 |
- gameflag[70] = 1; |
254 |
-+#ifdef __LINUX__ |
255 |
-+ SaveGameFlag2(workfile); |
256 |
-+#else |
257 |
- SaveGameFlag2( "save/work.sav"); |
258 |
-+#endif |
259 |
- |
260 |
- ResetGameFlag2( ); |
261 |
-+ |
262 |
-+#ifdef __LINUX__ |
263 |
-+ SaveGameFlag2(itemfile); |
264 |
-+#else |
265 |
- SaveGameFlag2( "save/item_wk.sav"); |
266 |
-+#endif |
267 |
- |
268 |
- gameflag[40] = 4; |
269 |
- g_scene = EN_SN_ACT; |
270 |
-@@ -387,10 +421,19 @@ |
271 |
- gameflag[123] = -1; //リプレイ選択時のステージ |
272 |
- gameflag[132] = 0; //リプレイ |
273 |
- gameflag[70] = 1; |
274 |
-+#ifdef __LINUX__ |
275 |
-+ SaveGameFlag2(workfile); |
276 |
-+#else |
277 |
- SaveGameFlag2( "save/work.sav"); |
278 |
-+#endif |
279 |
- |
280 |
- ResetGameFlag2( ); |
281 |
-+ |
282 |
-+#ifdef __LINUX__ |
283 |
-+ SaveGameFlag2(itemfile); |
284 |
-+#else |
285 |
- SaveGameFlag2( "save/item_wk.sav"); |
286 |
-+#endif |
287 |
- |
288 |
- gameflag[40] = 4; |
289 |
- g_scene = EN_SN_ACT; |
290 |
-@@ -434,10 +477,19 @@ |
291 |
- gameflag[123] = gameflag[120]; //リプレイ選択時のステージ |
292 |
- gameflag[132] = 1; //リプレイ |
293 |
- gameflag[70] = 1; |
294 |
-- SaveGameFlag2( "save/work.sav"); |
295 |
-+#ifdef __LINUX__ |
296 |
-+ SaveGameFlag2(workfile); |
297 |
-+#else |
298 |
-+ SaveGameFlag2( "save/work.sav"); |
299 |
-+#endif |
300 |
- |
301 |
-- ResetGameFlag2( ); |
302 |
-- SaveGameFlag2( "save/item_wk.sav"); |
303 |
-+ ResetGameFlag2( ); |
304 |
-+ |
305 |
-+#ifdef __LINUX__ |
306 |
-+ SaveGameFlag2(itemfile); |
307 |
-+#else |
308 |
-+ SaveGameFlag2( "save/item_wk.sav"); |
309 |
-+#endif |
310 |
- |
311 |
- gameflag[40] = 4; |
312 |
- g_scene = EN_SN_ACT; |
313 |
|
314 |
diff --git a/games-arcade/gannatsu/files/gannatsu-104-makefile.patch b/games-arcade/gannatsu/files/gannatsu-104-makefile.patch |
315 |
deleted file mode 100644 |
316 |
index 01ef225..0000000 |
317 |
--- a/games-arcade/gannatsu/files/gannatsu-104-makefile.patch |
318 |
+++ /dev/null |
319 |
@@ -1,19 +0,0 @@ |
320 |
-diff -Naur Makefile.linux Makefile.linux |
321 |
---- Makefile.linux 2008-04-20 12:52:30.000000000 +0200 |
322 |
-+++ Makefile.linux 2009-10-31 09:51:42.000000000 +0100 |
323 |
-@@ -12,7 +12,7 @@ |
324 |
- SOURCES = $(patsubst %.o, %.c, $(OBJS)) |
325 |
- |
326 |
- ifeq ($(wildcard .depend),.depend) |
327 |
--do-it-all: gnp |
328 |
-+do-it-all: gannatsu |
329 |
- include .depend |
330 |
- else |
331 |
- do-it-all: depend recursive |
332 |
-@@ -28,5 +28,5 @@ |
333 |
- clean: |
334 |
- $(RM) $(OBJS) *~ .depend gnp.exe |
335 |
- |
336 |
--gnp: $(OBJS) |
337 |
-+gannatsu: $(OBJS) |
338 |
- $(CXX) -o $@ $(OBJS) $(LDFLAGS) |
339 |
|
340 |
diff --git a/games-arcade/gannatsu/gannatsu-104.ebuild b/games-arcade/gannatsu/gannatsu-104.ebuild |
341 |
deleted file mode 100644 |
342 |
index 1887e56..0000000 |
343 |
--- a/games-arcade/gannatsu/gannatsu-104.ebuild |
344 |
+++ /dev/null |
345 |
@@ -1,63 +0,0 @@ |
346 |
-# Copyright 1999-2009 Gentoo Foundation |
347 |
-# Distributed under the terms of the GNU General Public License v2 |
348 |
-# $Header: $ |
349 |
- |
350 |
-EAPI="2" |
351 |
- |
352 |
-MY_PN=gnp |
353 |
- |
354 |
-inherit eutils games |
355 |
- |
356 |
-DESCRIPTION="multiplatform platform puzzle game" |
357 |
-HOMEPAGE="http://maglog.jp/alpha-secret-base/Article243291.html" |
358 |
-SRC_URI="http://www.geocities.jp/dij4121/alpha/data/${MY_PN}_${PV}.zip" |
359 |
-LICENSE="Yawaraka-flexible" |
360 |
-KEYWORDS="~x86" |
361 |
-IUSE="" |
362 |
-SLOT="0" |
363 |
- |
364 |
-RDEPEND="media-libs/libsdl |
365 |
- media-libs/sdl-image |
366 |
- media-libs/sdl-gfx |
367 |
- media-libs/sdl-mixer[vorbis]" |
368 |
-DEPEND="${RDEPEND} |
369 |
- app-arch/unzip" |
370 |
- |
371 |
-S=${WORKDIR}/${MY_PN}_${PV} |
372 |
- |
373 |
-src_prepare(){ |
374 |
- rm .depend |
375 |
- epatch ${FILESDIR}/"${P}-makefile.patch" |
376 |
- epatch ${FILESDIR}/"${P}-homedir.patch" |
377 |
- sed -i -e "s:\.\./:"${GAMES_DATADIR}"/"${PN}"/:g" -i data/0/bmp.txt |
378 |
- sed -i -e "s:\.\./:"${GAMES_DATADIR}"/"${PN}"/:g" -i data/1/bmp.txt |
379 |
- sed -i -e "s:\.\./:"${GAMES_DATADIR}"/"${PN}"/:g" -i data/2/bmp.txt |
380 |
- sed -i -e "s:sound/:"${GAMES_DATADIR}"/"${PN}"/sound/:g" -i init.c |
381 |
- sed -i -e "s:data/:"${GAMES_DATADIR}"/"${PN}"/data/:g" -i act.c |
382 |
- sed -i -e "s:image/:"${GAMES_DATADIR}"/"${PN}"/image/:g" -i act.c |
383 |
- sed -i -e "s:image/:"${GAMES_DATADIR}"/"${PN}"/image/:g" -i logo.c |
384 |
- sed -i -e "s:image/:"${GAMES_DATADIR}"/"${PN}"/image/:g" -i init.c |
385 |
- sed -i -e "s:image/:"${GAMES_DATADIR}"/"${PN}"/image/:g" -i ending.c |
386 |
- sed -i -e "s:image/:"${GAMES_DATADIR}"/"${PN}"/image/:g" -i option.c |
387 |
- sed -i -e "s:image/:"${GAMES_DATADIR}"/"${PN}"/image/:g" -i title.c |
388 |
-} |
389 |
- |
390 |
-src_compile() { |
391 |
- emake -f Makefile.linux || die "make failed" |
392 |
-} |
393 |
-src_install() { |
394 |
- dogamesbin ${PN} |
395 |
- local datadir="${GAMES_DATADIR}"/"${PN}" |
396 |
- dodir ${datadir} |
397 |
- insinto "${GAMES_DATADIR}"/"${PN}" |
398 |
- doins -r sound data image || die |
399 |
- newicon "${MY_PN}_icon_alpha.png" "${PN}.png" |
400 |
- make_desktop_entry "${PN}" "${PN}" |
401 |
- dodoc readme.txt |
402 |
- prepgamesdirs |
403 |
-} |
404 |
- |
405 |
-pkg_postinst() { |
406 |
- games_pkg_postinst |
407 |
- |
408 |
-} |
409 |
\ No newline at end of file |
410 |
|
411 |
diff --git a/games-arcade/gannatsu/metadata.xml b/games-arcade/gannatsu/metadata.xml |
412 |
deleted file mode 100644 |
413 |
index 1811bf7..0000000 |
414 |
--- a/games-arcade/gannatsu/metadata.xml |
415 |
+++ /dev/null |
416 |
@@ -1,8 +0,0 @@ |
417 |
-<?xml version="1.0" encoding="UTF-8"?> |
418 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
419 |
-<pkgmetadata> |
420 |
-<maintainer type="person"> |
421 |
- <email>frostworks@×××.de</email> |
422 |
- <name>Marcel Unbehaun</name> |
423 |
-</maintainer> |
424 |
-</pkgmetadata> |