1 |
hasufell 13/02/27 00:20:20 |
2 |
|
3 |
Added: renpy-6.14.1-remove-AVFormatParameters.patch |
4 |
renpy-6.14.1-av_close_input_stream.patch |
5 |
renpy-6.14.1-multiple-abi.patch |
6 |
Log: |
7 |
initial import wrt #301324 |
8 |
|
9 |
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key E73C35B3) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 games-engines/renpy/files/renpy-6.14.1-remove-AVFormatParameters.patch |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/files/renpy-6.14.1-remove-AVFormatParameters.patch?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/files/renpy-6.14.1-remove-AVFormatParameters.patch?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: renpy-6.14.1-remove-AVFormatParameters.patch |
18 |
=================================================================== |
19 |
--- module/ffdecode.c |
20 |
+++ module/ffdecode.c |
21 |
@@ -1152,7 +1152,6 @@ |
22 |
AVFormatContext *ic; |
23 |
int err, i, ret, video_index, audio_index; |
24 |
AVPacket pkt1, *pkt = &pkt1; |
25 |
- AVFormatParameters params, *ap = ¶ms; |
26 |
int codecs_locked = 0; |
27 |
|
28 |
// url_set_interrupt_cb(decode_interrupt_cb); |
29 |
@@ -1162,8 +1161,6 @@ |
30 |
is->video_stream = -1; |
31 |
is->audio_stream = -1; |
32 |
|
33 |
- memset(ap, 0, sizeof(*ap)); |
34 |
- |
35 |
is->io_context = rwops_open(is->rwops); |
36 |
|
37 |
codecs_locked = 1; |
38 |
|
39 |
|
40 |
|
41 |
1.1 games-engines/renpy/files/renpy-6.14.1-av_close_input_stream.patch |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/files/renpy-6.14.1-av_close_input_stream.patch?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/files/renpy-6.14.1-av_close_input_stream.patch?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: renpy-6.14.1-av_close_input_stream.patch |
47 |
=================================================================== |
48 |
--- module/ffdecode.c |
49 |
+++ module/ffdecode.c |
50 |
@@ -1356,7 +1356,7 @@ |
51 |
if (is->video_stream >= 0) |
52 |
stream_component_close(is, is->video_stream); |
53 |
if (is->ic) { |
54 |
- av_close_input_stream(is->ic); |
55 |
+ av_close_input_file(is->ic); |
56 |
is->ic = NULL; |
57 |
} |
58 |
|
59 |
|
60 |
|
61 |
|
62 |
1.1 games-engines/renpy/files/renpy-6.14.1-multiple-abi.patch |
63 |
|
64 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/files/renpy-6.14.1-multiple-abi.patch?rev=1.1&view=markup |
65 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/files/renpy-6.14.1-multiple-abi.patch?rev=1.1&content-type=text/plain |
66 |
|
67 |
Index: renpy-6.14.1-multiple-abi.patch |
68 |
=================================================================== |
69 |
From: Julian Ospald <hasufell@g.o> |
70 |
Date: Mon Feb 25 21:35:31 UTC 2013 |
71 |
Subject: fix multiple abi support |
72 |
|
73 |
--- /dev/null |
74 |
+++ renpy-6.14.1-source/renpy/common.py |
75 |
@@ -0,0 +1,83 @@ |
76 |
+# Copyright 2004-2012 Tom Rothamel <pytom@××××××××.us> |
77 |
+# |
78 |
+# Permission is hereby granted, free of charge, to any person |
79 |
+# obtaining a copy of this software and associated documentation files |
80 |
+# (the "Software"), to deal in the Software without restriction, |
81 |
+# including without limitation the rights to use, copy, modify, merge, |
82 |
+# publish, distribute, sublicense, and/or sell copies of the Software, |
83 |
+# and to permit persons to whom the Software is furnished to do so, |
84 |
+# subject to the following conditions: |
85 |
+# |
86 |
+# The above copyright notice and this permission notice shall be |
87 |
+# included in all copies or substantial portions of the Software. |
88 |
+# |
89 |
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
90 |
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
91 |
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
92 |
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE |
93 |
+# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
94 |
+# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
95 |
+# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
96 |
+ |
97 |
+import os |
98 |
+import sys |
99 |
+import warnings |
100 |
+from distutils.sysconfig import get_python_lib |
101 |
+ |
102 |
+# Functions to be customized by distributors. ################################ |
103 |
+ |
104 |
+# Given the Ren'Py base directory (usually the directory containing |
105 |
+# this file), this is expected to return the path to the common directory. |
106 |
+def path_to_common(renpy_base): |
107 |
+ return renpy_base + "/common" |
108 |
+ |
109 |
+# Given a directory holding a Ren'Py game, this is expected to return |
110 |
+# the path to a directory that will hold save files. |
111 |
+def path_to_saves(gamedir): |
112 |
+ import renpy #@UnresolvedImport |
113 |
+ |
114 |
+ if not renpy.config.save_directory: |
115 |
+ return gamedir + "/saves" |
116 |
+ |
117 |
+ # Search the path above Ren'Py for a directory named "Ren'Py Data". |
118 |
+ # If it exists, then use that for our save directory. |
119 |
+ path = renpy.config.renpy_base |
120 |
+ |
121 |
+ while True: |
122 |
+ if os.path.isdir(path + "/Ren'Py Data"): |
123 |
+ return path + "/Ren'Py Data/" + renpy.config.save_directory |
124 |
+ |
125 |
+ newpath = os.path.dirname(path) |
126 |
+ if path == newpath: |
127 |
+ break |
128 |
+ path = newpath |
129 |
+ |
130 |
+ # Otherwise, put the saves in a platform-specific location. |
131 |
+ if renpy.android: |
132 |
+ return gamedir + "/saves" |
133 |
+ |
134 |
+ elif renpy.macintosh: |
135 |
+ rv = "~/Library/RenPy/" + renpy.config.save_directory |
136 |
+ return os.path.expanduser(rv) |
137 |
+ |
138 |
+ elif renpy.windows: |
139 |
+ if 'APPDATA' in os.environ: |
140 |
+ return os.environ['APPDATA'] + "/RenPy/" + renpy.config.save_directory |
141 |
+ else: |
142 |
+ rv = "~/RenPy/" + renpy.config.save_directory |
143 |
+ return os.path.expanduser(rv) |
144 |
+ |
145 |
+ else: |
146 |
+ rv = "~/.renpy/" + renpy.config.save_directory |
147 |
+ return os.path.expanduser(rv) |
148 |
+ |
149 |
+ |
150 |
+# Returns the path to the Ren'Py base directory (containing common and |
151 |
+# the launcher, usually.) |
152 |
+def path_to_renpy_base(): |
153 |
+ renpy_base = os.path.dirname(sys.argv[0]) |
154 |
+ renpy_base = get_python_lib() + "/renpy@SLOT@" |
155 |
+ renpy_base = os.environ.get('RENPY_BASE', renpy_base) |
156 |
+ renpy_base = os.path.abspath(renpy_base) |
157 |
+ |
158 |
+ return renpy_base |
159 |
--- renpy-6.14.1-source/renpy.py |
160 |
+++ renpy-6.14.1-source/renpy.py |
161 |
@@ -24,65 +24,9 @@ |
162 |
import os |
163 |
import sys |
164 |
import warnings |
165 |
- |
166 |
-# Functions to be customized by distributors. ################################ |
167 |
- |
168 |
-# Given the Ren'Py base directory (usually the directory containing |
169 |
-# this file), this is expected to return the path to the common directory. |
170 |
-def path_to_common(renpy_base): |
171 |
- return renpy_base + "/common" |
172 |
- |
173 |
-# Given a directory holding a Ren'Py game, this is expected to return |
174 |
-# the path to a directory that will hold save files. |
175 |
-def path_to_saves(gamedir): |
176 |
- import renpy #@UnresolvedImport |
177 |
- |
178 |
- if not renpy.config.save_directory: |
179 |
- return gamedir + "/saves" |
180 |
- |
181 |
- # Search the path above Ren'Py for a directory named "Ren'Py Data". |
182 |
- # If it exists, then use that for our save directory. |
183 |
- path = renpy.config.renpy_base |
184 |
- |
185 |
- while True: |
186 |
- if os.path.isdir(path + "/Ren'Py Data"): |
187 |
- return path + "/Ren'Py Data/" + renpy.config.save_directory |
188 |
- |
189 |
- newpath = os.path.dirname(path) |
190 |
- if path == newpath: |
191 |
- break |
192 |
- path = newpath |
193 |
- |
194 |
- # Otherwise, put the saves in a platform-specific location. |
195 |
- if renpy.android: |
196 |
- return gamedir + "/saves" |
197 |
- |
198 |
- elif renpy.macintosh: |
199 |
- rv = "~/Library/RenPy/" + renpy.config.save_directory |
200 |
- return os.path.expanduser(rv) |
201 |
- |
202 |
- elif renpy.windows: |
203 |
- if 'APPDATA' in os.environ: |
204 |
- return os.environ['APPDATA'] + "/RenPy/" + renpy.config.save_directory |
205 |
- else: |
206 |
- rv = "~/RenPy/" + renpy.config.save_directory |
207 |
- return os.path.expanduser(rv) |
208 |
- |
209 |
- else: |
210 |
- rv = "~/.renpy/" + renpy.config.save_directory |
211 |
- return os.path.expanduser(rv) |
212 |
- |
213 |
- |
214 |
-# Returns the path to the Ren'Py base directory (containing common and |
215 |
-# the launcher, usually.) |
216 |
-def path_to_renpy_base(): |
217 |
- renpy_base = os.path.dirname(sys.argv[0]) |
218 |
- renpy_base = os.environ.get('RENPY_BASE', renpy_base) |
219 |
- renpy_base = os.path.abspath(renpy_base) |
220 |
- |
221 |
- return renpy_base |
222 |
- |
223 |
-############################################################################## |
224 |
+from distutils.sysconfig import get_python_lib |
225 |
+sys.path.append(get_python_lib() + "/renpy@SLOT@") |
226 |
+import renpy.common as common |
227 |
|
228 |
# The version of the Mac Launcher and py4renpy that we require. |
229 |
macos_version = (6, 14, 0) |
230 |
@@ -97,21 +41,9 @@ |
231 |
print "Ren'Py requires at least python 2.6." |
232 |
sys.exit(0) |
233 |
|
234 |
-android = ("ANDROID_PRIVATE" in os.environ) |
235 |
- |
236 |
-# Android requires us to add code to the main module, and to command some |
237 |
-# renderers. |
238 |
-if android: |
239 |
- __main__ = sys.modules["__main__"] |
240 |
- __main__.path_to_renpy_base = path_to_renpy_base |
241 |
- __main__.path_to_common = path_to_common |
242 |
- __main__.path_to_saves = path_to_saves |
243 |
- os.environ["RENPY_RENDERER"] = "gl" |
244 |
- os.environ["RENPY_GL_ENVIRON"] = "limited" |
245 |
- |
246 |
def main(): |
247 |
|
248 |
- renpy_base = path_to_renpy_base() |
249 |
+ renpy_base = common.path_to_renpy_base() |
250 |
|
251 |
# Add paths. |
252 |
if os.path.exists(renpy_base + "/module"): |
253 |
@@ -133,14 +65,9 @@ |
254 |
print >>sys.stderr, "Could not import renpy.bootstrap. Please ensure you decompressed Ren'Py" |
255 |
print >>sys.stderr, "correctly, preserving the directory structure." |
256 |
raise |
257 |
- |
258 |
- if android: |
259 |
- renpy.linux = False |
260 |
- renpy.android = True |
261 |
|
262 |
renpy.bootstrap.bootstrap(renpy_base) |
263 |
|
264 |
-if __name__ == "__main__": |
265 |
- main() |
266 |
|
267 |
- |
268 |
+if __name__ == "__main__": |
269 |
+ main() |
270 |
--- renpy-6.14.1-source/renpy/main.py |
271 |
+++ renpy-6.14.1-source/renpy/main.py |
272 |
@@ -27,7 +27,7 @@ |
273 |
import zipfile |
274 |
import subprocess |
275 |
from cPickle import loads, dumps |
276 |
-import __main__ |
277 |
+import renpy.common as common |
278 |
|
279 |
|
280 |
def save_persistent(): |
281 |
@@ -172,7 +172,7 @@ |
282 |
renpy.config.searchpath = [ renpy.config.gamedir ] |
283 |
|
284 |
# Find the common directory. |
285 |
- commondir = __main__.path_to_common(renpy.config.renpy_base) # E1101 @UndefinedVariable |
286 |
+ commondir = common.path_to_common(renpy.config.renpy_base) # E1101 @UndefinedVariable |
287 |
|
288 |
if os.path.isdir(commondir): |
289 |
renpy.config.searchpath.append(commondir) |
290 |
@@ -227,7 +227,7 @@ |
291 |
|
292 |
# Find the save directory. |
293 |
if renpy.config.savedir is None: |
294 |
- renpy.config.savedir = __main__.path_to_saves(renpy.config.gamedir) # E1101 @UndefinedVariable |
295 |
+ renpy.config.savedir = common.path_to_saves(renpy.config.gamedir) # E1101 @UndefinedVariable |
296 |
|
297 |
if renpy.game.args.savedir: #@UndefinedVariable |
298 |
renpy.config.savedir = renpy.game.args.savedir #@UndefinedVariable |