1 |
commit: e02ffd4f79907b478204384ba67e54ef032c6c27 |
2 |
Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 16 17:54:32 2017 +0000 |
4 |
Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 16 17:54:32 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e02ffd4f |
7 |
|
8 |
games-engines/renpy: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org> |
12 |
|
13 |
games-engines/renpy/Manifest | 1 - |
14 |
.../renpy/files/renpy-6.99.6-multiple-abi.patch | 337 --------------------- |
15 |
games-engines/renpy/renpy-6.99.12.4.ebuild | 113 ------- |
16 |
games-engines/renpy/renpy-6.99.6.ebuild | 110 ------- |
17 |
4 files changed, 561 deletions(-) |
18 |
|
19 |
diff --git a/games-engines/renpy/Manifest b/games-engines/renpy/Manifest |
20 |
index cadcd3c3f46..38ff1d2aa7d 100644 |
21 |
--- a/games-engines/renpy/Manifest |
22 |
+++ b/games-engines/renpy/Manifest |
23 |
@@ -1,3 +1,2 @@ |
24 |
DIST renpy-6.17.7-source.tar.bz2 17932988 SHA256 fef01de9e482b73d9d409de7a43bada6dd3e2a0549b99dd487306371190ed038 SHA512 22b0e08b18ee35317b11451205233cbd8a29617d9c3d298bbdcfc5757f67c2f0e4c8a748aa83d5c8b43786c062ffca109d07e981efa750fcee26f45f08a33ea2 WHIRLPOOL fef82eb6c958a2525797e5d8bfae3488fba606b70eeed5c94f7afcab4fa46e7a7eb43d91b4bd55f553b65a72b12236e02ecdee55e8852c1fafc055332f9d131d |
25 |
DIST renpy-6.99.12.4-source.tar.bz2 18192453 SHA256 65d8c97acfce7a8025ad0f6a1a3d5ef88d4319ece02370f33cf7a791b320a30c SHA512 375b67e15630fc21915136e70bc93db6da7c2da192d39b1256822513ae44974124522c85f1976f2af62df27b5fa11493af488b02abcf0081eeae03e1a69dfca5 WHIRLPOOL 3044bcd5e241e95c8313a16da4049f71621def4669b9d76aa6892191443456e2c388f7a7aaa16a01e073311a83d1bde5452fc3e57f956571bfca2edc1db93ca9 |
26 |
-DIST renpy-6.99.6-source.tar.bz2 27289290 SHA256 31f3fc84bda7e4048a97539d6266b3fbb18a82fc38db83761dd4771f5ef98d04 SHA512 d018ac0827ee5a914c48479174eccbf3968ea22926638e09ee00ecea49dc0111b4f24810ad32d5a8bb8012ff18e5fb8981705ed0e2289ce3172a1629e095a651 WHIRLPOOL ba8102e11a09b70100d391c5b068c826db810486f2792c5b5214421b09344916888255a377ac26b2b21aaede315bb0470c7315c2581af9e64b545d68ee6f005c |
27 |
|
28 |
diff --git a/games-engines/renpy/files/renpy-6.99.6-multiple-abi.patch b/games-engines/renpy/files/renpy-6.99.6-multiple-abi.patch |
29 |
deleted file mode 100644 |
30 |
index eac6512d4b1..00000000000 |
31 |
--- a/games-engines/renpy/files/renpy-6.99.6-multiple-abi.patch |
32 |
+++ /dev/null |
33 |
@@ -1,337 +0,0 @@ |
34 |
-From 7aa51dae5eb2f2123fee9bca23a2ce2f1b1c3f10 Mon Sep 17 00:00:00 2001 |
35 |
-From: hasufell <hasufell@g.o> |
36 |
-Date: Thu, 20 Aug 2015 01:10:58 +0200 |
37 |
-Subject: [PATCH] Fix multiple abi support |
38 |
- |
39 |
---- |
40 |
- renpy.py | 128 ++-------------------------------------------------- |
41 |
- renpy/common.py | 137 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
42 |
- renpy/main.py | 6 +-- |
43 |
- 3 files changed, 144 insertions(+), 127 deletions(-) |
44 |
- create mode 100644 renpy/common.py |
45 |
- |
46 |
-diff --git a/renpy.py b/renpy.py |
47 |
-index 7548cf6..8ec7353 100644 |
48 |
---- a/renpy.py |
49 |
-+++ b/renpy.py |
50 |
-@@ -28,118 +28,9 @@ |
51 |
- import os |
52 |
- import sys |
53 |
- import warnings |
54 |
-- |
55 |
--# Functions to be customized by distributors. ################################ |
56 |
-- |
57 |
--# Given the Ren'Py base directory (usually the directory containing |
58 |
--# this file), this is expected to return the path to the common directory. |
59 |
--def path_to_common(renpy_base): |
60 |
-- return renpy_base + "/renpy/common" |
61 |
-- |
62 |
--# Given a directory holding a Ren'Py game, this is expected to return |
63 |
--# the path to a directory that will hold save files. |
64 |
--def path_to_saves(gamedir, save_directory=None): |
65 |
-- import renpy #@UnresolvedImport |
66 |
-- |
67 |
-- if save_directory is None: |
68 |
-- save_directory = renpy.config.save_directory |
69 |
-- |
70 |
-- # Makes sure the permissions are right on the save directory. |
71 |
-- def test_writable(d): |
72 |
-- try: |
73 |
-- fn = os.path.join(d, "test.txt") |
74 |
-- open(fn, "w").close() |
75 |
-- open(fn, "r").close() |
76 |
-- os.unlink(fn) |
77 |
-- return True |
78 |
-- except: |
79 |
-- return False |
80 |
-- |
81 |
-- |
82 |
-- # Android. |
83 |
-- if renpy.android: |
84 |
-- paths = [ |
85 |
-- os.path.join(os.environ["ANDROID_OLD_PUBLIC"], "game/saves"), |
86 |
-- os.path.join(os.environ["ANDROID_PRIVATE"], "saves"), |
87 |
-- os.path.join(os.environ["ANDROID_PUBLIC"], "saves"), |
88 |
-- ] |
89 |
-- |
90 |
-- for rv in paths: |
91 |
-- if os.path.isdir(rv) and test_writable(rv): |
92 |
-- break |
93 |
-- |
94 |
-- print "Saving to", rv |
95 |
-- |
96 |
-- # We return the last path as the default. |
97 |
-- |
98 |
-- return rv |
99 |
-- |
100 |
-- if renpy.ios: |
101 |
-- from pyobjus import autoclass |
102 |
-- from pyobjus.objc_py_types import enum |
103 |
-- |
104 |
-- NSSearchPathDirectory = enum("NSSearchPathDirectory", NSDocumentDirectory=9) |
105 |
-- NSSearchPathDomainMask = enum("NSSearchPathDomainMask", NSUserDomainMask=1) |
106 |
-- |
107 |
-- NSFileManager = autoclass('NSFileManager') |
108 |
-- manager = NSFileManager.defaultManager() |
109 |
-- url = manager.URLsForDirectory_inDomains_( |
110 |
-- NSSearchPathDirectory.NSDocumentDirectory, |
111 |
-- NSSearchPathDomainMask.NSUserDomainMask, |
112 |
-- ).lastObject() |
113 |
-- |
114 |
-- # url.path seems to change type based on iOS version, for some reason. |
115 |
-- try: |
116 |
-- rv = url.path().UTF8String().decode("utf-8") |
117 |
-- except: |
118 |
-- rv = url.path.UTF8String().decode("utf-8") |
119 |
-- |
120 |
-- print "Saving to", rv |
121 |
-- return rv |
122 |
-- |
123 |
-- # No save directory given. |
124 |
-- if not save_directory: |
125 |
-- return gamedir + "/saves" |
126 |
-- |
127 |
-- # Search the path above Ren'Py for a directory named "Ren'Py Data". |
128 |
-- # If it exists, then use that for our save directory. |
129 |
-- path = renpy.config.renpy_base |
130 |
-- |
131 |
-- while True: |
132 |
-- if os.path.isdir(path + "/Ren'Py Data"): |
133 |
-- return path + "/Ren'Py Data/" + save_directory |
134 |
-- |
135 |
-- newpath = os.path.dirname(path) |
136 |
-- if path == newpath: |
137 |
-- break |
138 |
-- path = newpath |
139 |
-- |
140 |
-- # Otherwise, put the saves in a platform-specific location. |
141 |
-- if renpy.macintosh: |
142 |
-- rv = "~/Library/RenPy/" + save_directory |
143 |
-- return os.path.expanduser(rv) |
144 |
-- |
145 |
-- elif renpy.windows: |
146 |
-- if 'APPDATA' in os.environ: |
147 |
-- return os.environ['APPDATA'] + "/RenPy/" + save_directory |
148 |
-- else: |
149 |
-- rv = "~/RenPy/" + renpy.config.save_directory |
150 |
-- return os.path.expanduser(rv) |
151 |
-- |
152 |
-- else: |
153 |
-- rv = "~/.renpy/" + save_directory |
154 |
-- return os.path.expanduser(rv) |
155 |
-- |
156 |
-- |
157 |
--# Returns the path to the Ren'Py base directory (containing common and |
158 |
--# the launcher, usually.) |
159 |
--def path_to_renpy_base(): |
160 |
-- renpy_base = os.path.dirname(os.path.realpath(sys.argv[0])) |
161 |
-- renpy_base = os.path.abspath(renpy_base) |
162 |
-- |
163 |
-- return renpy_base |
164 |
-- |
165 |
--############################################################################## |
166 |
-+from distutils.sysconfig import get_python_lib |
167 |
-+sys.path.append(get_python_lib() + "/renpy@SLOT@") |
168 |
-+import renpy.common as common |
169 |
- |
170 |
- # The version of the Mac Launcher and py4renpy that we require. |
171 |
- macos_version = (6, 14, 0) |
172 |
-@@ -154,20 +45,9 @@ except: |
173 |
- print "Ren'Py requires at least python 2.6." |
174 |
- sys.exit(0) |
175 |
- |
176 |
--android = ("ANDROID_PRIVATE" in os.environ) |
177 |
-- |
178 |
--# Android requires us to add code to the main module, and to command some |
179 |
--# renderers. |
180 |
--if android: |
181 |
-- __main__ = sys.modules["__main__"] |
182 |
-- __main__.path_to_renpy_base = path_to_renpy_base |
183 |
-- __main__.path_to_common = path_to_common |
184 |
-- __main__.path_to_saves = path_to_saves |
185 |
-- os.environ["RENPY_RENDERER"] = "gl" |
186 |
-- |
187 |
- def main(): |
188 |
- |
189 |
-- renpy_base = path_to_renpy_base() |
190 |
-+ renpy_base = common.path_to_renpy_base() |
191 |
- |
192 |
- # Add paths. |
193 |
- if os.path.exists(renpy_base + "/module"): |
194 |
-diff --git a/renpy/common.py b/renpy/common.py |
195 |
-new file mode 100644 |
196 |
-index 0000000..0d60e36 |
197 |
---- /dev/null |
198 |
-+++ b/renpy/common.py |
199 |
-@@ -0,0 +1,137 @@ |
200 |
-+# This file is part of Ren'Py. The license below applies to Ren'Py only. |
201 |
-+# Games and other projects that use Ren'Py may use a different license. |
202 |
-+ |
203 |
-+# Copyright 2004-2015 Tom Rothamel <pytom@××××××××.us> |
204 |
-+# |
205 |
-+# Permission is hereby granted, free of charge, to any person |
206 |
-+# obtaining a copy of this software and associated documentation files |
207 |
-+# (the "Software"), to deal in the Software without restriction, |
208 |
-+# including without limitation the rights to use, copy, modify, merge, |
209 |
-+# publish, distribute, sublicense, and/or sell copies of the Software, |
210 |
-+# and to permit persons to whom the Software is furnished to do so, |
211 |
-+# subject to the following conditions: |
212 |
-+# |
213 |
-+# The above copyright notice and this permission notice shall be |
214 |
-+# included in all copies or substantial portions of the Software. |
215 |
-+# |
216 |
-+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
217 |
-+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
218 |
-+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
219 |
-+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE |
220 |
-+# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
221 |
-+# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
222 |
-+# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
223 |
-+ |
224 |
-+import os |
225 |
-+import sys |
226 |
-+import warnings |
227 |
-+from distutils.sysconfig import get_python_lib |
228 |
-+ |
229 |
-+# Given the Ren'Py base directory (usually the directory containing |
230 |
-+# this file), this is expected to return the path to the common directory. |
231 |
-+def path_to_common(renpy_base): |
232 |
-+ return renpy_base + "/renpy/common" |
233 |
-+ |
234 |
-+# Given a directory holding a Ren'Py game, this is expected to return |
235 |
-+# the path to a directory that will hold save files. |
236 |
-+def path_to_saves(gamedir, save_directory=None): |
237 |
-+ import renpy #@UnresolvedImport |
238 |
-+ |
239 |
-+ if save_directory is None: |
240 |
-+ save_directory = renpy.config.save_directory |
241 |
-+ |
242 |
-+ # Makes sure the permissions are right on the save directory. |
243 |
-+ def test_writable(d): |
244 |
-+ try: |
245 |
-+ fn = os.path.join(d, "test.txt") |
246 |
-+ open(fn, "w").close() |
247 |
-+ open(fn, "r").close() |
248 |
-+ os.unlink(fn) |
249 |
-+ return True |
250 |
-+ except: |
251 |
-+ return False |
252 |
-+ |
253 |
-+ |
254 |
-+ # Android. |
255 |
-+ if renpy.android: |
256 |
-+ paths = [ |
257 |
-+ os.path.join(os.environ["ANDROID_OLD_PUBLIC"], "game/saves"), |
258 |
-+ os.path.join(os.environ["ANDROID_PRIVATE"], "saves"), |
259 |
-+ os.path.join(os.environ["ANDROID_PUBLIC"], "saves"), |
260 |
-+ ] |
261 |
-+ |
262 |
-+ for rv in paths: |
263 |
-+ if os.path.isdir(rv) and test_writable(rv): |
264 |
-+ break |
265 |
-+ |
266 |
-+ print "Saving to", rv |
267 |
-+ |
268 |
-+ # We return the last path as the default. |
269 |
-+ |
270 |
-+ return rv |
271 |
-+ |
272 |
-+ if renpy.ios: |
273 |
-+ from pyobjus import autoclass |
274 |
-+ from pyobjus.objc_py_types import enum |
275 |
-+ |
276 |
-+ NSSearchPathDirectory = enum("NSSearchPathDirectory", NSDocumentDirectory=9) |
277 |
-+ NSSearchPathDomainMask = enum("NSSearchPathDomainMask", NSUserDomainMask=1) |
278 |
-+ |
279 |
-+ NSFileManager = autoclass('NSFileManager') |
280 |
-+ manager = NSFileManager.defaultManager() |
281 |
-+ url = manager.URLsForDirectory_inDomains_( |
282 |
-+ NSSearchPathDirectory.NSDocumentDirectory, |
283 |
-+ NSSearchPathDomainMask.NSUserDomainMask, |
284 |
-+ ).lastObject() |
285 |
-+ |
286 |
-+ # url.path seems to change type based on iOS version, for some reason. |
287 |
-+ try: |
288 |
-+ rv = url.path().UTF8String().decode("utf-8") |
289 |
-+ except: |
290 |
-+ rv = url.path.UTF8String().decode("utf-8") |
291 |
-+ |
292 |
-+ print "Saving to", rv |
293 |
-+ return rv |
294 |
-+ |
295 |
-+ # No save directory given. |
296 |
-+ if not save_directory: |
297 |
-+ return gamedir + "/saves" |
298 |
-+ |
299 |
-+ # Search the path above Ren'Py for a directory named "Ren'Py Data". |
300 |
-+ # If it exists, then use that for our save directory. |
301 |
-+ path = renpy.config.renpy_base |
302 |
-+ |
303 |
-+ while True: |
304 |
-+ if os.path.isdir(path + "/Ren'Py Data"): |
305 |
-+ return path + "/Ren'Py Data/" + save_directory |
306 |
-+ |
307 |
-+ newpath = os.path.dirname(path) |
308 |
-+ if path == newpath: |
309 |
-+ break |
310 |
-+ path = newpath |
311 |
-+ |
312 |
-+ # Otherwise, put the saves in a platform-specific location. |
313 |
-+ if renpy.macintosh: |
314 |
-+ rv = "~/Library/RenPy/" + save_directory |
315 |
-+ return os.path.expanduser(rv) |
316 |
-+ |
317 |
-+ elif renpy.windows: |
318 |
-+ if 'APPDATA' in os.environ: |
319 |
-+ return os.environ['APPDATA'] + "/RenPy/" + save_directory |
320 |
-+ else: |
321 |
-+ rv = "~/RenPy/" + renpy.config.save_directory |
322 |
-+ return os.path.expanduser(rv) |
323 |
-+ |
324 |
-+ else: |
325 |
-+ rv = "~/.renpy/" + save_directory |
326 |
-+ return os.path.expanduser(rv) |
327 |
-+ |
328 |
-+ |
329 |
-+# Returns the path to the Ren'Py base directory (containing common and |
330 |
-+# the launcher, usually.) |
331 |
-+def path_to_renpy_base(): |
332 |
-+ renpy_base = os.path.dirname(os.path.realpath(sys.argv[0])) |
333 |
-+ renpy_base = get_python_lib() + "/renpy@SLOT@" |
334 |
-+ renpy_base = os.path.abspath(renpy_base) |
335 |
-+ |
336 |
-+ return renpy_base |
337 |
-diff --git a/renpy/main.py b/renpy/main.py |
338 |
-index 73e7239..6807ba1 100644 |
339 |
---- a/renpy/main.py |
340 |
-+++ b/renpy/main.py |
341 |
-@@ -27,7 +27,7 @@ import os |
342 |
- import sys |
343 |
- import time |
344 |
- import zipfile |
345 |
--import __main__ |
346 |
-+import renpy.common as common |
347 |
- |
348 |
- |
349 |
- last_clock = time.time() |
350 |
-@@ -273,7 +273,7 @@ def main(): |
351 |
- renpy.config.searchpath = [ renpy.config.gamedir ] |
352 |
- |
353 |
- # Find the common directory. |
354 |
-- commondir = __main__.path_to_common(renpy.config.renpy_base) # E1101 @UndefinedVariable |
355 |
-+ commondir = common.path_to_common(renpy.config.renpy_base) # E1101 @UndefinedVariable |
356 |
- |
357 |
- if os.path.isdir(commondir): |
358 |
- renpy.config.searchpath.append(commondir) |
359 |
-@@ -371,7 +371,7 @@ def main(): |
360 |
- |
361 |
- # Find the save directory. |
362 |
- if renpy.config.savedir is None: |
363 |
-- renpy.config.savedir = __main__.path_to_saves(renpy.config.gamedir) # E1101 @UndefinedVariable |
364 |
-+ renpy.config.savedir = common.path_to_saves(renpy.config.gamedir) # E1101 @UndefinedVariable |
365 |
- |
366 |
- if renpy.game.args.savedir: #@UndefinedVariable |
367 |
- renpy.config.savedir = renpy.game.args.savedir #@UndefinedVariable |
368 |
--- |
369 |
-2.5.0 |
370 |
- |
371 |
|
372 |
diff --git a/games-engines/renpy/renpy-6.99.12.4.ebuild b/games-engines/renpy/renpy-6.99.12.4.ebuild |
373 |
deleted file mode 100644 |
374 |
index 4a72ef4cb2b..00000000000 |
375 |
--- a/games-engines/renpy/renpy-6.99.12.4.ebuild |
376 |
+++ /dev/null |
377 |
@@ -1,113 +0,0 @@ |
378 |
-# Copyright 1999-2017 Gentoo Foundation |
379 |
-# Distributed under the terms of the GNU General Public License v2 |
380 |
- |
381 |
-EAPI=5 |
382 |
-PYTHON_COMPAT=( python2_7 ) |
383 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
384 |
-inherit eutils games gnome2-utils toolchain-funcs versionator distutils-r1 |
385 |
- |
386 |
-DESCRIPTION="Visual novel engine written in python" |
387 |
-HOMEPAGE="http://www.renpy.org" |
388 |
-SRC_URI="http://www.renpy.org/dl/${PV}/${P}-source.tar.bz2" |
389 |
- |
390 |
-LICENSE="MIT" |
391 |
-SLOT="$(get_version_component_range 1-2)" |
392 |
-MYSLOT=$(delete_all_version_separators ${SLOT}) |
393 |
-KEYWORDS="~amd64 ~x86" |
394 |
-IUSE="development doc examples" |
395 |
-REQUIRED_USE="examples? ( development )" |
396 |
- |
397 |
-RDEPEND=" |
398 |
- >=app-eselect/eselect-renpy-0.6 |
399 |
- dev-libs/fribidi |
400 |
- ~dev-python/pygame_sdl2-${PV}[${PYTHON_USEDEP}] |
401 |
- >=dev-lang/python-exec-0.3[${PYTHON_USEDEP}] |
402 |
- media-libs/glew:0 |
403 |
- media-libs/libpng:0 |
404 |
- media-libs/libsdl2[video] |
405 |
- media-libs/freetype:2 |
406 |
- sys-libs/zlib |
407 |
- virtual/ffmpeg" |
408 |
-DEPEND="${RDEPEND} |
409 |
- dev-python/cython[${PYTHON_USEDEP}] |
410 |
- virtual/pkgconfig" |
411 |
- |
412 |
-S=${WORKDIR}/${P}-source |
413 |
- |
414 |
-pkg_setup() { |
415 |
- games_pkg_setup |
416 |
- export CFLAGS="${CFLAGS} $($(tc-getPKG_CONFIG) --cflags fribidi)" |
417 |
-} |
418 |
- |
419 |
-python_prepare_all() { |
420 |
- # wooosh! this should fix multiple abi |
421 |
- epatch "${FILESDIR}"/${P}-multiple-abi.patch |
422 |
- |
423 |
- einfo "Deleting precompiled python files" |
424 |
- find . -name '*.py[co]' -print -delete || die |
425 |
- |
426 |
- sed -i \ |
427 |
- -e "s/@SLOT@/${MYSLOT}/" \ |
428 |
- renpy.py renpy/common.py || die "setting slot failed!" |
429 |
- |
430 |
- distutils-r1_python_prepare_all |
431 |
-} |
432 |
- |
433 |
-python_compile() { |
434 |
- cd "${S}"/module || die |
435 |
- distutils-r1_python_compile |
436 |
-} |
437 |
- |
438 |
-python_install() { |
439 |
- cd "${S}"/module || die |
440 |
- distutils-r1_python_install --install-lib="$(python_get_sitedir)/renpy${MYSLOT}" |
441 |
- |
442 |
- cd "${S}" || die |
443 |
- python_scriptinto "${GAMES_BINDIR}" |
444 |
- python_newscript renpy.py ${PN}-${SLOT} |
445 |
- |
446 |
- python_moduleinto renpy${MYSLOT} |
447 |
- python_domodule renpy |
448 |
- if use development ; then |
449 |
- python_domodule launcher templates |
450 |
- fi |
451 |
- if use examples ; then |
452 |
- python_domodule the_question tutorial |
453 |
- fi |
454 |
-} |
455 |
- |
456 |
-python_install_all() { |
457 |
- distutils-r1_python_install_all |
458 |
- if use development; then |
459 |
- newicon -s 32 launcher/game/images/logo32.png ${P}.png |
460 |
- make_desktop_entry ${PN}-${SLOT} "Ren'Py ${PV}" ${P} |
461 |
- fi |
462 |
- |
463 |
- if use doc; then |
464 |
- insinto html |
465 |
- doins -r doc |
466 |
- fi |
467 |
- newman "${FILESDIR}/${PN}.1" "${P}.1" |
468 |
- |
469 |
- prepgamesdirs |
470 |
-} |
471 |
- |
472 |
-pkg_preinst() { |
473 |
- games_pkg_preinst |
474 |
- use development && gnome2_icon_savelist |
475 |
-} |
476 |
- |
477 |
-pkg_postinst() { |
478 |
- games_pkg_postinst |
479 |
- use development && gnome2_icon_cache_update |
480 |
- |
481 |
- einfo "running: eselect renpy update --if-unset" |
482 |
- eselect renpy update --if-unset |
483 |
-} |
484 |
- |
485 |
-pkg_postrm() { |
486 |
- use development && gnome2_icon_cache_update |
487 |
- |
488 |
- einfo "running: eselect renpy update --if-unset" |
489 |
- eselect renpy update --if-unset |
490 |
-} |
491 |
|
492 |
diff --git a/games-engines/renpy/renpy-6.99.6.ebuild b/games-engines/renpy/renpy-6.99.6.ebuild |
493 |
deleted file mode 100644 |
494 |
index 063e7bf634c..00000000000 |
495 |
--- a/games-engines/renpy/renpy-6.99.6.ebuild |
496 |
+++ /dev/null |
497 |
@@ -1,110 +0,0 @@ |
498 |
-# Copyright 1999-2017 Gentoo Foundation |
499 |
-# Distributed under the terms of the GNU General Public License v2 |
500 |
- |
501 |
-EAPI=5 |
502 |
-PYTHON_COMPAT=( python2_7 ) |
503 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
504 |
-inherit eutils toolchain-funcs python-r1 versionator gnome2-utils games distutils-r1 |
505 |
- |
506 |
-DESCRIPTION="Visual novel engine written in python" |
507 |
-HOMEPAGE="http://www.renpy.org" |
508 |
-SRC_URI="http://www.renpy.org/dl/${PV}/${P}-source.tar.bz2" |
509 |
- |
510 |
-LICENSE="MIT" |
511 |
-SLOT="$(get_version_component_range 1-2)" |
512 |
-MYSLOT=$(delete_all_version_separators ${SLOT}) |
513 |
-KEYWORDS="~amd64 ~x86" |
514 |
-IUSE="development doc examples" |
515 |
-REQUIRED_USE="examples? ( development )" |
516 |
- |
517 |
-RDEPEND=" |
518 |
- >=app-eselect/eselect-renpy-0.6 |
519 |
- dev-libs/fribidi |
520 |
- ~dev-python/pygame_sdl2-${PV}[${PYTHON_USEDEP}] |
521 |
- >=dev-lang/python-exec-0.3[${PYTHON_USEDEP}] |
522 |
- media-libs/glew:0 |
523 |
- media-libs/libpng:0 |
524 |
- media-libs/libsdl2[video] |
525 |
- media-libs/freetype:2 |
526 |
- sys-libs/zlib |
527 |
- virtual/ffmpeg" |
528 |
-DEPEND="${RDEPEND} |
529 |
- dev-python/cython[${PYTHON_USEDEP}] |
530 |
- virtual/pkgconfig" |
531 |
- |
532 |
-S=${WORKDIR}/${P}-source |
533 |
- |
534 |
-pkg_setup() { |
535 |
- games_pkg_setup |
536 |
- export CFLAGS="${CFLAGS} $($(tc-getPKG_CONFIG) --cflags fribidi)" |
537 |
-} |
538 |
- |
539 |
-python_prepare_all() { |
540 |
- # wooosh! this should fix multiple abi |
541 |
- epatch "${FILESDIR}"/${P}-multiple-abi.patch |
542 |
- |
543 |
- einfo "Deleting precompiled python files" |
544 |
- find . -name '*.py[co]' -print -delete || die |
545 |
- |
546 |
- sed -i \ |
547 |
- -e "s/@SLOT@/${MYSLOT}/" \ |
548 |
- renpy.py renpy/common.py || die "setting slot failed!" |
549 |
- |
550 |
- distutils-r1_python_prepare_all |
551 |
-} |
552 |
- |
553 |
-python_compile() { |
554 |
- cd "${S}"/module || die |
555 |
- distutils-r1_python_compile |
556 |
-} |
557 |
- |
558 |
-python_install() { |
559 |
- cd "${S}"/module || die |
560 |
- distutils-r1_python_install --install-lib="$(python_get_sitedir)/renpy${MYSLOT}" |
561 |
- |
562 |
- cd "${S}" || die |
563 |
- python_scriptinto "${GAMES_BINDIR}" |
564 |
- python_newscript renpy.py ${PN}-${SLOT} |
565 |
- |
566 |
- python_moduleinto renpy${MYSLOT} |
567 |
- python_domodule renpy |
568 |
- if use development ; then |
569 |
- python_domodule launcher templates |
570 |
- fi |
571 |
- if use examples ; then |
572 |
- python_domodule the_question tutorial |
573 |
- fi |
574 |
-} |
575 |
- |
576 |
-python_install_all() { |
577 |
- if use development; then |
578 |
- newicon -s 32 launcher/game/images/logo32.png ${P}.png |
579 |
- make_desktop_entry ${PN}-${SLOT} "Ren'Py ${PV}" ${P} |
580 |
- fi |
581 |
- |
582 |
- if use doc; then |
583 |
- dohtml -r doc |
584 |
- fi |
585 |
- |
586 |
- prepgamesdirs |
587 |
-} |
588 |
- |
589 |
-pkg_preinst() { |
590 |
- games_pkg_preinst |
591 |
- use development && gnome2_icon_savelist |
592 |
-} |
593 |
- |
594 |
-pkg_postinst() { |
595 |
- games_pkg_postinst |
596 |
- use development && gnome2_icon_cache_update |
597 |
- |
598 |
- einfo "running: eselect renpy update --if-unset" |
599 |
- eselect renpy update --if-unset |
600 |
-} |
601 |
- |
602 |
-pkg_postrm() { |
603 |
- use development && gnome2_icon_cache_update |
604 |
- |
605 |
- einfo "running: eselect renpy update --if-unset" |
606 |
- eselect renpy update --if-unset |
607 |
-} |