summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-engines')
-rw-r--r--games-engines/renpy/ChangeLog8
-rw-r--r--games-engines/renpy/Manifest33
-rw-r--r--games-engines/renpy/files/renpy-6.18.2-multiple-abi.patch271
-rw-r--r--games-engines/renpy/renpy-6.18.2.ebuild111
4 files changed, 407 insertions, 16 deletions
diff --git a/games-engines/renpy/ChangeLog b/games-engines/renpy/ChangeLog
index 7fc9ba290d6a..9208b2d201d4 100644
--- a/games-engines/renpy/ChangeLog
+++ b/games-engines/renpy/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-engines/renpy
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-engines/renpy/ChangeLog,v 1.48 2014/09/23 16:05:13 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-engines/renpy/ChangeLog,v 1.49 2014/10/10 18:21:07 hasufell Exp $
+
+*renpy-6.18.2 (10 Oct 2014)
+
+ 10 Oct 2014; Julian Ospald <hasufell@gentoo.org> +renpy-6.18.2.ebuild,
+ +files/renpy-6.18.2-multiple-abi.patch:
+ version bump
*renpy-6.18.1 (23 Sep 2014)
diff --git a/games-engines/renpy/Manifest b/games-engines/renpy/Manifest
index becc9dce524f..b1a3634e3114 100644
--- a/games-engines/renpy/Manifest
+++ b/games-engines/renpy/Manifest
@@ -11,36 +11,39 @@ AUX renpy-6.16.5-multiple-abi.patch 8299 SHA256 8bbb5f2dc11be467d1531d7022a02540
AUX renpy-6.17.7-multiple-abi.patch 8291 SHA256 ec919186d61a78aece7b01d15984edd502a9886fdfd7a163f9fa0e26f28f06bf SHA512 fd39773b85a54ca709f412430654cacdc91caaa561ad2e15bb02b08b971997062fa3c1adad5e2b582a2dc7acc9886b717517e0c10c0bab6a36fd05e52e98edf9 WHIRLPOOL ca460eb3129c0c4f429af4f88cdcf0d6e164f89f2019fba2f9e97a690d5b132565cbbbc03f6365a74e901842715b012cbff03e67c1c17ca01ccfecae9be501e3
AUX renpy-6.18.0-multiple-abi.patch 8291 SHA256 ec919186d61a78aece7b01d15984edd502a9886fdfd7a163f9fa0e26f28f06bf SHA512 fd39773b85a54ca709f412430654cacdc91caaa561ad2e15bb02b08b971997062fa3c1adad5e2b582a2dc7acc9886b717517e0c10c0bab6a36fd05e52e98edf9 WHIRLPOOL ca460eb3129c0c4f429af4f88cdcf0d6e164f89f2019fba2f9e97a690d5b132565cbbbc03f6365a74e901842715b012cbff03e67c1c17ca01ccfecae9be501e3
AUX renpy-6.18.1-multiple-abi.patch 8880 SHA256 8b5c5131542685fca8e0df84daf651004cb50c78138f46da84715faab00b78f6 SHA512 5162aabbfd2ca6d9ddd56f2f78b7224833a729a9512785663f4782c9a4ff9993f70d56594bc416658353ce3bd02cac1105d9df540c0ac11ac1403ceb555d1b99 WHIRLPOOL 852fbb06cf8b268e9b1e0d87b8dc23ef03514830c9fb4b4f6725ae7f6405f4e1ff77eddfac3f54dc1df2c09dff1f091752d08dab34a1e512f873923bc39199c3
+AUX renpy-6.18.2-multiple-abi.patch 8880 SHA256 8b5c5131542685fca8e0df84daf651004cb50c78138f46da84715faab00b78f6 SHA512 5162aabbfd2ca6d9ddd56f2f78b7224833a729a9512785663f4782c9a4ff9993f70d56594bc416658353ce3bd02cac1105d9df540c0ac11ac1403ceb555d1b99 WHIRLPOOL 852fbb06cf8b268e9b1e0d87b8dc23ef03514830c9fb4b4f6725ae7f6405f4e1ff77eddfac3f54dc1df2c09dff1f091752d08dab34a1e512f873923bc39199c3
DIST renpy-6.14.1-source.tar.bz2 9806538 SHA256 18be3630d1956131a1f010732d15292cdcec14a2391210af27dc342fafd8197f SHA512 a1f13a5f860e66054012eab29bbd37715bd9721e2dc30fdd9c8d4d8c58dc672c35b3c813e962ad6878cb741502af5a181dff8a05f359892b6b60d2e15bc5a7bc WHIRLPOOL 54018731e136106f328bf2d028841f09424d8ffd8303821eec995c55918b2c8ac7eb97d9ed24785e95ad3d878b794f5bcf96cc9f783955f8d1ace086a3ca9b61
DIST renpy-6.15.7-source.tar.bz2 10421736 SHA256 b4280b62f7c8f730a37c7e567b16216b4578fc3640fbcdf5df7c65a73ae52e52 SHA512 d79b1d6b931f281ff208b8ece3889c116ceb05c58fe115e9f7f470788e74e63cfeb3df4f804b4a37a4f1da6ba194c883023808fafc8e8beddf864424958204e6 WHIRLPOOL 202ddb045f440f9abd06f5ac02ebd92a7b0300b14f4755271f1fc4e91bdea21cda19a432f45516f68ba3ad7ead98d7491382ad5c633da277a674f799458795f3
DIST renpy-6.16.5-source.tar.bz2 14455622 SHA256 5ecb00fa84a048ff6e1f1d8a0114373425375e9c0b2a0596bf2d47e996b9d056 SHA512 1a718d86a689135e5a280f64cdc3c0340d712b7804af2169ed4cb4a12528e01088c919b87d36176b3fb8a05e8201f226146c46c4f4d5ebf1d89c3cebd1263c4d WHIRLPOOL b06638c284089ba79d12d95ba604c40fffe595d67e75551bbe8a08ddc57403f1644dd713c5eb15a39fcc34b92722589437935666d172379bb1164d2a02ef9433
DIST renpy-6.17.7-source.tar.bz2 17932988 SHA256 fef01de9e482b73d9d409de7a43bada6dd3e2a0549b99dd487306371190ed038 SHA512 22b0e08b18ee35317b11451205233cbd8a29617d9c3d298bbdcfc5757f67c2f0e4c8a748aa83d5c8b43786c062ffca109d07e981efa750fcee26f45f08a33ea2 WHIRLPOOL fef82eb6c958a2525797e5d8bfae3488fba606b70eeed5c94f7afcab4fa46e7a7eb43d91b4bd55f553b65a72b12236e02ecdee55e8852c1fafc055332f9d131d
DIST renpy-6.18.0-source.tar.bz2 19639455 SHA256 5c22ac631692c1dd48f17f3a6dc0c8e79f79d128878818ad0d7c47c2fb0ac805 SHA512 c54010c95a6075aaec95f256c456e2959d2daa0ff9b9e313c2bd6647dc5d0e971a717f8a1361d9afa59badb177d8e9e8afa3cd9f3d69b603a9045ea79c35d92d WHIRLPOOL 988eba8d56b3ddc0830e1558093c295c331b48da0408ffd4e6dc524adb8fa845ea2b15b33deead32c6e54e38f8b10598cbdb7d086a817f1d3f2d508dfe219a6f
DIST renpy-6.18.1-source.tar.bz2 19836141 SHA256 86690760f6ed0a48835e67d81be64142349546a529d122ba18bf34419c5aa9a6 SHA512 3d71b459f62aeb67410b4fc46cad35884e3471a120dd720fe04646440b8b9ed89d4e75431de4b073cbb6c0c312439062d5085ba1cec046978a49b4dbb180de87 WHIRLPOOL 0137d1cdb88a679c4d01826f40d61d0d0ab0c579ae61ebb5d1fae15468c6aaa00f41dc02d7113d0acbe3dd5d4946ab0c6539855e446c46d34bb6117ca814986c
+DIST renpy-6.18.2-source.tar.bz2 19854257 SHA256 635c7495d5ced298183793cafbe8631981a5a75aec106b4ba145d3dd870a544c SHA512 239de63f7e015076aeb05d4f7da7caa676e151b0f3cbd710b0fe59a592f7af02cd8994ddb0d6225ccec337579eb2de1a5b83759a28572ead631fe3b5df515e8b WHIRLPOOL 85ac745891bf2ab729cb8ad44cab0cdd03399956455a4fbf73d638b87cf49d44c7395658e3882509dc0652492da931f7932297eb39974d7c890e772cfe1f13ff
EBUILD renpy-6.14.1-r1.ebuild 2698 SHA256 22fd3eaba2f10c1afcc9d3460156eb1ed917404d3f6c6308a31e0f9dac6df31e SHA512 8c8373c5d07604a46b2e1a47900b3eccfb8ec76c6f5c4bf81cb201863533cd7383e40d3b880b6e3d400de07d84195eb8a3e589e2bed052ff1c8264ba5fd209cb WHIRLPOOL bcdae321e79d8b3ea76904af1370fab84bb9f744fb3fe519dde46953287c575fc7f0e3f946d498ecb9788e5bb3fac0c0bee59a007cb7d9476e81f72a4274be38
EBUILD renpy-6.15.7.ebuild 2634 SHA256 526f5b7ec189f27e65dbf479bbb4a83fdee03b4005b693bf3af51d60efddd169 SHA512 101e2904713ee9c55e94717556a0d0065923ce8144222ea736809ffa19bdd65ffac28d37c6743535bf040c365baeab8c59985587dc70c0d4cb2b8ae2af9df800 WHIRLPOOL a9e97a5979b89792a90ff6716cb5b2c4dd8ca149eb79bb92bcc858a465e472267929c9a1cabc65e93db2cc04f7fcb28fe4ecbabe28d6772e7b5c28ae75b0a568
EBUILD renpy-6.16.5.ebuild 2597 SHA256 f84bc37fe9fff5d43fc12838894374111cee5302661bacbc1e6de7b699af33ad SHA512 f601fc17710e6da76a37c40e77a175b8bfa8714d46b51c8e1e5804892d68c094f95b7b83434e8d552db74a952c6564df8bf74c7da07af6cc876c31ce2b6b9f4a WHIRLPOOL 108f26106e6ac00007ce851132b466bea945a4322ffbaee6705ae034b1e9381a8437d4cd12c88e2da15b3685624b7db5f012d903432532b56d6fee5e3fa62a97
EBUILD renpy-6.17.7.ebuild 2632 SHA256 c8575832a78cd54e80f90a2cb33eba0c57541abe77fdcab1f70302d631d95369 SHA512 259f7bbcbe6601bd86ad9282db0f95a3875d2aff9b837d3c1db53ec4508a3327ad018fb54330ec91bd29bd78dcd73efaf18d6f90ac9cc58d2a76110e94eb00d2 WHIRLPOOL 5ba0fb9816329a29919eb293e27c1210820bdb50aa4d811db08e47f8ed3851e27de8159ee131223573af63a6c49a67f5ffbe2761a34c8d26ceb80e31092403fd
EBUILD renpy-6.18.0-r1.ebuild 2638 SHA256 7638d8154d2e731e3c8e5b66c2d4dd058ca3a69e1b79957346839e75611498c3 SHA512 2354323462bef191edcc766e24df5b48ead89608ab84428a8956d0368a2aa6c421decd25bbb8bcab765f495596a0296dc5fd097cd1fa2278e213ac1ed95ac9c9 WHIRLPOOL d0409d940c544425df754aed26bd832ffad62dcce145a918fbe934adb4f612e3322729fa10b7c4f3e72b67aaf3774d7b6626a5f1d3e04ae23003c30de2a2be11
EBUILD renpy-6.18.1.ebuild 2635 SHA256 c12d810673c9a68b94b946f37b074ca4d5ba80e721381dba5bc0274fc2e89a11 SHA512 655208e332cffda0ebb92d25a3cf9a32a71fc4253d2720345e23c5bb6a7670b25dde4a66c18239d9c899e476f5b8d954b94c8e9fe9326a0fa5b7f46520028909 WHIRLPOOL eb06e34acfe4560280a28412a6ce868c2619bf62bb104963097fd85241501142787155d8ec7037588876d80450d39e9f79bdf2c018eaa1d0127a443e02e7bc74
-MISC ChangeLog 8166 SHA256 01f42395003f830cab00318b59dad0ae3d73e33205ba60a3afd2deabeee45243 SHA512 2633c5859d799e9aeeb53d11e15de43f20a5d42b5577d657aca4dedf57b63662ecdb886d74b807a3093e89d875e009d8978c398ed8b9b1a16a94e72234d1fe10 WHIRLPOOL 1f7eb4745e9623ab9ddc7dcd1ad7bb07470f627e5f5ac6d0e31734c93b0db1099aa12032cbb76f69eddcc4458393221369489287f054d980cc82735e01877d1f
+EBUILD renpy-6.18.2.ebuild 2635 SHA256 cfd0fc363a5f6cde9a9760c663769daf493d44a78895fd593c3968d7afebd616 SHA512 2988ccff3c368a9f1c6b5c0ebad3517ed1e139f9b9e6d4aa3c90dee8d4212de29891ed3ce12ecb2c73eeee9f7da98910e2a7ba5486e6007404f76fdcf962da7f WHIRLPOOL 65ae6336470e988954b1b22388e7af7245adf1110b648c555aa35b0ed63244dd1c660147b93e0b5b24da3f7eb571d77594c71133478b580c7d6b3c074992bbf4
+MISC ChangeLog 8326 SHA256 7a8a4d574dc8e0bc0732253f7947af8f3157efc99e28090164de70bd04790e6c SHA512 9c5bb47472c3bb5842e284e02b044894367f7f3964c9884b2f0e1a707e280a6b36b3305113e1a0988098687a4ef246197008cffa054df589ab0c95ceec06f148 WHIRLPOOL 5155ac3f669e9cd3b76fcc694b7ba7f562072ad044e9363abcec01c9896c45cec347c7dcde6525a011e740d3dde1183aee569bfe9c554635b577454be1223817
MISC metadata.xml 1320 SHA256 87e82c53eca026840f61ba025e6bc8fce59f30c42c12e0560acccf25b00229c8 SHA512 13c3728b2c8f65d8795163aa95bcfc3e7a7875e1a360c283f7ceeb29bda2ef7060323f31b34dd885820294e836fa255c1433d250b7828081b1b14074e2e1e786 WHIRLPOOL 0697e087d393802545ac1163aa96a387f90adf99975f57013f5f73553a61906f3ec87460584d4e66ea3c7864b0195222e190997618cd4babe20f0fd81327bfcb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0
-iQJ8BAEBCABmBQJUIZo9XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
+iQJ8BAEBCABmBQJUOCOXXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzMDlCNDQ4NjEyNDI4NjA5REVEMDI3MzIy
-MjBDRDFDNUJERUVEMDIwAAoJECIM0cW97tAgR8cP/RXi1TnbvlQ4JcrZ4fR16cMt
-AQxZLgJlVZU2NBSRAWSUUr/Il7vEGurQFdPcFgXFK+PcNtcmiaZQJs61kDUnbTjA
-vb4DdJ0+L0YcuHo2yAjq1PT5cyumln72UUWsocCNyqNgvpUvqHhnRNNGWCVijBNY
-VRos6gMEVNrPmMjUo/wgjaxDKSLP8CMD6eK/uCc7NIPqN7sM4LK0b99t6a5YHZD4
-gzmuJUQ39EaYMLfWya6NKwWmA+xpX391yjNnRozIWc/Fm5lt9pIdILe6CrYbRVX1
-PAaCGHUtlp8cABBuPlbKGpjaDNk4+q763hSSmyK94ClBp2nxxKaGnN+jPVu4emXh
-m2ETj8z7tzUG4hX43u+31lFrrfAHI4VEPbe7ZpZN9Lr2F1+QCrw5OyAhakwaMMHn
-1owgGzgCMGdosnNvXPs1OkDbHN8WAyZJQlHZxxkO9TUSoM+nJsW6GKfnTa3tOiOJ
-40i5dsPVnkAkbAbBo1ifchR7glp6zQul+0Yj3JLK7vjZhOTP+hUFdasEYEuhtCY6
-WCvd5wLak/cFJymq6KdVm/E++29RAzLtqIwgHZaRpTcZcnieBWUEqG8Wk+6JqQp4
-ucYkPcHLxmF0YxB6nsdh8uxuMg/JaX2RC8avAqkYq6T5vra5GvuXg1WOAEKvSoG+
-dzAiralDCbASdFbv46Vm
-=EIdo
+MjBDRDFDNUJERUVEMDIwAAoJECIM0cW97tAgKyAQAMqtIELQ3ogxEDwKa0N+HqnI
+51XzNQrXf/JsDskkmHI/RaKMvEmvr5r+8VWZ0IPRWPDwQ5EcToXjOt0+93O30Feh
+LVnbByGMLLJ3W7jL33VBxvPigo1rI+f2GHPwwCMrHv5fP+i6E8Nlzkr3QR5RkcMa
+UVY6G23To0qj7SAM3iWeGgR/S2mwkOGevG3A03zUKX6NfsO1yriKWwH8vqkggRLV
+jJ++Et17NebSrQRPbjKpj1eCY1MUVHNmBokkhLxWu2h4BkPvhdu+1HrU1i0sPSUk
+EHhjDD1FAfSwdTLoex4zrzS1/YVpYplJcncK5LpvWgCbzn0EBNr2tNgFw7+ShLVX
+nzKJygIBRxkl+sZcMJQ7Lj6vx258Eb/iXQ6A+wXWyTrYDZgVXGxcfATWdOOaFxmo
+MFj8azX78HG4HpJwvnuof1SkuC4r1SEa1jipXBdtBIyytBu65SZ9qpEtUBxsg9VZ
+qh8IJync6g/FYaFBMsIZpvtbfmnU7p9x21k/WMbtIK0yDnmaVHgnCiO0fc+KAUwu
+Pof27KemNhnI20LDq9feymh3yEOB7ih7QXh/QG+8TDgv9X/JLgVy4SlT8wiqdKp6
+okGzaqrDKLJlXMYf5OVZuOo9WhPvwylSYBjcluclQmeNKdKgx+aJBP2FdLG4Gn5g
+3oPPS6y3bprYUQXv/Mv0
+=rhr2
-----END PGP SIGNATURE-----
diff --git a/games-engines/renpy/files/renpy-6.18.2-multiple-abi.patch b/games-engines/renpy/files/renpy-6.18.2-multiple-abi.patch
new file mode 100644
index 000000000000..a569fa4e62d2
--- /dev/null
+++ b/games-engines/renpy/files/renpy-6.18.2-multiple-abi.patch
@@ -0,0 +1,271 @@
+Author: hasufell <hasufell@gentoo.org>
+Date: Tue Jan 21 01:02:00 2014 +0100
+
+ fix multiple abi support
+
+--- renpy.py
++++ renpy.py
+@@ -29,92 +29,9 @@
+ 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
+-
+- # Makes sure the permissions are right on the save directory.
+- def test_writable(d):
+- try:
+- fn = os.path.join(d, "test.txt")
+- open(fn, "w").close()
+- open(fn, "r").close()
+- os.unlink(fn)
+- return True
+- except:
+- return False
+-
+-
+- # 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) and test_writable(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.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)
+@@ -142,7 +59,7 @@
+
+ def main():
+
+- renpy_base = path_to_renpy_base()
++ renpy_base = common.path_to_renpy_base()
+
+ # Add paths.
+ if os.path.exists(renpy_base + "/module"):
+--- /dev/null
++++ renpy/common.py
+@@ -0,0 +1,127 @@
++# 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-2014 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
++
++ # Makes sure the permissions are right on the save directory.
++ def test_writable(d):
++ try:
++ fn = os.path.join(d, "test.txt")
++ open(fn, "w").close()
++ open(fn, "r").close()
++ os.unlink(fn)
++ return True
++ except:
++ return False
++
++
++ # Makes sure the permissions are right on the save directory.
++ def test_writable(d):
++ try:
++ fn = os.path.join(d, "test.txt")
++ open(fn, "w").close()
++ open(fn, "r").close()
++ os.unlink(fn)
++ return True
++ except:
++ return False
++
++
++
++ # 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) and test_writable(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.path.abspath(renpy_base)
++
++ return renpy_base
+--- renpy/main.py
++++ 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.18.2.ebuild b/games-engines/renpy/renpy-6.18.2.ebuild
new file mode 100644
index 000000000000..8c62f65377d3
--- /dev/null
+++ b/games-engines/renpy/renpy-6.18.2.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.18.2.ebuild,v 1.1 2014/10/10 18:21:07 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.5
+ dev-libs/fribidi
+ dev-python/pygame[X,${PYTHON_USEDEP}]
+ >=dev-lang/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"
+DEPEND="${RDEPEND}
+ dev-python/cython[${PYTHON_USEDEP}]
+ 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 templates
+ fi
+ if use examples ; then
+ python_domodule the_question tutorial
+ fi
+}
+
+python_install_all() {
+ if use development; then
+ newicon -s 32 launcher/game/images/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
+}