diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-10-26 20:31:35 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-10-26 20:31:35 +0000 |
commit | f7519282881206fe1665bf6e39a516b2c357b366 (patch) | |
tree | ea9762e9bfa1c2d325ce2dac444613c0cd6641dd /games-engines | |
parent | version bump preparing for games-engines/renpy:6.16 (diff) | |
download | historical-f7519282881206fe1665bf6e39a516b2c357b366.tar.gz historical-f7519282881206fe1665bf6e39a516b2c357b366.tar.bz2 historical-f7519282881206fe1665bf6e39a516b2c357b366.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/ChangeLog | 8 | ||||
-rw-r--r-- | games-engines/renpy/Manifest | 29 | ||||
-rw-r--r-- | games-engines/renpy/files/renpy-6.16.0-multiple-abi.patch | 245 | ||||
-rw-r--r-- | games-engines/renpy/renpy-6.16.0.ebuild | 111 |
4 files changed, 376 insertions, 17 deletions
diff --git a/games-engines/renpy/ChangeLog b/games-engines/renpy/ChangeLog index 46b4a1e80ed8..f446300117e1 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.18 2013/08/28 11:13:49 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-engines/renpy/ChangeLog,v 1.19 2013/10/26 20:31:33 hasufell Exp $ + +*renpy-6.16.0 (26 Oct 2013) + + 26 Oct 2013; Julian Ospald <hasufell@gentoo.org> +renpy-6.16.0.ebuild, + +files/renpy-6.16.0-multiple-abi.patch: + version bump 28 Aug 2013; Agostino Sarubbo <ago@gentoo.org> renpy-6.15.7.ebuild: Stable for x86, wrt bug #480786 diff --git a/games-engines/renpy/Manifest b/games-engines/renpy/Manifest index 5113515de364..9f789c9d120b 100644 --- a/games-engines/renpy/Manifest +++ b/games-engines/renpy/Manifest @@ -1,33 +1,30 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 +Hash: SHA256 AUX renpy-6.14.1-av_close_input_stream.patch 291 SHA256 da5d69dadb0c8559f20b205999580fa7b4bc9647c5eb5b3567dc198745b006ba SHA512 6c6dd700e8b11397089791179db4eea2da403671470b4500d0baa37d712be1e73676d4ac9997d869de19fe11b4625edcca91c074ad64e99ea463e630d4995991 WHIRLPOOL f937817ab4c21bdce3137b10f8d1b60900b76644c1cd0b02c11009fec4dd309d5fc3834d9dfa58475eab584de85bec931b7e57707d2b1dbd400cc8cb8cf3e420 AUX renpy-6.14.1-multiple-abi.patch 7950 SHA256 7605357e2fb692acc0032380ebaff4d153d4cae139b8b6298cbcd347f8880838 SHA512 1673cb44bb168745b6eeb770ca4bc88ca0c72ded4e325bedb5fb5ea90147276bfe63bd5607441560e5aa1dbaf93820fe3e77f853716b24f5eaa80ad8ab2e9008 WHIRLPOOL 330aa2c6ed0a5f54f8523fffbc5f503d7497f756c776620d91981be89d90737f16114b331662ce300720039b847d34d3df13dd19c039e7dca851784a962d0722 AUX renpy-6.14.1-remove-AVFormatParameters.patch 494 SHA256 3e67e752def86a848d6a9e4a7d20c8dd3bf4158a1288065ec1f21278a4c626e2 SHA512 6589c26dfb746aa23196ad0f5a74854ef7d7916fa48298794c9d6a146865cb124c9d1b22c922d57202de87c32487706c45d3a73c90fa9035afae6604a05de75e WHIRLPOOL 6fb36d076c891b2c2e8fa6b2af548de73a575e91037fa9b4cb4f77f74262e714f499a72a93c3d1756aabed80b336dd7bbd27a3b939eb83c76453ef52a41cbe68 AUX renpy-6.15.4-multiple-abi.patch 7631 SHA256 c75d7096b7630f72a49610a38953fe504fd6e625999b3b015d367ffc577f484d SHA512 07193f29a32ae58f94d023b054a1514c30c6d08696a650c68e40c53bf9658c895718f295cab845e1ef6681c7780d5d5f05173b7914eb8dcebbbc7cdd98f5ee2f WHIRLPOOL 22985e44e1805f6b64b31c1516bddaf2cdc6474ec418002d180155cf65e338018de7f01f6d0c62adc55e8ff766ab5d02f802c40275379af121e0259ae74b3c37 AUX renpy-6.15.7-multiple-abi.patch 8641 SHA256 a93776659e1292bdd41a8d4ff38d0720c3d85103326abbab6322e9175f599305 SHA512 626fe08565e226473180e51e54b650f336f71e57c71a99bda3d0e55e2115863169bd39d8d8e706f787275b81345b553c104f21a6d71ebadee017bda13826bda3 WHIRLPOOL 640bae68cc1e5c7ad2781a93e050d4b4fc3e7ec564224a1014787f5f8b0d19ab5202d7924b7e308c0e6e09a3487c707aa372794c0f5b42cd9d45954d93f3beef +AUX renpy-6.16.0-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.0-source.tar.bz2 10505396 SHA256 82765970429be581a514609826d83bf1d9c6a9a3a497ed00a7b07db51ee10a2c SHA512 3391f147d2ab49024f1ebedbfac5d857ad52d8a50290c06d0679c35b39712372756e8e95ccdc9ad9a1392cf8ef03a0c8c90a1df9094d522faad457e8c9dc040e WHIRLPOOL 383ee91ade2d2dbab483d7c20f4cfef5fea85231d193d6a7edcc95323dcf5ba225f5064e613131cc9e664b410fdf9edaa385a211fa68fcf06fa8674d038a7b4f EBUILD renpy-6.14.1-r1.ebuild 2702 SHA256 ea3e3edac5b444881e6fe63b4f5e3e71be56667e07d19c1d106196b37d3813d0 SHA512 49564c125654a59f981765a6b9d9e10095f78f2607282a156e56427cf562cd749c5c19d0f8b4f47e48fb89bf9fe5cb6abbaacbbca5aad546bc6c1a6e90b3b372 WHIRLPOOL bee53a5c0fb10a809118a2a099cd5369306f21b7ecfcebec0eb41ac4d66b41ab84139c51bb1b1515df121bee843ce9a5c4f8fb4715d21d45ee92713ac3780c68 EBUILD renpy-6.15.4.ebuild 2638 SHA256 3fb9091e652c39b177da06b140027a0b0cde4b47bc55507edcf1874f837ab823 SHA512 ad4c272d534ca9679516f4deb67b3b0f36ecf489d267309cab7fe40830a387025082e15afe368fada52fe26ce2cd31d4b08dacdecccc53094656891cd94c2bf8 WHIRLPOOL 4f8820cd653909ee7bbc19ecb764746d2d84b1f09898405d75fe48bef487da46b5b0f849da2ce6896fa0aaee5b5375d887ff88c71c6c24a4f173373af84d5860 EBUILD renpy-6.15.7.ebuild 2638 SHA256 bb1281efec07af297fefaa97117f15bd976e56e115f1255b6f80798b24f487a4 SHA512 7a0d0e793fb3f0ede8b5075885089a687441d1e1f0bbdc2efee156f28ed84131626f26fed10d45cc80ba08776f17681bbe235016a1950529c933dba583d51afe WHIRLPOOL 5fa4ec11bcad6de89cf5f18881e05bab205b3c3297512b52d6034fca3c8de712ef83a3ad2fb8bb0f864ff4e4aa8f962a99319b80541962ef7e8aad9a6b888ed0 -MISC ChangeLog 2976 SHA256 a13eaf7e5cd03c6943f0cc04739730dedd7ef750920c1d86475baf83e1114fef SHA512 5bb0a3c1211f607599a515ef86860e04d85e399e77b3e121e0c20e9ccd17e311c7731dcd3aadd92f00e689c97f1913dc9fd0f365c4fffdd65fb438a916085eb5 WHIRLPOOL cba767c77fbf1b44ad5c0b1f3c4569c6adc4abf0cff2a298ffd884dc55917344c64e20329d5cb0d6364011ef4ea0be0f8bccce0b48755a0787ede41e527334ae +EBUILD renpy-6.16.0.ebuild 2645 SHA256 f864515d68408a4982ab5ef827b079510ac29d1e289083694b54b671e65163b1 SHA512 c289a9997e06972a1e3d6042efb06d08ac47f2449079ea88426cc694fff669599f087bdf0ad5f6b4ce07a3573aaf11276d10e2db3a9ac6379a045f33719503ba WHIRLPOOL f384ffa2e109086f67e87dd01cce8e24961865937461877006dcde274f6232e0f567fe1f6fc8b62c5419949ec93580dc7a8a55ef553867cb174a646d5b095ee9 +MISC ChangeLog 3141 SHA256 4700fe2d9bb2d59946c4543b9b10b744ecbb490777fa91df33201a66ef268a2d SHA512 76bf4e4057895c84f4bef9ad872a6bb024d7a670d92874ac71a2e4cd70c61164f065c8449705a39328d77f1077bffd0f0ed673c40ae957aa1fdf2eab20fa3de7 WHIRLPOOL 136e6618567d6026f61d48b4ae53c69b918792a1a045945a83a18b8494e26b6c80a9fa5ddd7f4426283c949583cdca6e9b762b952399ee808bf3dec19f1e2e29 MISC metadata.xml 1320 SHA256 87e82c53eca026840f61ba025e6bc8fce59f30c42c12e0560acccf25b00229c8 SHA512 13c3728b2c8f65d8795163aa95bcfc3e7a7875e1a360c283f7ceeb29bda2ef7060323f31b34dd885820294e836fa255c1433d250b7828081b1b14074e2e1e786 WHIRLPOOL 0697e087d393802545ac1163aa96a387f90adf99975f57013f5f73553a61906f3ec87460584d4e66ea3c7864b0195222e190997618cd4babe20f0fd81327bfcb -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.20 (GNU/Linux) +Version: GnuPG v2.0.22 (GNU/Linux) -iQIcBAEBCgAGBQJSHdtuAAoJELp701BxlEWf5ggQALa7zHD9EZ2HjDaiRXrWn1kE -Q42/H60Z0YgiX7RhfvXNiYpAvU7lL9SkL7QgTzP93YnPmBLCPW8MprReJy0Aa2Kn -rl6jp6nN1CY6107DToYYdIB66MXk6PYDIBuJ0V/yyIHTc/qKTjYnHksqNQKaJ1nj -gEj5vvcr4D7PllnyJqHgpVIG1SjqD+ZGO+zjmL5K1fFMK2+n1LrV/gJUyN4SI2Z/ -Bc8SZYUcf6eO0BSqgOcGQZz1peDt9YotABscmXtijmCQie9Zxm35Shv14lUwwwDO -mcVAXXZyeakGjoHCazxwH42BT9k/2UY2QBfoqwKDE4mNC/i+4N3z3/B4gqJkB1Lq -fxaRodtCKVW/6pMwa6lIk8vcBUn2ZuAgq6aK5PeKip+XRqKQfkRwFwPhtOWBD4wQ -DlTIML0j9p1VNMPFri4HmPdCbLOMvo6F/a+sSOcFiFsCAEInSURsaYGdNV32gwqi -7xu3fZcg+LLpcncxtSkMfjoq6RrrH92ykMBtri44Jz9QQ8NK/AZG7G2T0Sw9OSpE -pIyiSBupO8HTeS9cmXQ+qwir9OVm9GbwtbgGDAXBbTC7c4VrjZ3Y0gn+N/hMJN/X -F5gi/cpFhH9pG4mL3nJs70c9Tw0H9mkbcgPdWiKra5f4TLC+MJz5I2aD36zwUV1q -sBEkWR5fcZta7kaTocCK -=eJiD +iQEcBAEBCAAGBQJSbCaoAAoJEFpvPKfnPDWz76sIALdJZwvnBnUlXzbLAiBym32x +IaA0xXBSG9lt5gFLQKXLTa6k13PXffk1qBKgukY51RUCZLYHovtFGj+y7v1MEnOf +PbFrZ7QU39SFJoqAYoTfalHzNxYcoFgDgZaQa3Ahu208qaLZu03wfZ079mwdEmB8 +OEB29R767rgy84o3pPED6wcjj00Toqd1S7YORyuxRQDLbXfYVU7oEkMs4Wi108Vc +t7ppSmsGaKXxdEMFn/HSkvvxTnAel9bw4p8LFzg1Zf6e5HLQE3dhtD545YelKEWA +SberA2p8J7Ewq3hLPR0T3lbTokEmPshphymNI1TDRvBq1UFLhMV6aRdYtQOnfO8= +=E/dl -----END PGP SIGNATURE----- diff --git a/games-engines/renpy/files/renpy-6.16.0-multiple-abi.patch b/games-engines/renpy/files/renpy-6.16.0-multiple-abi.patch new file mode 100644 index 000000000000..a1c54901ac60 --- /dev/null +++ b/games-engines/renpy/files/renpy-6.16.0-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.0.ebuild b/games-engines/renpy/renpy-6.16.0.ebuild new file mode 100644 index 000000000000..e3f73447e065 --- /dev/null +++ b/games-engines/renpy/renpy-6.16.0.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.0.ebuild,v 1.1 2013/10/26 20:31:33 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 +} |