1 |
commit: f46178ffe2710fa5ff10daa4cd6ae31b515f8ea0 |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Nov 28 05:48:03 2011 +0000 |
4 |
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> |
5 |
CommitDate: Mon Nov 28 05:48:03 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=f46178ff |
7 |
|
8 |
[games-action/d2x-rebirth] Version bump to 0.57.1 |
9 |
Major cleanup of ebuild |
10 |
- Added editor USE-flag |
11 |
- Updated digests for mods |
12 |
- Added new music mods |
13 |
- Now game have unified binary instead -sdl and -gl suffixes |
14 |
|
15 |
(Portage version: 2.1.10.11/git/Linux x86_64, unsigned Manifest commit) |
16 |
|
17 |
--- |
18 |
...birth-0.56.ebuild => d2x-rebirth-0.57.1.ebuild} | 41 ++--- |
19 |
.../files/d2x-rebirth-0.56-printf-fix.patch | 188 -------------------- |
20 |
games-action/d2x-rebirth/metadata.xml | 7 +- |
21 |
3 files changed, 25 insertions(+), 211 deletions(-) |
22 |
|
23 |
diff --git a/games-action/d2x-rebirth/d2x-rebirth-0.56.ebuild b/games-action/d2x-rebirth/d2x-rebirth-0.57.1.ebuild |
24 |
similarity index 54% |
25 |
rename from games-action/d2x-rebirth/d2x-rebirth-0.56.ebuild |
26 |
rename to games-action/d2x-rebirth/d2x-rebirth-0.57.1.ebuild |
27 |
index 16cda50..451b59f 100644 |
28 |
--- a/games-action/d2x-rebirth/d2x-rebirth-0.56.ebuild |
29 |
+++ b/games-action/d2x-rebirth/d2x-rebirth-0.57.1.ebuild |
30 |
@@ -2,60 +2,59 @@ |
31 |
# Distributed under the terms of the GNU General Public License v2 |
32 |
# $Header: $ |
33 |
|
34 |
-EAPI="3" |
35 |
+EAPI=3 |
36 |
|
37 |
inherit games scons-utils |
38 |
|
39 |
DESCRIPTION="Descent Rebirth - enhanced Descent 2 engine" |
40 |
HOMEPAGE="http://www.dxx-rebirth.com/" |
41 |
SRC_URI="mirror://sourceforge/dxx-rebirth/${PN}_v${PV}-src.tar.gz |
42 |
- linguas_de? ( http://www.dxx-rebirth.com/download/dxx/res/d2xr-briefings-ger.zip ) |
43 |
- music? ( http://www.dxx-rebirth.com/download/dxx/res/d2xr-sc55-music.zip )" |
44 |
+ linguas_de? ( http://www.dxx-rebirth.com/download/dxx/res/d2xr-briefings-ger.zip ) |
45 |
+ music_awe32? ( http://www.dxx-rebirth.com/download/dxx/res/d2xr-awe32enh-music.zip ) |
46 |
+ music_opl3? ( http://www.dxx-rebirth.com/download/dxx/res/d2xr-opl3-music.zip ) |
47 |
+ music_sc55? ( http://www.dxx-rebirth.com/download/dxx/res/d2xr-sc55-music.zip )" |
48 |
|
49 |
LICENSE="D1X GPL-2 as-is" |
50 |
SLOT="0" |
51 |
KEYWORDS="~amd64 ~x86" |
52 |
-IUSE="debug ipv6 linguas_de music opengl" |
53 |
+IUSE="debug editor ipv6 linguas_de music_awe32 music_opl3 music_sc55 opengl" |
54 |
|
55 |
DEPEND="dev-games/physfs[hog,mvl,zip] |
56 |
media-libs/libsdl |
57 |
- media-libs/sdl-mixer" |
58 |
+ media-libs/sdl-mixer[vorbis]" |
59 |
RDEPEND="${DEPEND} |
60 |
- virtual/opengl |
61 |
- virtual/glu" |
62 |
+ opengl? ( virtual/opengl virtual/glu )" |
63 |
|
64 |
S=${WORKDIR}/${PN}_v${PV}-src |
65 |
|
66 |
src_unpack() { |
67 |
+ # We need unpack only sources. Keep zipped mods intact! |
68 |
unpack ${PN}_v${PV}-src.tar.gz |
69 |
} |
70 |
|
71 |
-src_prepare() { |
72 |
- epatch "${FILESDIR}"/${P}-printf-fix.patch |
73 |
-} |
74 |
- |
75 |
src_compile() { |
76 |
scons ${MAKEOPTS} \ |
77 |
sharepath="${GAMES_DATADIR}/d2x" \ |
78 |
sdlmixer=1 \ |
79 |
+ use_tracker=1 \ |
80 |
+ use_udp=1 \ |
81 |
$(use_scons debug) \ |
82 |
- $(use_scons !opengl sdl_only) \ |
83 |
+ $(use_scons editor) \ |
84 |
+ $(use_scons opengl) \ |
85 |
$(use_scons ipv6) |
86 |
} |
87 |
|
88 |
src_install() { |
89 |
- edos2unix INSTALL.txt README.txt |
90 |
- dodoc INSTALL.txt README.txt |
91 |
+ edos2unix {INSTALL,README}.txt |
92 |
+ dodoc {INSTALL,README}.txt |
93 |
insinto "${GAMES_DATADIR}/d2x" |
94 |
- use linguas_de && doins "${DISTDIR}"/d2xr-briefings-ger.zip |
95 |
- use music && doins "${DISTDIR}"/d2xr-sc55-music.zip |
96 |
+ use linguas_de && doins "${DISTDIR}"/d2xr-briefings-ger.zip |
97 |
+ use music_awe32 && doins "${DISTDIR}"/d2xr-awe32enh-music.zip |
98 |
+ use music_opl3 && doins "${DISTDIR}"/d2xr-opl3-music.zip |
99 |
+ use music_sc55 && doins "${DISTDIR}"/d2xr-sc55-music.zip |
100 |
doicon ${PN}.xpm |
101 |
|
102 |
- if use opengl ; then |
103 |
- newgamesbin d2x-rebirth-gl d2x-rebirth |
104 |
- else |
105 |
- newgamesbin d2x-rebirth-sdl d2x-rebirth |
106 |
- fi |
107 |
+ dogamesbin d2x-rebirth |
108 |
make_desktop_entry d2x-rebirth "Descent 2 Rebirth" ${PN} |
109 |
prepgamesdirs |
110 |
} |
111 |
|
112 |
diff --git a/games-action/d2x-rebirth/files/d2x-rebirth-0.56-printf-fix.patch b/games-action/d2x-rebirth/files/d2x-rebirth-0.56-printf-fix.patch |
113 |
deleted file mode 100644 |
114 |
index bc02dab..0000000 |
115 |
--- a/games-action/d2x-rebirth/files/d2x-rebirth-0.56-printf-fix.patch |
116 |
+++ /dev/null |
117 |
@@ -1,188 +0,0 @@ |
118 |
-=== modified file 'arch/sdl/jukebox.c' |
119 |
---- arch/sdl/jukebox.c 2010-09-26 13:15:20 +0000 |
120 |
-+++ arch/sdl/jukebox.c 2010-10-14 14:46:20 +0000 |
121 |
-@@ -164,7 +164,7 @@ |
122 |
- if (PHYSFS_isDirectory(GameCfg.CMLevelMusicPath)) // it's a child of Sharepath, build full path |
123 |
- { |
124 |
- PHYSFSX_getRealPath(GameCfg.CMLevelMusicPath,abspath); |
125 |
-- snprintf(GameCfg.CMLevelMusicPath,sizeof(char)*PATH_MAX,abspath); |
126 |
-+ snprintf(GameCfg.CMLevelMusicPath,sizeof(char)*PATH_MAX,"%s",abspath); |
127 |
- } |
128 |
- } |
129 |
- |
130 |
- |
131 |
-=== modified file 'include/cfile.h' |
132 |
---- include/cfile.h 2010-09-25 03:35:23 +0000 |
133 |
-+++ include/cfile.h 2010-10-14 14:46:20 +0000 |
134 |
-@@ -45,7 +45,7 @@ |
135 |
- { |
136 |
- char hogname2[PATH_MAX], pathname[PATH_MAX]; |
137 |
- |
138 |
-- snprintf(hogname2, strlen(hogname)+1, hogname); |
139 |
-+ snprintf(hogname2, strlen(hogname)+1, "%s", hogname); |
140 |
- PHYSFSEXT_locateCorrectCase(hogname2); |
141 |
- |
142 |
- if (!PHYSFSX_getRealPath(hogname2, pathname)) |
143 |
-@@ -58,7 +58,7 @@ |
144 |
- { |
145 |
- char hogname2[PATH_MAX], pathname[PATH_MAX]; |
146 |
- |
147 |
-- snprintf(hogname2, strlen(hogname)+1, hogname); |
148 |
-+ snprintf(hogname2, strlen(hogname)+1, "%s", hogname); |
149 |
- PHYSFSEXT_locateCorrectCase(hogname2); |
150 |
- |
151 |
- if (!PHYSFSX_getRealPath(hogname2, pathname)) |
152 |
-@@ -74,7 +74,7 @@ |
153 |
- char hogname2[PATH_MAX]; |
154 |
- int size; |
155 |
- |
156 |
-- snprintf(hogname2, strlen(hogname)+1, hogname); |
157 |
-+ snprintf(hogname2, strlen(hogname)+1, "%s", hogname); |
158 |
- PHYSFSEXT_locateCorrectCase(hogname2); |
159 |
- |
160 |
- fp = PHYSFS_openRead(hogname2); |
161 |
- |
162 |
-=== modified file 'main/console.c' |
163 |
---- main/console.c 2010-02-08 14:28:12 +0000 |
164 |
-+++ main/console.c 2010-10-14 14:46:20 +0000 |
165 |
-@@ -82,7 +82,7 @@ |
166 |
- con_add_buffer_line(priority, buffer); |
167 |
- |
168 |
- /* Print output to stdout */ |
169 |
-- printf(buffer); |
170 |
-+ printf("%s",buffer); |
171 |
- |
172 |
- /* Print output to gamelog.txt */ |
173 |
- if (gamelog_fp) |
174 |
- |
175 |
-=== modified file 'main/hud.c' |
176 |
---- main/hud.c 2010-08-03 15:03:56 +0000 |
177 |
-+++ main/hud.c 2010-10-14 14:46:20 +0000 |
178 |
-@@ -154,7 +154,7 @@ |
179 |
- { |
180 |
- HUD_nmessages++; |
181 |
- } |
182 |
-- snprintf(HUD_messages[HUD_nmessages-1].message, sizeof(char)*HUD_MESSAGE_LENGTH, message); |
183 |
-+ snprintf(HUD_messages[HUD_nmessages-1].message, sizeof(char)*HUD_MESSAGE_LENGTH, "%s", message); |
184 |
- if (HUD_nmessages-HUD_MAX_NUM_DISP < 0) |
185 |
- HUD_messages[HUD_nmessages-1].time = F1_0*3; // one message - display 3 secs |
186 |
- else |
187 |
- |
188 |
-=== modified file 'main/menu.c' |
189 |
---- main/menu.c 2010-10-14 09:50:11 +0000 |
190 |
-+++ main/menu.c 2010-10-14 14:46:20 +0000 |
191 |
-@@ -1606,9 +1606,9 @@ |
192 |
- char old_CMLevelMusicPath[PATH_MAX+1], old_CMMiscMusic0[PATH_MAX+1]; |
193 |
- |
194 |
- memset(old_CMLevelMusicPath, 0, sizeof(char)*(PATH_MAX+1)); |
195 |
-- snprintf(old_CMLevelMusicPath, strlen(GameCfg.CMLevelMusicPath)+1, GameCfg.CMLevelMusicPath); |
196 |
-+ snprintf(old_CMLevelMusicPath, strlen(GameCfg.CMLevelMusicPath)+1, "%s", GameCfg.CMLevelMusicPath); |
197 |
- memset(old_CMMiscMusic0, 0, sizeof(char)*(PATH_MAX+1)); |
198 |
-- snprintf(old_CMMiscMusic0, strlen(GameCfg.CMMiscMusic[SONG_TITLE])+1, GameCfg.CMMiscMusic[SONG_TITLE]); |
199 |
-+ snprintf(old_CMMiscMusic0, strlen(GameCfg.CMMiscMusic[SONG_TITLE])+1, "%s", GameCfg.CMMiscMusic[SONG_TITLE]); |
200 |
- |
201 |
- MALLOC(m, newmenu_item, SOUND_MENU_NITEMS); |
202 |
- if (!m) |
203 |
- |
204 |
-=== modified file 'main/mission.c' |
205 |
---- main/mission.c 2010-08-24 14:02:38 +0000 |
206 |
-+++ main/mission.c 2010-10-14 14:46:20 +0000 |
207 |
-@@ -716,19 +716,19 @@ |
208 |
- { |
209 |
- char *tmp, *ptr; |
210 |
- MALLOC(tmp, char, FILENAME_LEN); |
211 |
-- snprintf(tmp, FILENAME_LEN, v); |
212 |
-+ snprintf(tmp, FILENAME_LEN, "%s", v); |
213 |
- if ((ptr = strrchr(tmp, '.'))) // if there's a filename extension, kill it. No one knows it's the right one. |
214 |
- *ptr = '\0'; |
215 |
- strncat(tmp, ".tex", sizeof(char)*FILENAME_LEN); // apply tex-extenstion |
216 |
- if (cfexist(tmp)) // check if this file exists ... |
217 |
-- snprintf(Briefing_text_filename, FILENAME_LEN, tmp); // ... and apply ... |
218 |
-+ snprintf(Briefing_text_filename, FILENAME_LEN, "%s", tmp); // ... and apply ... |
219 |
- else // ... otherwise ... |
220 |
- { |
221 |
- if ((ptr = strrchr(tmp, '.'))) |
222 |
- *ptr = '\0'; |
223 |
- strncat(tmp, ".txb", sizeof(char)*FILENAME_LEN); // apply txb extension |
224 |
- if (cfexist(tmp)) // check if this file exists ... |
225 |
-- snprintf(Briefing_text_filename, FILENAME_LEN, tmp); // ... and apply ... |
226 |
-+ snprintf(Briefing_text_filename, FILENAME_LEN, "%s", tmp); // ... and apply ... |
227 |
- } |
228 |
- d_free(tmp); |
229 |
- } |
230 |
-@@ -741,19 +741,19 @@ |
231 |
- { |
232 |
- char *tmp, *ptr; |
233 |
- MALLOC(tmp, char, FILENAME_LEN); |
234 |
-- snprintf(tmp, FILENAME_LEN, v); |
235 |
-+ snprintf(tmp, FILENAME_LEN, "%s", v); |
236 |
- if ((ptr = strrchr(tmp, '.'))) // if there's a filename extension, kill it. No one knows it's the right one. |
237 |
- *ptr = '\0'; |
238 |
- strncat(tmp, ".tex", sizeof(char)*FILENAME_LEN); // apply tex-extenstion |
239 |
- if (cfexist(tmp)) // check if this file exists ... |
240 |
-- snprintf(Briefing_text_filename, FILENAME_LEN, tmp); // ... and apply ... |
241 |
-+ snprintf(Briefing_text_filename, FILENAME_LEN, "%s", tmp); // ... and apply ... |
242 |
- else // ... otherwise ... |
243 |
- { |
244 |
- if ((ptr = strrchr(tmp, '.'))) |
245 |
- *ptr = '\0'; |
246 |
- strncat(tmp, ".txb", sizeof(char)*FILENAME_LEN); // apply txb extension |
247 |
- if (cfexist(tmp)) // check if this file exists ... |
248 |
-- snprintf(Ending_text_filename, FILENAME_LEN, tmp); // ... and apply ... |
249 |
-+ snprintf(Ending_text_filename, FILENAME_LEN, "%s", tmp); // ... and apply ... |
250 |
- } |
251 |
- d_free(tmp); |
252 |
- } |
253 |
- |
254 |
-=== modified file 'main/net_ipx.c' |
255 |
---- main/net_ipx.c 2010-09-01 17:01:51 +0000 |
256 |
-+++ main/net_ipx.c 2010-10-14 14:46:20 +0000 |
257 |
-@@ -5824,7 +5824,7 @@ |
258 |
- if(!netgame->mission_title) |
259 |
- info+=sprintf(info,"Descent2: CounterStrike"); |
260 |
- else |
261 |
-- info+=sprintf(info,netgame->mission_title); |
262 |
-+ info+=sprintf(info,"%s",netgame->mission_title); |
263 |
- |
264 |
- info+=sprintf (info," - Lvl %i",netgame->levelnum); |
265 |
- info+=sprintf (info,"\n\nDifficulty: %s",MENU_DIFFICULTY_TEXT(netgame->difficulty)); |
266 |
- |
267 |
-=== modified file 'main/net_udp.c' |
268 |
---- main/net_udp.c 2010-09-01 17:01:51 +0000 |
269 |
-+++ main/net_udp.c 2010-10-14 14:46:20 +0000 |
270 |
-@@ -5183,7 +5183,7 @@ |
271 |
- if(!netgame->mission_title) |
272 |
- info+=sprintf(info,"Descent2: CounterStrike"); |
273 |
- else |
274 |
-- info+=sprintf(info,netgame->mission_title); |
275 |
-+ info+=sprintf(info,"%s",netgame->mission_title); |
276 |
- |
277 |
- info+=sprintf (info," - Lvl %i",netgame->levelnum); |
278 |
- info+=sprintf (info,"\n\nDifficulty: %s",MENU_DIFFICULTY_TEXT(netgame->difficulty)); |
279 |
- |
280 |
-=== modified file 'main/scores.c' |
281 |
---- main/scores.c 2010-07-31 12:09:38 +0000 |
282 |
-+++ main/scores.c 2010-10-14 14:46:20 +0000 |
283 |
-@@ -91,7 +91,7 @@ |
284 |
- int i; |
285 |
- |
286 |
- // No error message needed, code will work without a scores file |
287 |
-- sprintf( scores->cool_saying, COOL_SAYING ); |
288 |
-+ sprintf( scores->cool_saying, "%s", COOL_SAYING ); |
289 |
- sprintf( scores->stats[0].name, "Parallax" ); |
290 |
- sprintf( scores->stats[1].name, "Matt" ); |
291 |
- sprintf( scores->stats[2].name, "Mike" ); |
292 |
- |
293 |
-=== modified file 'misc/physfsx.c' |
294 |
---- misc/physfsx.c 2010-09-25 13:55:22 +0000 |
295 |
-+++ misc/physfsx.c 2010-10-14 14:46:20 +0000 |
296 |
-@@ -304,7 +304,7 @@ |
297 |
- filename++; |
298 |
- } |
299 |
- |
300 |
-- snprintf(filename2, strlen(filename)+1, filename); |
301 |
-+ snprintf(filename2, strlen(filename)+1, "%s", filename); |
302 |
- PHYSFSEXT_locateCorrectCase(filename2); |
303 |
- |
304 |
- fp = PHYSFS_openRead(filename2); |
305 |
- |
306 |
|
307 |
diff --git a/games-action/d2x-rebirth/metadata.xml b/games-action/d2x-rebirth/metadata.xml |
308 |
index 8b980e5..38f0820 100644 |
309 |
--- a/games-action/d2x-rebirth/metadata.xml |
310 |
+++ b/games-action/d2x-rebirth/metadata.xml |
311 |
@@ -1,7 +1,7 @@ |
312 |
<?xml version="1.0" encoding="UTF-8"?> |
313 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
314 |
<pkgmetadata> |
315 |
-<herd>gameboys</herd> |
316 |
+<herd>no-herd</herd> |
317 |
<maintainer> |
318 |
<email>azamat.hackimov@×××××.com</email> |
319 |
<name>Azamat H. Hackimov</name> |
320 |
@@ -13,6 +13,9 @@ Descent Rebirth - enhanced Descent 2 engine |
321 |
Descent Rebirth - улучшенный движок для Descent 2 |
322 |
</longdescription> |
323 |
<use> |
324 |
-<flag name="music">Enable enchansed music</flag> |
325 |
+<flag name="editor">Enable editor (Experimental!)</flag> |
326 |
+<flag name="music_awe32">Enable soundtrack recorded with the enhanced AWE32 soundfont</flag> |
327 |
+<flag name="music_opl3">Enable soundtrack recorded with the Yamaha YMF262 OPL3 Soundchip</flag> |
328 |
+<flag name="music_sc55">Enable soundtrack recorded with the Roland Sound Canvas SC-55</flag> |
329 |
</use> |
330 |
</pkgmetadata> |