summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2014-01-21 00:11:03 +0000
committerJulian Ospald <hasufell@gentoo.org>2014-01-21 00:11:03 +0000
commit622e6636a29505f4fee090c930c960fd4d57fc5c (patch)
tree30cfba8f2c44d70bd13f8f2c4176f3b16ab4ab3c /games-engines
parentx86 stable wrt security bug #497692 (diff)
downloadhistorical-622e6636a29505f4fee090c930c960fd4d57fc5c.tar.gz
historical-622e6636a29505f4fee090c930c960fd4d57fc5c.tar.bz2
historical-622e6636a29505f4fee090c930c960fd4d57fc5c.zip
version bump
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64 Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'games-engines')
-rw-r--r--games-engines/renpy/ChangeLog10
-rw-r--r--games-engines/renpy/Manifest19
-rw-r--r--games-engines/renpy/files/renpy-6.17.0-multiple-abi.patch245
-rw-r--r--games-engines/renpy/renpy-6.17.0.ebuild111
4 files changed, 375 insertions, 10 deletions
diff --git a/games-engines/renpy/ChangeLog b/games-engines/renpy/ChangeLog
index 8957f9d16a14..94f4127e5798 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.25 2013/12/18 20:47:29 hasufell Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-engines/renpy/ChangeLog,v 1.26 2014/01/21 00:11:02 hasufell Exp $
+
+*renpy-6.17.0 (21 Jan 2014)
+
+ 21 Jan 2014; Julian Ospald <hasufell@gentoo.org> +renpy-6.17.0.ebuild,
+ +files/renpy-6.17.0-multiple-abi.patch:
+ version bump
*renpy-6.16.5 (18 Dec 2013)
diff --git a/games-engines/renpy/Manifest b/games-engines/renpy/Manifest
index 681d5143fbfb..e87ff44678e2 100644
--- a/games-engines/renpy/Manifest
+++ b/games-engines/renpy/Manifest
@@ -9,28 +9,31 @@ AUX renpy-6.15.7-multiple-abi.patch 8641 SHA256 a93776659e1292bdd41a8d4ff38d0720
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.5-multiple-abi.patch 8299 SHA256 8bbb5f2dc11be467d1531d7022a02540fe4155e7150ab6a731de65f11a2c0815 SHA512 a20e1623813590de466f2ababb5d49f0eece8b747745e863d3ec13a1ffac1d102181dfeccfadf9662c9932283a4ccef58824e45542083c7b3ea90bbd91f7c56c WHIRLPOOL 3f376f7e51c3b3e5cf1bd79a4810d728577b877862d86c42a9658bbeb3109ace0a97199da6b30e32c582715e6bccaee1e1831218e48e75af752e3283315dd945
+AUX renpy-6.17.0-multiple-abi.patch 8291 SHA256 2e061ee085bcd5f23b2a9eb28db5f5abc57cdf4074da56946ce0fd868d0d7916 SHA512 f35019bfbe26f6172dda1bb8f62cd3d928aa26a52db00d79767847e500373c4fd9c083065f22f9f44a9a8ee67cc3cc23718e77d11ec166a96e68574625521748 WHIRLPOOL 87fb20ea821eafb4de36323bb2fd35e0461ce8e5cef4dff33845b7bbeb195d9cb7818e0e3956ddcab2984928e23248b39948d8bcf303f8752031690df155864e
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.5-source.tar.bz2 14455622 SHA256 5ecb00fa84a048ff6e1f1d8a0114373425375e9c0b2a0596bf2d47e996b9d056 SHA512 1a718d86a689135e5a280f64cdc3c0340d712b7804af2169ed4cb4a12528e01088c919b87d36176b3fb8a05e8201f226146c46c4f4d5ebf1d89c3cebd1263c4d WHIRLPOOL b06638c284089ba79d12d95ba604c40fffe595d67e75551bbe8a08ddc57403f1644dd713c5eb15a39fcc34b92722589437935666d172379bb1164d2a02ef9433
+DIST renpy-6.17.0-source.tar.bz2 15982585 SHA256 802721464dee19a823206e343246248762f79e484d240779ca0605662ca33871 SHA512 f08b259f218310952ccb48b7c72b5488eb23a11d6b799d6d44c5f938b5a9c49eb1f50a28c644e7dc655219c3a591159e44bc292148f86306215a25e3e1b6c761 WHIRLPOOL 322bec212f54e8344964e46c74202e7c9e4c80f1b5f34e3583e3e6ebc492ffffb7543b9cebff2d4b5b0cdedf94ca51e900a302a106f2d839fa76ef4c75d824d8
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
EBUILD renpy-6.16.5.ebuild 2645 SHA256 623743c8b8df784c4cb98f4055b8db13d49d5ce98fd0a5ca16e99ee2264b1cbb SHA512 9c9c6b5f633d23340de1c82be3a21162304807b7f95ea3f47b94f3ff09897a1e701225a1514378d3c635a994a61b71cca02d3ad71d3e0144c794610a9f81cede WHIRLPOOL 4738ba78ef45c68a86c1787fab8f1c0cdd52c92527a4a7fda49df799f46b25a41eeaef8171df58b314dbb5880810f40ceba8803e380f407311f133a6667f0769
-MISC ChangeLog 4331 SHA256 f3091d487b3d409efcd6280e2b0570e8596a968f2536d01c85f689c83c5a3e05 SHA512 24e43e9f57d5f1451c2eeb8bffe9e1511fc8cc921a83d1634716008120a573582f46d92729f3486d8e57a36ad51c9036145a0353a6d4e8c60d877aa2a42ff26f WHIRLPOOL 616346445c98cace402c42d18ffb0f454bd5a17dcc94d3b050fd4967f75e6900cd2fa21e7b99878d7589573a9e31f12cf89bae9f43321ebb8636e8ab324b110d
+EBUILD renpy-6.17.0.ebuild 2635 SHA256 3a1af0507e6f6169225629e396cbb7d47325caccb29d00c2285abb9b8e6a257b SHA512 053e10209e448864a22c535c239fab72b2dc6a2a97faaa67ea474c5a91898fb4ff67e23308a4d091d9052ecfb57c9d5a95a3e69533fac0917e650e56f8a7f535 WHIRLPOOL 77cabd7e6aeaab0296dd1af31ef288b66c423df7ae202caaec941e7d88d9ab98e1be30124e99b596742905edd441ebd5205917c85c930ed10ea1d8d5ee7f189e
+MISC ChangeLog 4491 SHA256 b9cdde460a15ff831a259322911bddc8eeac0fdc45c52c8031da3225103a1081 SHA512 6317c1bbe476d26fe40047b637e36b0d0c4ab2568517225781536db81feef9bd075ccb39a9488b032979637395f2b68aab83a662d9a3c53930068df9a0dd6606 WHIRLPOOL e0f7e1a7078c7cf1ad069e0a2aa3c6d07d98b0d9ab52496ce3a4098e5630f9d8f14bd2f77649a810468060e85149662e360bfd01c6f75ca9c8a03c25723a3e54
MISC metadata.xml 1320 SHA256 87e82c53eca026840f61ba025e6bc8fce59f30c42c12e0560acccf25b00229c8 SHA512 13c3728b2c8f65d8795163aa95bcfc3e7a7875e1a360c283f7ceeb29bda2ef7060323f31b34dd885820294e836fa255c1433d250b7828081b1b14074e2e1e786 WHIRLPOOL 0697e087d393802545ac1163aa96a387f90adf99975f57013f5f73553a61906f3ec87460584d4e66ea3c7864b0195222e190997618cd4babe20f0fd81327bfcb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQEcBAEBCAAGBQJSsgnmAAoJEFpvPKfnPDWzFIEH/3RAt9nMmWCioUwVrorhDHlZ
-ELGG3aQOTs3r0WTEdVXZJizvTguIN5v9NUe/hchehxL5+wQOfGyLYULaGDWAenQ1
-gHTTTx4ifdYHZMwCN0kRtIQ7n/F2w43Dx8H9HkpYgQGROA9jWSpu6mNgSXNhspVf
-3ZbQ3pX5wZ62+UCDSLybKoHh3b34EYHQBnG5gQokD0rayJ3qviy4PH5mKVSIdVDZ
-EvswhmQ9Hkf1BWqxhNCYv2RFkbuq/unpAOvOjzC0Ir5UpGJhENTOpoDA8XSSO6Wk
-4XYEv4NVwTxu+s6cWHloShk9vVCwCdsxN/6ro/J9MqwX2ybvaRvCxqeq/2pT3Es=
-=cFN/
+iQEcBAEBCAAGBQJS3bsYAAoJEFpvPKfnPDWzrkcH/0gjd42jEIZTmeyWR/+4OoaJ
+CuzNiNKt7fimGH2hPO32cUQM+YMx1ARQhxQ54v01w9PnkF+cRld/IGsMlCVAtulS
+rQ9EBgbwymXguOUms9KWdesnK3kf+u2NkHLCMJFV7NqoS2L5r4VSxMMPPYr54y2z
+dQKT1rT9xUVIVHhcjF2Sw5xgj85fQTAgZENZvlX3yid4B8AfE/iPDdlzvZoCASk3
+0D164ZKD0hnUpOPfHMCJVVaQ+p+rCzcLQo0gdohggrk0Lr1FUGT5PmFOezRHtUX1
+5YqzQQxEfvnmBhQ04m77HOTr3+N9jm/kamxxoBgZhIPGroZ/S0i0cBybd4jQHlc=
+=eF8s
-----END PGP SIGNATURE-----
diff --git a/games-engines/renpy/files/renpy-6.17.0-multiple-abi.patch b/games-engines/renpy/files/renpy-6.17.0-multiple-abi.patch
new file mode 100644
index 000000000000..bfa4af3954ac
--- /dev/null
+++ b/games-engines/renpy/files/renpy-6.17.0-multiple-abi.patch
@@ -0,0 +1,245 @@
+commit 7451ba936ca2f3358ca51ab562371774199c7052
+Author: hasufell <hasufell@gentoo.org>
+Date: Tue Jan 21 01:02:00 2014 +0100
+
+ 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 143007d..6c55bbc 100644
+--- a/renpy/main.py
++++ b/renpy/main.py
+@@ -25,7 +25,7 @@ import os
+ import sys
+ import time
+ import zipfile
+-import __main__
++import renpy.common as common
+
+
+ def run(restart):
+@@ -167,7 +167,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)
+@@ -230,7 +230,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.17.0.ebuild b/games-engines/renpy/renpy-6.17.0.ebuild
new file mode 100644
index 000000000000..7a7b24d10c49
--- /dev/null
+++ b/games-engines/renpy/renpy-6.17.0.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-engines/renpy/renpy-6.17.0.ebuild,v 1.1 2014/01/21 00:11:02 hasufell Exp $
+
+EAPI=5
+PYTHON_COMPAT=( 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.4
+ 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
+}