Gentoo Archives: gentoo-commits

From: "Azamat H. Hackimov" <winterheart@××××××.ru>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-arcade/maxfighter/, media-libs/mysdl/, media-libs/mysdl/files/
Date: Thu, 08 Aug 2019 21:47:00
Message-Id: 1565295244.15840524446ed980ad0d99ed4ae43883f845447a.winterheart@gentoo
1 commit: 15840524446ed980ad0d99ed4ae43883f845447a
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Thu Aug 8 20:14:04 2019 +0000
4 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
5 CommitDate: Thu Aug 8 20:14:04 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=15840524
7
8 games-arcade/maxfighter and media-libs/mysdl: remove
9
10 Dead upstream, unmaintained, deprecated eclasses
11
12 games-arcade/maxfighter/maxfighter-1.0.ebuild | 55 -------------------
13 media-libs/mysdl/files/mysdl_1.0-gcc4.patch | 59 --------------------
14 media-libs/mysdl/files/mysdl_1.0-pnghack.patch | 76 --------------------------
15 media-libs/mysdl/mysdl-1.0.ebuild | 46 ----------------
16 4 files changed, 236 deletions(-)
17
18 diff --git a/games-arcade/maxfighter/maxfighter-1.0.ebuild b/games-arcade/maxfighter/maxfighter-1.0.ebuild
19 deleted file mode 100644
20 index d3711fa..0000000
21 --- a/games-arcade/maxfighter/maxfighter-1.0.ebuild
22 +++ /dev/null
23 @@ -1,55 +0,0 @@
24 -# Copyright 1999-2009 Gentoo Foundation
25 -# Distributed under the terms of the GNU General Public License v2
26 -# $Header: $
27 -
28 -EAPI="2"
29 -
30 -inherit eutils games
31 -
32 -DESCRIPTION="Vertically-scrolling asteroids-style shoot-em-up"
33 -HOMEPAGE="http://maxfighter.musgit.com/"
34 -SRC_URI="http://source.musgit.com/files/${PN}_${PV}.tar.bz2"
35 -LICENSE="CCPL-Attribution-ShareAlike-NonCommercial-2.5
36 - GPL-2"
37 -KEYWORDS="~x86"
38 -IUSE=""
39 -SLOT="0"
40 -
41 -RDEPEND="media-libs/mysdl"
42 -DEPEND="${RDEPEND}"
43 -
44 -S=${WORKDIR}/${PN}_${PV}
45 -release=${S}/dist/linux/${PN}
46 -
47 -src_compile() {
48 - scons dist=1 || die "scons failed"
49 -}
50 -
51 -src_install() {
52 - local dir=${GAMES_DATADIR}/${PN}
53 - local state_dir=${GAMES_STATEDIR}/${PN}
54 -
55 - dogamesbin "${release}/${PN}" || die "dogamesbin failed"
56 -
57 - insinto "${dir}"
58 - doins -r "${release}"/resources/* || die "doins resources failed"
59 -
60 - dohtml -r "${release}"/docs/* || die "dohtml docs failed"
61 -
62 - # Use a suitable icon from the many images available
63 - newicon "${release}"/resources/images/player_1_0006.png ${PN}.png \
64 - || die "newicon failed"
65 - make_desktop_entry ${PN} "Max Fighter" ${PN}.png
66 -
67 - # Shared highscores file
68 - dodir "${state_dir}"
69 - touch "${D}/${state_dir}"/highscores.xml || die "touch failed"
70 - fperms g+w "${state_dir}"/highscores.xml || die "fperms failed"
71 -
72 - prepgamesdirs
73 -}
74 -
75 -pkg_postinst() {
76 - games_pkg_postinst
77 -
78 -}
79 \ No newline at end of file
80
81 diff --git a/media-libs/mysdl/files/mysdl_1.0-gcc4.patch b/media-libs/mysdl/files/mysdl_1.0-gcc4.patch
82 deleted file mode 100644
83 index ce891ad..0000000
84 --- a/media-libs/mysdl/files/mysdl_1.0-gcc4.patch
85 +++ /dev/null
86 @@ -1,59 +0,0 @@
87 -diff -Naur mysdl_1.0/src/audio/music.h mysdl_1.0-p/src/audio/music.h
88 ---- mysdl_1.0/src/audio/music.h 2006-08-18 02:46:18.000000000 +0200
89 -+++ mysdl_1.0-p/src/audio/music.h 2009-09-28 14:45:17.000000000 +0200
90 -@@ -79,7 +79,7 @@
91 -
92 - MusicStream *currentStream,*nextStream;
93 -
94 -- void MusicManager::stream();
95 -+ void stream();
96 -
97 - public:
98 - MusicManager();
99 -diff -Naur mysdl_1.0/src/audio/sources.h mysdl_1.0-p/src/audio/sources.h
100 ---- mysdl_1.0/src/audio/sources.h 2006-08-18 02:46:12.000000000 +0200
101 -+++ mysdl_1.0-p/src/audio/sources.h 2009-09-28 14:45:01.000000000 +0200
102 -@@ -81,7 +81,7 @@
103 - ~Source();
104 -
105 - bool operator<(const Source &source) const;
106 -- void Source::dropSound();
107 -+ void dropSound();
108 - };
109 -
110 - class Sound
111 -diff -Naur mysdl_1.0/src/gui/core.h mysdl_1.0-p/src/gui/core.h
112 ---- mysdl_1.0/src/gui/core.h 2006-08-18 02:48:51.000000000 +0200
113 -+++ mysdl_1.0-p/src/gui/core.h 2009-09-28 14:46:08.000000000 +0200
114 -@@ -524,7 +524,7 @@
115 - * found there, or 0 if the coordinate lies outside the component's client
116 - * rectangle.
117 - */
118 -- Component *Component::find(const Vector2D pos);
119 -+ Component *find(const Vector2D pos);
120 -
121 - /**
122 - * Determines whether the component is enabled <b>and</b> visible.
123 -diff -Naur mysdl_1.0/src/mysdl.cpp mysdl_1.0-p/src/mysdl.cpp
124 ---- mysdl_1.0/src/mysdl.cpp 2006-08-20 00:16:03.000000000 +0200
125 -+++ mysdl_1.0-p/src/mysdl.cpp 2009-09-28 14:49:29.000000000 +0200
126 -@@ -21,6 +21,7 @@
127 - #include <signal.h>
128 - #include <stdlib.h>
129 - #include <iostream>
130 -+#include <assert.h>
131 -
132 - #include "SDL/SDL_image.h"
133 - #include "SDL/SDL_opengl.h"
134 -diff -Naur mysdl_1.0/src/resources.h mysdl_1.0-p/src/resources.h
135 ---- mysdl_1.0/src/resources.h 2006-08-19 04:18:48.000000000 +0200
136 -+++ mysdl_1.0-p/src/resources.h 2009-09-28 14:31:42.000000000 +0200
137 -@@ -523,7 +523,7 @@
138 - }
139 -
140 - void getFromNode(const xml::Node *root,const std::string &baseDir="");
141 -- virtual BasicResourceBank* ResourceManager::createResourceBank(const std::string &name);
142 -+ virtual BasicResourceBank* createResourceBank(const std::string &name);
143 - };
144 -
145 - class RefreshingBankHandler
146
147 diff --git a/media-libs/mysdl/files/mysdl_1.0-pnghack.patch b/media-libs/mysdl/files/mysdl_1.0-pnghack.patch
148 deleted file mode 100644
149 index fcc9152..0000000
150 --- a/media-libs/mysdl/files/mysdl_1.0-pnghack.patch
151 +++ /dev/null
152 @@ -1,76 +0,0 @@
153 -diff -Nauir mysdl_1.0-p/src/mysdl.cpp mysdl_1.0-p2/src/mysdl.cpp
154 ---- mysdl_1.0-p/src/mysdl.cpp 2009-09-28 14:49:29.000000000 +0200
155 -+++ mysdl_1.0-p2/src/mysdl.cpp 2009-09-28 16:16:18.000000000 +0200
156 -@@ -771,23 +771,23 @@
157 - throw std::string("Could not open file \"")+std::string(filename)+std::string("\" for writing.");
158 - }
159 -
160 -- png_ptr=png_create_write_struct(PNG_LIBPNG_VER_STRING,0,0,0);
161 -+// png_ptr=png_create_write_struct(PNG_LIBPNG_VER_STRING,0,0,0);
162 -
163 - if(png_ptr==0)
164 - {
165 - fclose(file);
166 -- png_destroy_write_struct(&png_ptr,(png_infopp)0);
167 -+// png_destroy_write_struct(&png_ptr,(png_infopp)0);
168 -
169 - throw std::string("Could not create libpng data structures.");
170 - }
171 - else
172 - {
173 -- info_ptr=png_create_info_struct(png_ptr);
174 -+// info_ptr=png_create_info_struct(png_ptr);
175 -
176 - if(info_ptr==0)
177 - {
178 - fclose(file);
179 -- png_destroy_write_struct(&png_ptr,(png_infopp)0);
180 -+// png_destroy_write_struct(&png_ptr,(png_infopp)0);
181 -
182 - throw std::string("Could not create libpng data structures.");
183 - }
184 -@@ -796,13 +796,13 @@
185 - if(setjmp(png_jmpbuf(png_ptr)))
186 - {
187 - fclose(file);
188 -- png_destroy_write_struct(&png_ptr,(png_infopp)NULL);
189 -+// png_destroy_write_struct(&png_ptr,(png_infopp)NULL);
190 -
191 - throw std::string("Could not set libpng error callback.");
192 - }
193 - else
194 - {
195 -- png_init_io(png_ptr,file);
196 -+// png_init_io(png_ptr,file);
197 -
198 - info_ptr->width=surf->w;
199 - info_ptr->height=surf->h;
200 -@@ -811,7 +811,7 @@
201 - info_ptr->interlace_type=1;
202 - info_ptr->valid=0;
203 -
204 -- png_write_info(png_ptr,info_ptr);
205 -+// png_write_info(png_ptr,info_ptr);
206 -
207 - // --- Save the picture... ---
208 - unsigned char **png_rows;
209 -@@ -832,7 +832,7 @@
210 - }
211 - }
212 -
213 -- png_write_image(png_ptr,png_rows);
214 -+// png_write_image(png_ptr,png_rows);
215 -
216 - for(y=0; y<surf->h; y++)
217 - {
218 -@@ -840,8 +840,8 @@
219 - }
220 -
221 - free(png_rows);
222 -- png_write_end(png_ptr, NULL);
223 -- png_destroy_write_struct(&png_ptr, &info_ptr);
224 -+// png_write_end(png_ptr, NULL);
225 -+// png_destroy_write_struct(&png_ptr, &info_ptr);
226 -
227 - fclose(file);
228 - }
229
230 diff --git a/media-libs/mysdl/mysdl-1.0.ebuild b/media-libs/mysdl/mysdl-1.0.ebuild
231 deleted file mode 100644
232 index ec8c49a..0000000
233 --- a/media-libs/mysdl/mysdl-1.0.ebuild
234 +++ /dev/null
235 @@ -1,46 +0,0 @@
236 -# Copyright 1999-2009 Gentoo Foundation
237 -# Distributed under the terms of the GNU General Public License v2
238 -# $Header: $
239 -
240 -EAPI="2"
241 -
242 -inherit eutils toolchain-funcs
243 -
244 -DESCRIPTION="a gaming framework and library"
245 -HOMEPAGE="http://source.musgit.com/"
246 -SRC_URI="http://source.musgit.com/files/${PN}_${PV}.tar.bz2"
247 -
248 -LICENSE="GPL-2"
249 -SLOT="0"
250 -KEYWORDS="~ppc ~x86"
251 -IUSE=""
252 -
253 -RDEPEND="media-libs/libsdl
254 - media-libs/mesa
255 - media-libs/openal
256 - media-libs/libogg
257 - dev-libs/expat
258 - media-libs/sdl-image"
259 -DEPEND="${RDEPEND}
260 - dev-util/scons"
261 -
262 -S=${WORKDIR}/${PN}_${PV}
263 -
264 -src_prepare(){
265 - epatch ${FILESDIR}/"${PN}_${PV}-gcc4.patch"
266 - epatch ${FILESDIR}/"${PN}_${PV}-pnghack.patch"
267 -}
268 -
269 -src_compile() {
270 - scons dist=1 || die
271 -}
272 -
273 -src_install() {
274 - dodoc readme.txt
275 - libdir=$(get_libdir)
276 - dodir /usr/${libdir}
277 - insinto /usr/${libdir}
278 - doins dist/linux/lib/* || die
279 - insinto /usr/include/
280 - doins -r dist/linux/include/* || die
281 -}