1 |
commit: f6601a859fe9257c0e4c877229a7188ca398256c |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Mar 5 20:36:58 2020 +0000 |
4 |
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> |
5 |
CommitDate: Thu Mar 5 20:36:58 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=f6601a85 |
7 |
|
8 |
games-action/gunroarhi: remove package |
9 |
|
10 |
Unavailable sources. |
11 |
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> |
12 |
|
13 |
.../gunroarhi/files/03_put_prefs_in_home_dir.diff | 92 ---------------------- |
14 |
games-action/gunroarhi/gunroarhi-0.30.ebuild | 72 ----------------- |
15 |
games-action/gunroarhi/metadata.xml | 8 -- |
16 |
3 files changed, 172 deletions(-) |
17 |
|
18 |
diff --git a/games-action/gunroarhi/files/03_put_prefs_in_home_dir.diff b/games-action/gunroarhi/files/03_put_prefs_in_home_dir.diff |
19 |
deleted file mode 100644 |
20 |
index 7f5b9aa..0000000 |
21 |
--- a/games-action/gunroarhi/files/03_put_prefs_in_home_dir.diff |
22 |
+++ /dev/null |
23 |
@@ -1,92 +0,0 @@ |
24 |
-diff -Naur gr_hi/src/abagames/gr/prefmanager.d gr_hi-p/src/abagames/gr/prefmanager.d |
25 |
---- gr_hi/src/abagames/gr/prefmanager.d 2005-09-11 02:47:40.000000000 +0200 |
26 |
-+++ gr_hi-p/src/abagames/gr/prefmanager.d 2009-08-28 12:09:08.000000000 +0200 |
27 |
-@@ -6,6 +6,9 @@ |
28 |
- module abagames.gr.prefmanager; |
29 |
- |
30 |
- private import std.stream; |
31 |
-+private import std.c.stdlib; |
32 |
-+private import std.string; |
33 |
-+private import std.file; |
34 |
- private import abagames.util.prefmanager; |
35 |
- private import abagames.gr.gamemanager; |
36 |
- |
37 |
-@@ -16,18 +19,31 @@ |
38 |
- private: |
39 |
- static const int VERSION_NUM = 14; |
40 |
- static const int VERSION_NUM_13 = 13; |
41 |
-- static const char[] PREF_FILE = "gr.prf"; |
42 |
-+ static const char[] PREF_FILE = "gunroar.prf"; |
43 |
- PrefData _prefData; |
44 |
- |
45 |
- public this() { |
46 |
- _prefData = new PrefData; |
47 |
- } |
48 |
- |
49 |
-+ public static char[] pref_dir() |
50 |
-+ { |
51 |
-+ char * home = getenv("HOME"); |
52 |
-+ if (home is null) |
53 |
-+ throw new Error("HOME environment variable not defined"); |
54 |
-+ char[] dir = std.string.toString(home) ~ "/.gunroarhi"; |
55 |
-+ try { |
56 |
-+ mkdir(dir); |
57 |
-+ } catch (FileException e) { |
58 |
-+ } |
59 |
-+ return dir; |
60 |
-+ } |
61 |
-+ |
62 |
- public void load() { |
63 |
- auto File fd = new File; |
64 |
- try { |
65 |
- int ver; |
66 |
-- fd.open(PREF_FILE); |
67 |
-+ fd.open(pref_dir() ~ "/" ~ PREF_FILE); |
68 |
- fd.read(ver); |
69 |
- if (ver == VERSION_NUM_13) |
70 |
- _prefData.loadVer13(fd); |
71 |
-@@ -45,7 +61,7 @@ |
72 |
- |
73 |
- public void save() { |
74 |
- auto File fd = new File; |
75 |
-- fd.create(PREF_FILE); |
76 |
-+ fd.create(pref_dir() ~ "/" ~ PREF_FILE); |
77 |
- fd.write(VERSION_NUM); |
78 |
- _prefData.save(fd); |
79 |
- fd.close(); |
80 |
-diff -Naur gr_hi/src/abagames/gr/replay.d gr_hi-p/src/abagames/gr/replay.d |
81 |
---- gr_hi/src/abagames/gr/replay.d 2006-04-06 11:02:54.000000000 +0200 |
82 |
-+++ gr_hi-p/src/abagames/gr/replay.d 2009-08-28 12:10:19.000000000 +0200 |
83 |
-@@ -12,13 +12,13 @@ |
84 |
- private import abagames.util.sdl.mouse; |
85 |
- private import abagames.gr.gamemanager; |
86 |
- private import abagames.gr.mouseandpad; |
87 |
-+private import abagames.gr.prefmanager; |
88 |
- |
89 |
- /** |
90 |
- * Save/Load a replay data. |
91 |
- */ |
92 |
- public class ReplayData { |
93 |
- public: |
94 |
-- static const char[] dir = "replay"; |
95 |
- static const int VERSION_NUM = -11; //otoyan change |
96 |
- InputRecord!(PadState) padInputRecord; |
97 |
- InputRecord!(TwinStickState) twinStickInputRecord; |
98 |
-@@ -32,7 +32,7 @@ |
99 |
- |
100 |
- public void save(char[] fileName) { |
101 |
- auto File fd = new File; |
102 |
-- fd.create(dir ~ "/" ~ fileName); |
103 |
-+ fd.create(PrefManager.pref_dir() ~ "/" ~ fileName); |
104 |
- fd.write(VERSION_NUM); |
105 |
- fd.write(seed); |
106 |
- fd.write(score); |
107 |
-@@ -59,7 +59,7 @@ |
108 |
- |
109 |
- public void load(char[] fileName) { |
110 |
- auto File fd = new File; |
111 |
-- fd.open(dir ~ "/" ~ fileName); |
112 |
-+ fd.open(PrefManager.pref_dir() ~ "/" ~ fileName); |
113 |
- int ver; |
114 |
- fd.read(ver); |
115 |
- if (ver != VERSION_NUM) |
116 |
|
117 |
diff --git a/games-action/gunroarhi/gunroarhi-0.30.ebuild b/games-action/gunroarhi/gunroarhi-0.30.ebuild |
118 |
deleted file mode 100644 |
119 |
index 609e280..0000000 |
120 |
--- a/games-action/gunroarhi/gunroarhi-0.30.ebuild |
121 |
+++ /dev/null |
122 |
@@ -1,72 +0,0 @@ |
123 |
-# Copyright 1999-2009 Gentoo Foundation |
124 |
-# Distributed under the terms of the GNU General Public License v2 |
125 |
-# $Header: $ |
126 |
- |
127 |
-EAPI="2" |
128 |
- |
129 |
-inherit d-games |
130 |
- |
131 |
-MY_PD=gunroar |
132 |
-MY_PDV=0_15 |
133 |
-MY_PDPV=0.15 |
134 |
-MY_PN=gr_hi |
135 |
-MY_PV=${PV//./_} |
136 |
- |
137 |
-DESCRIPTION="Guns, Guns, Guns! 360-degree gunboat shooter, fork of ABAs 'Gunroar'" |
138 |
-HOMEPAGE="http://www.edit.ne.jp/~otoyan/soft/gr_hi.html" |
139 |
-SRC_URI="http://www.edit.ne.jp/~otoyan/soft/gr_hi/${MY_PN}${MY_PV}.zip |
140 |
- mirror://debian/pool/main/g/${MY_PD}/${MY_PD}_${MY_PDPV}.dfsg1-3.diff.gz" |
141 |
- |
142 |
-LICENSE="BSD" |
143 |
-SLOT="0" |
144 |
-KEYWORDS="~ppc ~x86" |
145 |
-IUSE="" |
146 |
- |
147 |
-RDEPEND="media-libs/libsdl |
148 |
- media-libs/mesa |
149 |
- media-libs/sdl-mixer" |
150 |
- |
151 |
-DEPEND="${RDEPEND}" |
152 |
- |
153 |
-S=${WORKDIR}/${MY_PN} |
154 |
- |
155 |
-src_prepare(){ |
156 |
- # using frostworks patches with debian's cleanups and minor patches |
157 |
- epatch "${WORKDIR}"/${MY_PD}_${MY_PDPV}.dfsg1-3.diff |
158 |
- sed -i -e "s:a7xpg-0.11.dfsg1/::g" -i "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/makefile.patch |
159 |
- sed -i -e "s:${MY_PD}:${PN}:g" -i "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/makefile.patch |
160 |
- sed -i -e "s:${MY_PD}_${MY_PDPV}.dfsg1.orig/:old-gr:g" -i "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/03_put_prefs_in_home_dir.diff |
161 |
- sed -i -e "s:${MY_PD}_${MY_PDPV}.dfsg1/:new-gr:g" -i "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/03_put_prefs_in_home_dir.diff |
162 |
- sed -i -e "s:${MY_PD}_${MY_PDPV}.dfsg1.hi.orig/:old-gr:g" -i "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/gunroar-hot-iron.patch |
163 |
- sed -i -e "s:${MY_PD}_${MY_PDPV}.dfsg1.hi/:new-gr:g" -i "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/gunroar-hot-iron.patch |
164 |
- epatch "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/01_sdl_fix_imports.diff |
165 |
- epatch "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/02_d_language_changes.diff |
166 |
- epatch "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/04_adapt_build_file_to_linux.diff |
167 |
- epatch "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/windowed.patch |
168 |
- epatch "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/makefile.patch |
169 |
- epatch "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/gdc-0.24-semantics-for-version.patch |
170 |
- epatch "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/window-resizing.patch |
171 |
- epatch "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/avoid-segfault-when-sdl-fails.patch |
172 |
- epatch "${FILESDIR}"/03_put_prefs_in_home_dir.diff |
173 |
- sed -i \ |
174 |
- -e 's:"\(images/[^"]*\)":"'${GAMES_DATADIR}'/'${PN}'/\1":g' -i src/abagames/util/sdl/texture.d \ |
175 |
- -e 's:"\(sounds/[^"]*\)":"'${GAMES_DATADIR}'/'${PN}'/\1":g' -i src/abagames/util/sdl/sound.d \ |
176 |
- || die "sed failed" |
177 |
-} |
178 |
- |
179 |
-src_install() { |
180 |
- dogamesbin ${PN} |
181 |
- |
182 |
- local datadir="${GAMES_DATADIR}"/${PN} |
183 |
- dodir ${datadir} |
184 |
- insinto "${GAMES_DATADIR}"/${PN} |
185 |
- doins -r images sounds || die |
186 |
- newicon "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/${MY_PD}.xpm ${PN}.xpm |
187 |
- make_desktop_entry ${PN} ${PN} |
188 |
- dodoc readme* |
189 |
- prepgamesdirs |
190 |
-} |
191 |
- |
192 |
-pkg_postinst() { |
193 |
- games_pkg_postinst |
194 |
-} |
195 |
|
196 |
diff --git a/games-action/gunroarhi/metadata.xml b/games-action/gunroarhi/metadata.xml |
197 |
deleted file mode 100644 |
198 |
index 5d0ede2..0000000 |
199 |
--- a/games-action/gunroarhi/metadata.xml |
200 |
+++ /dev/null |
201 |
@@ -1,8 +0,0 @@ |
202 |
-<?xml version="1.0" encoding="UTF-8"?> |
203 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
204 |
-<pkgmetadata> |
205 |
-<maintainer> |
206 |
- <email>frostworks@×××.de</email> |
207 |
- <name>Marcel Unbehaun</name> |
208 |
-</maintainer> |
209 |
-</pkgmetadata> |