1 |
commit: 7763b8d40b41019dc32f1e8b638b73b56b792591 |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Aug 2 16:24:16 2011 +0000 |
4 |
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> |
5 |
CommitDate: Tue Aug 2 16:24:16 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=7763b8d4 |
7 |
|
8 |
[games-action/teeworlds] Version bump to 0.6.1 |
9 |
|
10 |
(Portage version: 2.1.10.3/git/Linux x86_64, RepoMan options: --force, unsigned Manifest commit) |
11 |
|
12 |
--- |
13 |
.../01-use-system-wavpack.patch} | 26 +++++++--------- |
14 |
.../02-fixed-wavpack-sound-loading.patch} | 25 +++++++-------- |
15 |
.../03-use-system-pnglite.patch} | 31 +++++++++---------- |
16 |
...rlds-0.6.0-r1.ebuild => teeworlds-0.6.1.ebuild} | 14 ++++---- |
17 |
4 files changed, 46 insertions(+), 50 deletions(-) |
18 |
|
19 |
diff --git a/games-action/teeworlds/files/teeworlds-0.6.0-001-use-system-wavpack.patch b/games-action/teeworlds/files/0.6.1/01-use-system-wavpack.patch |
20 |
similarity index 85% |
21 |
rename from games-action/teeworlds/files/teeworlds-0.6.0-001-use-system-wavpack.patch |
22 |
rename to games-action/teeworlds/files/0.6.1/01-use-system-wavpack.patch |
23 |
index 4391172..3a1944d 100644 |
24 |
--- a/games-action/teeworlds/files/teeworlds-0.6.0-001-use-system-wavpack.patch |
25 |
+++ b/games-action/teeworlds/files/0.6.1/01-use-system-wavpack.patch |
26 |
@@ -1,16 +1,17 @@ |
27 |
-From 5c5171d2de5f4d3b7926f16faa70b16ccf434c86 Mon Sep 17 00:00:00 2001 |
28 |
-From: xalduin <xalduin@×××××.com> |
29 |
-Date: Sat, 12 Feb 2011 22:22:02 -0500 |
30 |
-Subject: [PATCH 1/3] Will now use system wavpack and zlib libraries if available when |
31 |
- compiling |
32 |
+Use system wavpack. Based on patch from Gentoo Bugzilla |
33 |
|
34 |
+From: Azamat H. Hackimov <azamat.hackimov@×××××.com> |
35 |
+ |
36 |
+https://bugs.gentoo.org/show_bug.cgi?id=363395 |
37 |
--- |
38 |
+ |
39 |
bam.lua | 15 +++++++++++++-- |
40 |
src/engine/client/sound.cpp | 10 +++++++++- |
41 |
2 files changed, 22 insertions(+), 3 deletions(-) |
42 |
|
43 |
+ |
44 |
diff --git a/bam.lua b/bam.lua |
45 |
-index 0c953e8..ade4ae4 100644 |
46 |
+index 5699251..ce24cff 100644 |
47 |
--- a/bam.lua |
48 |
+++ b/bam.lua |
49 |
@@ -9,6 +9,7 @@ config = NewConfig() |
50 |
@@ -23,7 +24,7 @@ index 0c953e8..ade4ae4 100644 |
51 |
config:Finalize("config.lua") |
52 |
@@ -165,7 +166,7 @@ function build(settings) |
53 |
end |
54 |
- |
55 |
+ |
56 |
-- compile zlib if needed |
57 |
- if config.zlib.value == 1 then |
58 |
+ if config.zlib.value == true then |
59 |
@@ -48,10 +49,10 @@ index 0c953e8..ade4ae4 100644 |
60 |
-- build the small libraries |
61 |
- wavpack = Compile(settings, Collect("src/engine/external/wavpack/*.c")) |
62 |
pnglite = Compile(settings, Collect("src/engine/external/pnglite/*.c")) |
63 |
- |
64 |
+ |
65 |
-- build game components |
66 |
diff --git a/src/engine/client/sound.cpp b/src/engine/client/sound.cpp |
67 |
-index 55ca293..e38ad32 100644 |
68 |
+index c2ca91f..f356e34 100644 |
69 |
--- a/src/engine/client/sound.cpp |
70 |
+++ b/src/engine/client/sound.cpp |
71 |
@@ -10,7 +10,7 @@ |
72 |
@@ -63,7 +64,7 @@ index 55ca293..e38ad32 100644 |
73 |
} |
74 |
#include <math.h> |
75 |
|
76 |
-@@ -328,19 +328,25 @@ int CSound::LoadWV(const char *pFilename) |
77 |
+@@ -333,19 +333,25 @@ int CSound::LoadWV(const char *pFilename) |
78 |
if(!m_pStorage) |
79 |
return -1; |
80 |
|
81 |
@@ -89,7 +90,7 @@ index 55ca293..e38ad32 100644 |
82 |
if (pContext) |
83 |
{ |
84 |
int m_aSamples = WavpackGetNumSamples(pContext); |
85 |
-@@ -395,8 +401,10 @@ int CSound::LoadWV(const char *pFilename) |
86 |
+@@ -401,8 +407,10 @@ int CSound::LoadWV(const char *pFilename) |
87 |
dbg_msg("sound/wv", "failed to open %s: %s", pFilename, aError); |
88 |
} |
89 |
|
90 |
@@ -100,6 +101,3 @@ index 55ca293..e38ad32 100644 |
91 |
|
92 |
if(g_Config.m_Debug) |
93 |
dbg_msg("sound/wv", "loaded %s", pFilename); |
94 |
--- |
95 |
-1.7.3.4 |
96 |
- |
97 |
|
98 |
diff --git a/games-action/teeworlds/files/teeworlds-0.6.0-002-fixed-wavpack-sound-loading.patch b/games-action/teeworlds/files/0.6.1/02-fixed-wavpack-sound-loading.patch |
99 |
similarity index 84% |
100 |
rename from games-action/teeworlds/files/teeworlds-0.6.0-002-fixed-wavpack-sound-loading.patch |
101 |
rename to games-action/teeworlds/files/0.6.1/02-fixed-wavpack-sound-loading.patch |
102 |
index 206bc6a..b129aaf 100644 |
103 |
--- a/games-action/teeworlds/files/teeworlds-0.6.0-002-fixed-wavpack-sound-loading.patch |
104 |
+++ b/games-action/teeworlds/files/0.6.1/02-fixed-wavpack-sound-loading.patch |
105 |
@@ -1,17 +1,19 @@ |
106 |
-From 5a5322491704c14f5aed72148db6b134484cedec Mon Sep 17 00:00:00 2001 |
107 |
-From: xalduin <xalduin@×××××.com> |
108 |
-Date: Sat, 12 Feb 2011 23:58:55 -0500 |
109 |
-Subject: [PATCH 2/3] Fixed wavpack sound loading |
110 |
+Fixing wavpack sound loading. Based on Gentoo Bugzilla |
111 |
|
112 |
+From: Azamat H. Hackimov <azamat.hackimov@×××××.com> |
113 |
+ |
114 |
+https://bugs.gentoo.org/show_bug.cgi?id=363395 |
115 |
--- |
116 |
- src/engine/client/sound.cpp | 56 ++++++++++++++++++++++++++++++++++++++---- |
117 |
+ |
118 |
+ src/engine/client/sound.cpp | 56 ++++++++++++++++++++++++++++++++++++++----- |
119 |
1 files changed, 50 insertions(+), 6 deletions(-) |
120 |
|
121 |
+ |
122 |
diff --git a/src/engine/client/sound.cpp b/src/engine/client/sound.cpp |
123 |
-index e38ad32..6101602 100644 |
124 |
+index f356e34..b55a798 100644 |
125 |
--- a/src/engine/client/sound.cpp |
126 |
+++ b/src/engine/client/sound.cpp |
127 |
-@@ -49,6 +49,54 @@ struct CVoice |
128 |
+@@ -50,6 +50,54 @@ struct CVoice |
129 |
int m_X, m_Y; |
130 |
} ; |
131 |
|
132 |
@@ -66,7 +68,7 @@ index e38ad32..6101602 100644 |
133 |
static CSample m_aSamples[NUM_SAMPLES] = { {0} }; |
134 |
static CVoice m_aVoices[NUM_VOICES] = { {0} }; |
135 |
static CChannel m_aChannels[NUM_CHANNELS] = { {255, 0} }; |
136 |
-@@ -328,14 +376,12 @@ int CSound::LoadWV(const char *pFilename) |
137 |
+@@ -333,14 +381,12 @@ int CSound::LoadWV(const char *pFilename) |
138 |
if(!m_pStorage) |
139 |
return -1; |
140 |
|
141 |
@@ -81,7 +83,7 @@ index e38ad32..6101602 100644 |
142 |
|
143 |
SampleID = AllocID(); |
144 |
if(SampleID < 0) |
145 |
-@@ -345,7 +391,7 @@ int CSound::LoadWV(const char *pFilename) |
146 |
+@@ -350,7 +396,7 @@ int CSound::LoadWV(const char *pFilename) |
147 |
#ifndef WAVPACK_H |
148 |
pContext = WavpackOpenFileInput(ReadData, aError); |
149 |
#else |
150 |
@@ -90,7 +92,7 @@ index e38ad32..6101602 100644 |
151 |
#endif |
152 |
if (pContext) |
153 |
{ |
154 |
-@@ -398,13 +444,11 @@ int CSound::LoadWV(const char *pFilename) |
155 |
+@@ -404,13 +450,11 @@ int CSound::LoadWV(const char *pFilename) |
156 |
} |
157 |
else |
158 |
{ |
159 |
@@ -105,6 +107,3 @@ index e38ad32..6101602 100644 |
160 |
|
161 |
if(g_Config.m_Debug) |
162 |
dbg_msg("sound/wv", "loaded %s", pFilename); |
163 |
--- |
164 |
-1.7.3.4 |
165 |
- |
166 |
|
167 |
diff --git a/games-action/teeworlds/files/teeworlds-0.6.0-003-use-system-pnglite.patch b/games-action/teeworlds/files/0.6.1/03-use-system-pnglite.patch |
168 |
similarity index 87% |
169 |
rename from games-action/teeworlds/files/teeworlds-0.6.0-003-use-system-pnglite.patch |
170 |
rename to games-action/teeworlds/files/0.6.1/03-use-system-pnglite.patch |
171 |
index 5da5c50..998a086 100644 |
172 |
--- a/games-action/teeworlds/files/teeworlds-0.6.0-003-use-system-pnglite.patch |
173 |
+++ b/games-action/teeworlds/files/0.6.1/03-use-system-pnglite.patch |
174 |
@@ -1,17 +1,19 @@ |
175 |
-From f4d073f439d50f49055ab75f0f1242b124f9aba2 Mon Sep 17 00:00:00 2001 |
176 |
-From: Bruno Tarquini <btarquini@×××××.com> |
177 |
-Date: Tue, 12 Apr 2011 22:53:30 +0200 |
178 |
-Subject: [PATCH 3/3] use system pnglite if available. link only the client with pnglite and wavpack |
179 |
+Use system pnglite. Based on Gentoo Bugzilla |
180 |
|
181 |
+From: Azamat H. Hackimov <azamat.hackimov@×××××.com> |
182 |
+ |
183 |
+https://bugs.gentoo.org/show_bug.cgi?id=363395 |
184 |
--- |
185 |
+ |
186 |
bam.lua | 33 +++++++++++++++++++++------------ |
187 |
src/engine/client/graphics.cpp | 2 +- |
188 |
src/tools/dilate.cpp | 2 +- |
189 |
src/tools/tileset_borderfix.cpp | 2 +- |
190 |
4 files changed, 24 insertions(+), 15 deletions(-) |
191 |
|
192 |
+ |
193 |
diff --git a/bam.lua b/bam.lua |
194 |
-index ade4ae4..c0c2211 100644 |
195 |
+index ce24cff..46b8e42 100644 |
196 |
--- a/bam.lua |
197 |
+++ b/bam.lua |
198 |
@@ -9,6 +9,7 @@ config = NewConfig() |
199 |
@@ -59,7 +61,7 @@ index ade4ae4..c0c2211 100644 |
200 |
|
201 |
- -- build the small libraries |
202 |
- pnglite = Compile(settings, Collect("src/engine/external/pnglite/*.c")) |
203 |
-- |
204 |
+- |
205 |
- -- build game components |
206 |
- engine_settings = settings:Copy() |
207 |
- server_settings = engine_settings:Copy() |
208 |
@@ -67,13 +69,13 @@ index ade4ae4..c0c2211 100644 |
209 |
- launcher_settings = engine_settings:Copy() |
210 |
- |
211 |
if family == "unix" then |
212 |
- if platform == "macosx" then |
213 |
+ if platform == "macosx" then |
214 |
client_settings.link.frameworks:Add("OpenGL") |
215 |
diff --git a/src/engine/client/graphics.cpp b/src/engine/client/graphics.cpp |
216 |
-index 99f5e09..2c867ee 100644 |
217 |
+index d1f0b8a..f654e87 100644 |
218 |
--- a/src/engine/client/graphics.cpp |
219 |
+++ b/src/engine/client/graphics.cpp |
220 |
-@@ -19,7 +19,7 @@ |
221 |
+@@ -20,7 +20,7 @@ |
222 |
#endif |
223 |
|
224 |
#include <base/system.h> |
225 |
@@ -83,7 +85,7 @@ index 99f5e09..2c867ee 100644 |
226 |
#include <engine/shared/config.h> |
227 |
#include <engine/graphics.h> |
228 |
diff --git a/src/tools/dilate.cpp b/src/tools/dilate.cpp |
229 |
-index b1b60ac..b773ceb 100644 |
230 |
+index eb770a9..cbd7a3e 100644 |
231 |
--- a/src/tools/dilate.cpp |
232 |
+++ b/src/tools/dilate.cpp |
233 |
@@ -2,7 +2,7 @@ |
234 |
@@ -96,18 +98,15 @@ index b1b60ac..b773ceb 100644 |
235 |
typedef struct |
236 |
{ |
237 |
diff --git a/src/tools/tileset_borderfix.cpp b/src/tools/tileset_borderfix.cpp |
238 |
-index d28e307..b060f0d 100644 |
239 |
+index 0facb9a..ab36292 100644 |
240 |
--- a/src/tools/tileset_borderfix.cpp |
241 |
+++ b/src/tools/tileset_borderfix.cpp |
242 |
-@@ -2,7 +2,7 @@ |
243 |
+@@ -1,7 +1,7 @@ |
244 |
+ /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ |
245 |
/* If you are missing that file, acquire a complete release at teeworlds.com. */ |
246 |
- #include <stdlib.h> |
247 |
#include <base/system.h> |
248 |
-#include <engine/external/pnglite/pnglite.h> |
249 |
+#include <pnglite.h> |
250 |
|
251 |
typedef struct |
252 |
{ |
253 |
--- |
254 |
-1.7.3.4 |
255 |
- |
256 |
|
257 |
diff --git a/games-action/teeworlds/teeworlds-0.6.0-r1.ebuild b/games-action/teeworlds/teeworlds-0.6.1.ebuild |
258 |
similarity index 84% |
259 |
rename from games-action/teeworlds/teeworlds-0.6.0-r1.ebuild |
260 |
rename to games-action/teeworlds/teeworlds-0.6.1.ebuild |
261 |
index 7f01b3d..bf1562e 100644 |
262 |
--- a/games-action/teeworlds/teeworlds-0.6.0-r1.ebuild |
263 |
+++ b/games-action/teeworlds/teeworlds-0.6.1.ebuild |
264 |
@@ -8,9 +8,11 @@ PYTHON_DEPEND="2" |
265 |
|
266 |
inherit eutils python games |
267 |
|
268 |
+REVISION="b177-r50edfd37" |
269 |
+ |
270 |
DESCRIPTION="Online multi-player platform 2D shooter" |
271 |
HOMEPAGE="http://www.teeworlds.com/" |
272 |
-SRC_URI="http://www.teeworlds.com/files/${P}-src.tar.gz" |
273 |
+SRC_URI="http://www.teeworlds.com/files/teeworlds-0.6.1-source.tar.gz" |
274 |
|
275 |
LICENSE="ZLIB" |
276 |
SLOT="0" |
277 |
@@ -29,7 +31,7 @@ RDEPEND=" |
278 |
DEPEND="${RDEPEND} |
279 |
~dev-util/bam-0.4.0" |
280 |
|
281 |
-S=${WORKDIR}/${P}-source |
282 |
+S=${WORKDIR}/${PN}-${REVISION}-source |
283 |
|
284 |
pkg_setup() { |
285 |
python_set_active_version 2 |
286 |
@@ -37,11 +39,9 @@ pkg_setup() { |
287 |
} |
288 |
|
289 |
src_prepare() { |
290 |
- # 001 & 002 from pull request: https://github.com/oy/teeworlds/pull/493 |
291 |
- epatch \ |
292 |
- "${FILESDIR}"/${P}-001-use-system-wavpack.patch \ |
293 |
- "${FILESDIR}"/${P}-002-fixed-wavpack-sound-loading.patch \ |
294 |
- "${FILESDIR}"/${P}-003-use-system-pnglite.patch |
295 |
+ # 01 & 02 from pull request: https://github.com/oy/teeworlds/pull/493 |
296 |
+ EPATCH_SOURCE="${FILESDIR}/${PV}" EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \ |
297 |
+ epatch |
298 |
} |
299 |
|
300 |
src_configure() { |