summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-12-17 17:07:42 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-12-17 17:07:42 +0000
commit554cf546bb2cbce021c1cdd7808bfa69011e22e6 (patch)
tree1d1adfbefa0d8f221109702c48a9e9148d6a0106 /games-engines
parentadd missing test dependency (diff)
downloadhistorical-554cf546bb2cbce021c1cdd7808bfa69011e22e6.tar.gz
historical-554cf546bb2cbce021c1cdd7808bfa69011e22e6.tar.bz2
historical-554cf546bb2cbce021c1cdd7808bfa69011e22e6.zip
version bump
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'games-engines')
-rw-r--r--games-engines/renpy/ChangeLog8
-rw-r--r--games-engines/renpy/Manifest19
-rw-r--r--games-engines/renpy/files/renpy-6.16.4-multiple-abi.patch245
-rw-r--r--games-engines/renpy/renpy-6.16.4.ebuild111
4 files changed, 374 insertions, 9 deletions
diff --git a/games-engines/renpy/ChangeLog b/games-engines/renpy/ChangeLog
index 8ff4f997a8c0..21211c158f79 100644
--- a/games-engines/renpy/ChangeLog
+++ b/games-engines/renpy/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-engines/renpy
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-engines/renpy/ChangeLog,v 1.23 2013/12/02 19:12:53 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-engines/renpy/ChangeLog,v 1.24 2013/12/17 17:07:37 hasufell Exp $
+
+*renpy-6.16.4 (17 Dec 2013)
+
+ 17 Dec 2013; Julian Ospald <hasufell@gentoo.org>
+ +files/renpy-6.16.4-multiple-abi.patch, +renpy-6.16.4.ebuild:
+ version bump
*renpy-6.16.3 (02 Dec 2013)
diff --git a/games-engines/renpy/Manifest b/games-engines/renpy/Manifest
index 74561c3b5a83..bf66533dacae 100644
--- a/games-engines/renpy/Manifest
+++ b/games-engines/renpy/Manifest
@@ -8,26 +8,29 @@ AUX renpy-6.15.4-multiple-abi.patch 7631 SHA256 c75d7096b7630f72a49610a38953fe50
AUX renpy-6.15.7-multiple-abi.patch 8641 SHA256 a93776659e1292bdd41a8d4ff38d0720c3d85103326abbab6322e9175f599305 SHA512 626fe08565e226473180e51e54b650f336f71e57c71a99bda3d0e55e2115863169bd39d8d8e706f787275b81345b553c104f21a6d71ebadee017bda13826bda3 WHIRLPOOL 640bae68cc1e5c7ad2781a93e050d4b4fc3e7ec564224a1014787f5f8b0d19ab5202d7924b7e308c0e6e09a3487c707aa372794c0f5b42cd9d45954d93f3beef
AUX renpy-6.16.2-multiple-abi.patch 8299 SHA256 8bbb5f2dc11be467d1531d7022a02540fe4155e7150ab6a731de65f11a2c0815 SHA512 a20e1623813590de466f2ababb5d49f0eece8b747745e863d3ec13a1ffac1d102181dfeccfadf9662c9932283a4ccef58824e45542083c7b3ea90bbd91f7c56c WHIRLPOOL 3f376f7e51c3b3e5cf1bd79a4810d728577b877862d86c42a9658bbeb3109ace0a97199da6b30e32c582715e6bccaee1e1831218e48e75af752e3283315dd945
AUX renpy-6.16.3-multiple-abi.patch 8299 SHA256 8bbb5f2dc11be467d1531d7022a02540fe4155e7150ab6a731de65f11a2c0815 SHA512 a20e1623813590de466f2ababb5d49f0eece8b747745e863d3ec13a1ffac1d102181dfeccfadf9662c9932283a4ccef58824e45542083c7b3ea90bbd91f7c56c WHIRLPOOL 3f376f7e51c3b3e5cf1bd79a4810d728577b877862d86c42a9658bbeb3109ace0a97199da6b30e32c582715e6bccaee1e1831218e48e75af752e3283315dd945
+AUX renpy-6.16.4-multiple-abi.patch 8299 SHA256 8bbb5f2dc11be467d1531d7022a02540fe4155e7150ab6a731de65f11a2c0815 SHA512 a20e1623813590de466f2ababb5d49f0eece8b747745e863d3ec13a1ffac1d102181dfeccfadf9662c9932283a4ccef58824e45542083c7b3ea90bbd91f7c56c WHIRLPOOL 3f376f7e51c3b3e5cf1bd79a4810d728577b877862d86c42a9658bbeb3109ace0a97199da6b30e32c582715e6bccaee1e1831218e48e75af752e3283315dd945
DIST renpy-6.14.1-source.tar.bz2 9806538 SHA256 18be3630d1956131a1f010732d15292cdcec14a2391210af27dc342fafd8197f SHA512 a1f13a5f860e66054012eab29bbd37715bd9721e2dc30fdd9c8d4d8c58dc672c35b3c813e962ad6878cb741502af5a181dff8a05f359892b6b60d2e15bc5a7bc WHIRLPOOL 54018731e136106f328bf2d028841f09424d8ffd8303821eec995c55918b2c8ac7eb97d9ed24785e95ad3d878b794f5bcf96cc9f783955f8d1ace086a3ca9b61
DIST renpy-6.15.4-source.tar.bz2 10393987 SHA256 1c32fef5fda6f14134ea5e18f4754934644f86bdd968b4600b03b373f2d8e9cb SHA512 d68d5d64b29bf3eb19a38aa9dc540278e0b054dc2629aaa01866fbf2976cc6a5ffb0027706004526112782b25d0a8aae76a6b3958b5bfdac8a62841ba223554a WHIRLPOOL 008e1e3986d97d24256b6438de00be7ae676c893a67d975037c8bbfc5bfbdb886cb70d28bed3dfbec5c6529906b66071cc990fc617c1b579f8d2f9f9afe20ca8
DIST renpy-6.15.7-source.tar.bz2 10421736 SHA256 b4280b62f7c8f730a37c7e567b16216b4578fc3640fbcdf5df7c65a73ae52e52 SHA512 d79b1d6b931f281ff208b8ece3889c116ceb05c58fe115e9f7f470788e74e63cfeb3df4f804b4a37a4f1da6ba194c883023808fafc8e8beddf864424958204e6 WHIRLPOOL 202ddb045f440f9abd06f5ac02ebd92a7b0300b14f4755271f1fc4e91bdea21cda19a432f45516f68ba3ad7ead98d7491382ad5c633da277a674f799458795f3
DIST renpy-6.16.2-source.tar.bz2 14472212 SHA256 6212d34f5187cae6f98924bfff1aa983c9942b2aef0041cd2702255a9fef61d8 SHA512 fc3b40f01f2d1e820a05f90a2d85e42986aaa4840e506d18ea76a78527d2f98ca6cf832ebde3e1f996b94f4ce4b175856da913f3de7f1a9db48aba0eea84b52d WHIRLPOOL 5ed14cf741729a420e63c1520a2d2c04d8b5e0976023a545377fcef284be80ed1852d8c0d0a3b005a293b620298e9432f795da55dfba438528c7fd31e6a975a3
DIST renpy-6.16.3-source.tar.bz2 14465781 SHA256 163f25df41b3e20b48f7d777b6137a96d509730484c24cb1a210dc5990e4a779 SHA512 d22cec9232d5250f343305163b10a7edfc44ef6f0db2df9c18b4c67072d4339a6fe6ed4e04808d9d49bcbce451416c8b3fc8da5248294161213b4c985832314d WHIRLPOOL 345fbb98ece9254d670bfafcbf7cba24899058c469ca7d4bfc2da720317c70fdd3ae540609b04081afb75d875213bbd0c26ac745f325cdc67e27b33b515f6e4f
+DIST renpy-6.16.4-source.tar.bz2 14464492 SHA256 1d3fd582af608814bac67901a1420a20f648d2c08e8b35838c950b2df744318a SHA512 7b957f2bed71cede7909fe493169a7b41bfe6287a7d1cdca02e458c73b4bf5688255795b30ef97fe1369b7329bdba535c56a4e2e937fe8ca85b4fc2b98296d5a WHIRLPOOL ad4ce39fa60d49eaaaf9799c66b4e6d013f48544ee482498140e47fd5c30793318ad7b1202db15a45a6f78ba8b47bf12bd939a068e8d8b971f9a7b0a923d0ecb
EBUILD renpy-6.14.1-r1.ebuild 2703 SHA256 e03097c56877b18833fa7e952f4ca3d1ee3ce987a7afe244fb9f75a45a7700ed SHA512 c3a2df55da0b6f1b6973c81ca8adc2a7f47279db6e426135f4bc828506d44c3f0ddc3a7bba1c392cd2fc0af4c8b541bcb73334014708f0dd27ecea13065cfe60 WHIRLPOOL 257b09f71d948b9cc15821445690152a4b30353f594e2c0df3aa91177966045279fd7c88ce707f18e33abfd279130d18d32b3ee033f7749e8081f91099458be9
EBUILD renpy-6.15.4.ebuild 2639 SHA256 580e8fcd2095a6564ae7d353872eba4e162c49e84b2db6ebaef1d58496296a7b SHA512 cdfadf92aedf76dc94315ba4f5efdedfb6dd2bc069a81c95e2137b6cf64ebfedcb1a5870fca3df82ffbcf8fd4a1c647e45805943bffc8fd922fd5e343deafb0b WHIRLPOOL b64074a13dd6e12bd38da26c8afae63083c4c11564bf16f45faa11256711f46eba96828ec3665bfcc76102851604ac74113c270beb8f2906bd2b5048010cd1f8
EBUILD renpy-6.15.7.ebuild 2639 SHA256 299fcba161e19c477a636a66612aeb5605871d02a35f0d0d19e30e435c3f412a SHA512 47a901f1f04da04a58c41b722fa45a803b6eddeacb0efa665746e2d465d350c6a53417078e7ac084a78406d29e2ed4719c6fa4c559449b66351158a0fd4a36a4 WHIRLPOOL e93669ad5db18acfa35e52b4ba4bdca455e1161838424e3f33308c61cd6533a3bc926890e664cf6d3bea64c2dc2ba0bc8a8730db4a6665fdd60f53486c41e8d7
EBUILD renpy-6.16.2.ebuild 2645 SHA256 34bbcee61e624901128817f3b42cb3301f68f5ddc2311b8e31b25739bd76996f SHA512 a8d140030fba3eff123096cd1c2cd55cdb482beca628dc7f7d60d64d984f529df3e9861bbbdd359a0b97edc16b9053e002eaca7b65ed53341e01b1f9fa925a62 WHIRLPOOL 3d063d60c43e88b69ad47f7f3f39070388711623f9b8a7e55bd22d343213ed91242f0c9f88ae989af34896b3c22508500bfe6b1b69d14ac013ab9a5f1bd29967
EBUILD renpy-6.16.3.ebuild 2645 SHA256 01eede8879fea3316cecd7754ad919bd6ba148b0e8ba49dd95db93510bf614fd SHA512 60bff4697445e4e9d3752d0d450c756db48242193eb4206d8e596de88753981cfed94310a4373965563993b68bfa7595c4b6f7d1f4c4f1c693f1d593f60efe7a WHIRLPOOL ca1079ca50f3fade0c5e48f30f5edfc70d4649b8a0945a1e665d06900201c7317f292f1ebcf5dea7a54361a3ae80e22a50136f6b4192383ddf7e0cf356524462
-MISC ChangeLog 3947 SHA256 bca181c3dc68b26b6b9236712aa7d5530dd4fb52a61ae1176a6d1be2b2f87e0b SHA512 514fec98453c7e0e97d06676ee5a974a7e3c9bdd022d66ae786bf73239626cc8aaab356f7116452a2bbb5856af09ee275176292642717cf32c224ac6d848044d WHIRLPOOL 9d01446135d62e27ea60f6282ea2e5ef2eea17ee2d59cc42fb8359621a12925c1cb8b326dac5c7548bebba77b979cb9608e46b16245f8849388ec8eff24323e6
+EBUILD renpy-6.16.4.ebuild 2645 SHA256 7085189d354ae74fda7e787e4f06171c76a16384e9affd0172300b85c137ac73 SHA512 3fc79045a5b867356abca67f1c80318b41a5f7ad64c3f39a1d07082ef4de1a34dd70d895a64c2088b6c967f3c58819111d3a8036f499b239feee71fc839663e5 WHIRLPOOL ce28a2d6491e52080cec0341b2b6c14e6f29efced94b771a2a1aa19e996f4581d90b5445bcb6bebebbef039447d83f5d1679ea3637308c3a76f080e0351f8ec3
+MISC ChangeLog 4107 SHA256 4bbe8e715579b72f922c7877a7bac43460df03de8889810c18b1936956828c25 SHA512 923e803c010e976f1f1df6ed969cba4147264a985a59a4e8a7c166642422430308a556ab54cc20209b98148c99aa3504ae03ed76941fd22e31a12c77ce49ee6e WHIRLPOOL 8fc7c7d39aaf9ece7a2cfb0e818a3c7478e2385aa12e6ec381b3b074ad8188416b9842b473b4bfd56c904fb7490db2a79905722fa4dd10edd19ae56f7bf4c607
MISC metadata.xml 1320 SHA256 87e82c53eca026840f61ba025e6bc8fce59f30c42c12e0560acccf25b00229c8 SHA512 13c3728b2c8f65d8795163aa95bcfc3e7a7875e1a360c283f7ceeb29bda2ef7060323f31b34dd885820294e836fa255c1433d250b7828081b1b14074e2e1e786 WHIRLPOOL 0697e087d393802545ac1163aa96a387f90adf99975f57013f5f73553a61906f3ec87460584d4e66ea3c7864b0195222e190997618cd4babe20f0fd81327bfcb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQEcBAEBCAAGBQJSnNu6AAoJEFpvPKfnPDWz4EIH/37JWQiSM7YvDV93f2wGWePL
-C+Dr1xKu9J0dxyCmrVLZDTvB6jeIrBrRw6ciclh6UhJsYz91/70WA7BkEhVepirb
-xz0PKpdQ1BZdsO7FfvZQuI73LYIJslbfSNuDlwPU7OckG1pxPGR69Uo5ch06YykT
-1IHyFhNRQT7qAwrhZI2p8VS3CEX/iyjNSRTZd3ldEqlc8Hgqf7r07aEnWMiwAs0H
-A0riDcUlqxqW91I4APtJDgdWX9FmuFkeyltpwouPHJLZmWPWg8hRRwB7o0s1UObw
-Yb/Vw7xUSd8bGs9LKNCVjb/14rmosZmuoTfXcXtSr+OQnnj11g8BSaPw+TVK66c=
-=duqE
+iQEcBAEBCAAGBQJSsITeAAoJEFpvPKfnPDWzCCcH/0lRPoF8Pwrq7TqWiqMJb51K
+xCfrjx745Y7OGfI/VJ57cWMYExTB64Jy+AZbJsmfmRbDggeHirjDf1jNpjlMx+cE
+tKQFGOkIb+8K1kMDCx9EwIv0CD3rcnpZeFwJHSfFT0wYx/gvZdluJc4G3tKki+l/
+KWE5J+TsgSPBS5Ci2i4LgB376rsa8yTVsuxAZPR3A3efQRQ0tkElnXqcB5cLLYAL
+8Gr+zrw546AmXrry/FgLU6leiePYhBw952M8N40iSXaoXUtbZwnGj+eHTmqTQXe2
+A4hS8JfcKOb6ytG8Ph4NuPEuQ361EIOoWQzgcV8MbNugTMcd9MGmefx7vPMu3NQ=
+=CmdR
-----END PGP SIGNATURE-----
diff --git a/games-engines/renpy/files/renpy-6.16.4-multiple-abi.patch b/games-engines/renpy/files/renpy-6.16.4-multiple-abi.patch
new file mode 100644
index 000000000000..a1c54901ac60
--- /dev/null
+++ b/games-engines/renpy/files/renpy-6.16.4-multiple-abi.patch
@@ -0,0 +1,245 @@
+commit 23f67fe23d7b51e352a500a0e005ae3ef4dbc097
+Author: hasufell <hasufell@gentoo.org>
+Date: Sat Oct 26 22:17:31 2013 +0200
+
+ fix multiple abi support
+
+diff --git a/renpy.py b/renpy.py
+index 9f2977f..394e4e1 100644
+--- a/renpy.py
++++ b/renpy.py
+@@ -28,82 +28,9 @@
+ import os
+ import sys
+ import warnings
+-
+-# Functions to be customized by distributors. ################################
+-
+-# Given the Ren'Py base directory (usually the directory containing
+-# this file), this is expected to return the path to the common directory.
+-def path_to_common(renpy_base):
+- return renpy_base + "/renpy/common"
+-
+-# Given a directory holding a Ren'Py game, this is expected to return
+-# the path to a directory that will hold save files.
+-def path_to_saves(gamedir):
+- import renpy #@UnresolvedImport
+-
+- # Android.
+- if renpy.android:
+- paths = [
+- os.path.join(os.environ["ANDROID_OLD_PUBLIC"], "game/saves"),
+- os.path.join(os.environ["ANDROID_PRIVATE"], "saves"),
+- os.path.join(os.environ["ANDROID_PUBLIC"], "saves"),
+- ]
+-
+- for rv in paths:
+- if os.path.isdir(rv):
+- break
+-
+- print "Using savedir", rv
+-
+- # We return the last path as the default.
+-
+- return rv
+-
+-
+- # No save directory given.
+- if not renpy.config.save_directory:
+- return gamedir + "/saves"
+-
+- # Search the path above Ren'Py for a directory named "Ren'Py Data".
+- # If it exists, then use that for our save directory.
+- path = renpy.config.renpy_base
+-
+- while True:
+- if os.path.isdir(path + "/Ren'Py Data"):
+- return path + "/Ren'Py Data/" + renpy.config.save_directory
+-
+- newpath = os.path.dirname(path)
+- if path == newpath:
+- break
+- path = newpath
+-
+- # Otherwise, put the saves in a platform-specific location.
+- if renpy.macintosh:
+- rv = "~/Library/RenPy/" + renpy.config.save_directory
+- return os.path.expanduser(rv)
+-
+- elif renpy.windows:
+- if 'APPDATA' in os.environ:
+- return os.environ['APPDATA'] + "/RenPy/" + renpy.config.save_directory
+- else:
+- rv = "~/RenPy/" + renpy.config.save_directory
+- return os.path.expanduser(rv)
+-
+- else:
+- rv = "~/.renpy/" + renpy.config.save_directory
+- return os.path.expanduser(rv)
+-
+-
+-# Returns the path to the Ren'Py base directory (containing common and
+-# the launcher, usually.)
+-def path_to_renpy_base():
+- renpy_base = os.path.dirname(os.path.realpath(sys.argv[0]))
+- renpy_base = os.environ.get('RENPY_BASE', renpy_base)
+- renpy_base = os.path.abspath(renpy_base)
+-
+- return renpy_base
+-
+-##############################################################################
++from distutils.sysconfig import get_python_lib
++sys.path.append(get_python_lib() + "/renpy@SLOT@")
++import renpy.common as common
+
+ # The version of the Mac Launcher and py4renpy that we require.
+ macos_version = (6, 14, 0)
+@@ -131,7 +58,7 @@ if android:
+
+ def main():
+
+- renpy_base = path_to_renpy_base()
++ renpy_base = common.path_to_renpy_base()
+
+ # Add paths.
+ if os.path.exists(renpy_base + "/module"):
+diff --git a/renpy/common.py b/renpy/common.py
+new file mode 100644
+index 0000000..1f15b3c
+--- /dev/null
++++ b/renpy/common.py
+@@ -0,0 +1,103 @@
++# This file is part of Ren'Py. The license below applies to Ren'Py only.
++# Games and other projects that use Ren'Py may use a different license.
++
++# Copyright 2004-2012 Tom Rothamel <pytom@bishoujo.us>
++#
++# Permission is hereby granted, free of charge, to any person
++# obtaining a copy of this software and associated documentation files
++# (the "Software"), to deal in the Software without restriction,
++# including without limitation the rights to use, copy, modify, merge,
++# publish, distribute, sublicense, and/or sell copies of the Software,
++# and to permit persons to whom the Software is furnished to do so,
++# subject to the following conditions:
++#
++# The above copyright notice and this permission notice shall be
++# included in all copies or substantial portions of the Software.
++#
++# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
++# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
++# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
++# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
++# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
++# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
++
++import os
++import sys
++import warnings
++from distutils.sysconfig import get_python_lib
++
++# Functions to be customized by distributors. ################################
++
++# Given the Ren'Py base directory (usually the directory containing
++# this file), this is expected to return the path to the common directory.
++def path_to_common(renpy_base):
++ return renpy_base + "/renpy/common"
++
++# Given a directory holding a Ren'Py game, this is expected to return
++# the path to a directory that will hold save files.
++def path_to_saves(gamedir):
++ import renpy #@UnresolvedImport
++
++ # Android.
++ if renpy.android:
++ paths = [
++ os.path.join(os.environ["ANDROID_OLD_PUBLIC"], "game/saves"),
++ os.path.join(os.environ["ANDROID_PRIVATE"], "saves"),
++ os.path.join(os.environ["ANDROID_PUBLIC"], "saves"),
++ ]
++
++ for rv in paths:
++ if os.path.isdir(rv):
++ break
++
++ print "Using savedir", rv
++
++ # We return the last path as the default.
++
++ return rv
++
++
++ # No save directory given.
++ if not renpy.config.save_directory:
++ return gamedir + "/saves"
++
++ # Search the path above Ren'Py for a directory named "Ren'Py Data".
++ # If it exists, then use that for our save directory.
++ path = renpy.config.renpy_base
++
++ while True:
++ if os.path.isdir(path + "/Ren'Py Data"):
++ return path + "/Ren'Py Data/" + renpy.config.save_directory
++
++ newpath = os.path.dirname(path)
++ if path == newpath:
++ break
++ path = newpath
++
++ # Otherwise, put the saves in a platform-specific location.
++ if renpy.macintosh:
++ rv = "~/Library/RenPy/" + renpy.config.save_directory
++ return os.path.expanduser(rv)
++
++ elif renpy.windows:
++ if 'APPDATA' in os.environ:
++ return os.environ['APPDATA'] + "/RenPy/" + renpy.config.save_directory
++ else:
++ rv = "~/RenPy/" + renpy.config.save_directory
++ return os.path.expanduser(rv)
++
++ else:
++ rv = "~/.renpy/" + renpy.config.save_directory
++ return os.path.expanduser(rv)
++
++
++# Returns the path to the Ren'Py base directory (containing common and
++# the launcher, usually.)
++def path_to_renpy_base():
++ renpy_base = os.path.dirname(os.path.realpath(sys.argv[0]))
++ renpy_base = get_python_lib() + "/renpy@SLOT@"
++ renpy_base = os.environ.get('RENPY_BASE', renpy_base)
++ renpy_base = os.path.abspath(renpy_base)
++
++ return renpy_base
+diff --git a/renpy/main.py b/renpy/main.py
+index d15eefc..b11bba9 100644
+--- a/renpy/main.py
++++ b/renpy/main.py
+@@ -26,7 +26,7 @@ import sys
+ import time
+ import zipfile
+ import subprocess
+-import __main__
++import renpy.common as common
+
+
+ def run(restart):
+@@ -166,7 +166,7 @@ def main():
+ renpy.config.searchpath = [ renpy.config.gamedir ]
+
+ # Find the common directory.
+- commondir = __main__.path_to_common(renpy.config.renpy_base) # E1101 @UndefinedVariable
++ commondir = common.path_to_common(renpy.config.renpy_base) # E1101 @UndefinedVariable
+
+ if os.path.isdir(commondir):
+ renpy.config.searchpath.append(commondir)
+@@ -229,7 +229,7 @@ def main():
+
+ # Find the save directory.
+ if renpy.config.savedir is None:
+- renpy.config.savedir = __main__.path_to_saves(renpy.config.gamedir) # E1101 @UndefinedVariable
++ renpy.config.savedir = common.path_to_saves(renpy.config.gamedir) # E1101 @UndefinedVariable
+
+ if renpy.game.args.savedir: #@UndefinedVariable
+ renpy.config.savedir = renpy.game.args.savedir #@UndefinedVariable
diff --git a/games-engines/renpy/renpy-6.16.4.ebuild b/games-engines/renpy/renpy-6.16.4.ebuild
new file mode 100644
index 000000000000..2e73317d20ce
--- /dev/null
+++ b/games-engines/renpy/renpy-6.16.4.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-engines/renpy/renpy-6.16.4.ebuild,v 1.1 2013/12/17 17:07:37 hasufell Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python2_6 python2_7 )
+DISTUTILS_IN_SOURCE_BUILD=1
+inherit eutils toolchain-funcs python-r1 versionator gnome2-utils games distutils-r1
+
+DESCRIPTION="Visual novel engine written in python"
+HOMEPAGE="http://www.renpy.org"
+SRC_URI="http://www.renpy.org/dl/${PV}/${P}-source.tar.bz2"
+
+LICENSE="MIT"
+SLOT="$(get_version_component_range 1-2)"
+MYSLOT=$(delete_all_version_separators ${SLOT})
+KEYWORDS="~amd64 ~x86"
+IUSE="development doc examples"
+REQUIRED_USE="examples? ( development )"
+
+RDEPEND="
+ >=app-admin/eselect-renpy-0.3
+ dev-libs/fribidi
+ dev-python/pygame[X,${PYTHON_USEDEP}]
+ >=dev-python/python-exec-0.3[${PYTHON_USEDEP}]
+ media-libs/glew
+ media-libs/libpng:0
+ media-libs/libsdl[X,video]
+ media-libs/freetype:2
+ sys-libs/zlib
+ virtual/ffmpeg
+ virtual/python-argparse[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${P}-source
+
+pkg_setup() {
+ games_pkg_setup
+ export CFLAGS="${CFLAGS} $($(tc-getPKG_CONFIG) --cflags fribidi)"
+}
+
+python_prepare_all() {
+ # wooosh! this should fix multiple abi
+ epatch "${FILESDIR}"/${P}-multiple-abi.patch
+
+ einfo "Deleting precompiled python files"
+ find . -name '*.py[co]' -print -delete || die
+
+ sed -i \
+ -e "s/@SLOT@/${MYSLOT}/" \
+ renpy.py renpy/common.py || die "setting slot failed!"
+
+ distutils-r1_python_prepare_all
+}
+
+python_compile() {
+ cd "${S}"/module || die
+ distutils-r1_python_compile
+}
+
+python_install() {
+ cd "${S}"/module || die
+ distutils-r1_python_install --install-lib="$(python_get_sitedir)/renpy${MYSLOT}"
+
+ cd "${S}" || die
+ python_scriptinto "${GAMES_BINDIR}"
+ python_newscript renpy.py ${PN}-${SLOT}
+
+ python_moduleinto renpy${MYSLOT}
+ python_domodule renpy
+ if use development ; then
+ python_domodule launcher template
+ fi
+ if use examples ; then
+ python_domodule the_question tutorial
+ fi
+}
+
+python_install_all() {
+ if use development; then
+ newicon -s 32 launcher/game/logo32.png ${P}.png
+ make_desktop_entry ${PN}-${SLOT} "Ren'Py ${PV}" ${P}
+ fi
+
+ if use doc; then
+ dohtml -r doc
+ fi
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ use development && gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ use development && gnome2_icon_cache_update
+
+ einfo "running: eselect renpy update --if-unset"
+ eselect renpy update --if-unset
+}
+
+pkg_postrm() {
+ use development && gnome2_icon_cache_update
+
+ einfo "running: eselect renpy update --if-unset"
+ eselect renpy update --if-unset
+}