diff options
author | Julian Ospald <hasufell@gentoo.org> | 2014-02-25 21:29:45 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2014-02-25 21:29:45 +0000 |
commit | a87692405f2235ea5f400e9845350bb819039308 (patch) | |
tree | 0b6b60f4500a68f13a50c3b02794c7074a6290ed /games-engines | |
parent | remove package.use.mask media-video/totem[flash], bug #495254 (diff) | |
download | historical-a87692405f2235ea5f400e9845350bb819039308.tar.gz historical-a87692405f2235ea5f400e9845350bb819039308.tar.bz2 historical-a87692405f2235ea5f400e9845350bb819039308.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/ChangeLog | 8 | ||||
-rw-r--r-- | games-engines/renpy/Manifest | 25 | ||||
-rw-r--r-- | games-engines/renpy/files/renpy-6.17.1-multiple-abi.patch | 245 | ||||
-rw-r--r-- | games-engines/renpy/renpy-6.17.1.ebuild | 111 |
4 files changed, 374 insertions, 15 deletions
diff --git a/games-engines/renpy/ChangeLog b/games-engines/renpy/ChangeLog index bffa512ebf60..cf283c081c12 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.28 2014/02/24 01:57:38 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-engines/renpy/ChangeLog,v 1.29 2014/02/25 21:29:40 hasufell Exp $ + +*renpy-6.17.1 (25 Feb 2014) + + 25 Feb 2014; Julian Ospald <hasufell@gentoo.org> +renpy-6.17.1.ebuild, + +files/renpy-6.17.1-multiple-abi.patch: + version bump 24 Feb 2014; Pawel Hajdan jr <phajdan.jr@gentoo.org> renpy-6.16.5.ebuild: x86 stable wrt bug #499832 diff --git a/games-engines/renpy/Manifest b/games-engines/renpy/Manifest index 0775d2fcf4c1..d1bfb209e7f5 100644 --- a/games-engines/renpy/Manifest +++ b/games-engines/renpy/Manifest @@ -7,30 +7,27 @@ AUX renpy-6.14.1-remove-AVFormatParameters.patch 494 SHA256 3e67e752def86a848d6a AUX renpy-6.15.7-multiple-abi.patch 8641 SHA256 a93776659e1292bdd41a8d4ff38d0720c3d85103326abbab6322e9175f599305 SHA512 626fe08565e226473180e51e54b650f336f71e57c71a99bda3d0e55e2115863169bd39d8d8e706f787275b81345b553c104f21a6d71ebadee017bda13826bda3 WHIRLPOOL 640bae68cc1e5c7ad2781a93e050d4b4fc3e7ec564224a1014787f5f8b0d19ab5202d7924b7e308c0e6e09a3487c707aa372794c0f5b42cd9d45954d93f3beef 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 +AUX renpy-6.17.1-multiple-abi.patch 8291 SHA256 ec919186d61a78aece7b01d15984edd502a9886fdfd7a163f9fa0e26f28f06bf SHA512 fd39773b85a54ca709f412430654cacdc91caaa561ad2e15bb02b08b971997062fa3c1adad5e2b582a2dc7acc9886b717517e0c10c0bab6a36fd05e52e98edf9 WHIRLPOOL ca460eb3129c0c4f429af4f88cdcf0d6e164f89f2019fba2f9e97a690d5b132565cbbbc03f6365a74e901842715b012cbff03e67c1c17ca01ccfecae9be501e3 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.0-source.tar.bz2 15982585 SHA256 802721464dee19a823206e343246248762f79e484d240779ca0605662ca33871 SHA512 f08b259f218310952ccb48b7c72b5488eb23a11d6b799d6d44c5f938b5a9c49eb1f50a28c644e7dc655219c3a591159e44bc292148f86306215a25e3e1b6c761 WHIRLPOOL 322bec212f54e8344964e46c74202e7c9e4c80f1b5f34e3583e3e6ebc492ffffb7543b9cebff2d4b5b0cdedf94ca51e900a302a106f2d839fa76ef4c75d824d8 +DIST renpy-6.17.1-source.tar.bz2 16055371 SHA256 ec36b5d696ab1b923483a0850673d6617613affc0abc0bd908cc68177d019b08 SHA512 cb19b4f3d31adbc2dc0ee251b81c903e7c50d1479553238f9846f3187c62c67804d39c987d11a7bc61d50d69fd777fd24810653457f8bfa65ce72c89ac7228eb WHIRLPOOL ee7d59b3eba76d2736a7c27bde564786fc1e55fdaf753b364e091f44efe8bbda58b5d90456fe48b9791b8fb2eb5ebb1c0896544afef2fe605b732ca3065e2e68 EBUILD renpy-6.14.1-r1.ebuild 2703 SHA256 e03097c56877b18833fa7e952f4ca3d1ee3ce987a7afe244fb9f75a45a7700ed SHA512 c3a2df55da0b6f1b6973c81ca8adc2a7f47279db6e426135f4bc828506d44c3f0ddc3a7bba1c392cd2fc0af4c8b541bcb73334014708f0dd27ecea13065cfe60 WHIRLPOOL 257b09f71d948b9cc15821445690152a4b30353f594e2c0df3aa91177966045279fd7c88ce707f18e33abfd279130d18d32b3ee033f7749e8081f91099458be9 EBUILD renpy-6.15.7.ebuild 2639 SHA256 299fcba161e19c477a636a66612aeb5605871d02a35f0d0d19e30e435c3f412a SHA512 47a901f1f04da04a58c41b722fa45a803b6eddeacb0efa665746e2d465d350c6a53417078e7ac084a78406d29e2ed4719c6fa4c559449b66351158a0fd4a36a4 WHIRLPOOL e93669ad5db18acfa35e52b4ba4bdca455e1161838424e3f33308c61cd6533a3bc926890e664cf6d3bea64c2dc2ba0bc8a8730db4a6665fdd60f53486c41e8d7 EBUILD renpy-6.16.5.ebuild 2646 SHA256 bca1f9648e8749098a1cdbfc63f642e5f8281281e1d96159afe89821d1948cba SHA512 88321b365db15d2cbb10656a0f95e6c1ef09d6fbde04727a562744d02287b7e5ff744d3aae88dc1aa74abbf71adc6ff6dbb762bb3a2f2c219cd43fab9a96c873 WHIRLPOOL 5ce695973d6c8f46b3bf6132da8a55b60f38eec2d8efa99bbb1e5529f1fb3dbba6ac66cefea13e60ec60dc06488036df58332e1c580f45d571925d41cfad4165 EBUILD renpy-6.17.0.ebuild 2635 SHA256 3a1af0507e6f6169225629e396cbb7d47325caccb29d00c2285abb9b8e6a257b SHA512 053e10209e448864a22c535c239fab72b2dc6a2a97faaa67ea474c5a91898fb4ff67e23308a4d091d9052ecfb57c9d5a95a3e69533fac0917e650e56f8a7f535 WHIRLPOOL 77cabd7e6aeaab0296dd1af31ef288b66c423df7ae202caaec941e7d88d9ab98e1be30124e99b596742905edd441ebd5205917c85c930ed10ea1d8d5ee7f189e -MISC ChangeLog 4857 SHA256 973a468e606258345dd3a6800fee331a9360c0a64ae3eeb46ea56e5b4d3b33b5 SHA512 990cd74134c073692711c4c2d24534576411532eb80a449f3a654e2c605d66180554c852cdc4a9e08e3a6569640cf9ac44358de9360e474213d2f318d8671913 WHIRLPOOL ea3098628dc0bc420cd439e91828a638c9a9f8fa4ecbcb59b62546e972f01bcc8f32a4c8fd25e52356d55e072ceccc5a98af07a851e08378d03b8c685ca2efda +EBUILD renpy-6.17.1.ebuild 2635 SHA256 6c37e7d60bd73485eb9a4821245999dfccca689e83fe96d946bc6cbd9f45013b SHA512 86e31d9861b098cfc451dcb3a292021d106706f99d360e59f8ca5ceceb0a29cb252deb406399200e1bc797a8dff2628bdf183677a1ca8b81a17120f80a874814 WHIRLPOOL f77000d618bea79ff3bba8ea834a3ab23409a5798202cb3097f28315c2051bebdc71b3178f401c90eaad78ff7c2748c60344ff703b7d0c45e40802425d8551e4 +MISC ChangeLog 5015 SHA256 c9ea978066c0b745999c265f1b5c43a6edc025f9497c4744778495168b9d6d65 SHA512 451d37597f08f63c3655760850588ac55455e6d8cc17c72c9fc06c538eeab62382ee026cead6a50d1c533de4c29b62d1b7589b7426a11e5546a3b96872d6d70f WHIRLPOOL 247e725285bf21569dc6913882c19a9a163a3980c782a3356f56334fd120f1f797bbbc4702e9f02aab704e42aecdee8770e2ebfee3ef2313b15f11dd43421b10 MISC metadata.xml 1320 SHA256 87e82c53eca026840f61ba025e6bc8fce59f30c42c12e0560acccf25b00229c8 SHA512 13c3728b2c8f65d8795163aa95bcfc3e7a7875e1a360c283f7ceeb29bda2ef7060323f31b34dd885820294e836fa255c1433d250b7828081b1b14074e2e1e786 WHIRLPOOL 0697e087d393802545ac1163aa96a387f90adf99975f57013f5f73553a61906f3ec87460584d4e66ea3c7864b0195222e190997618cd4babe20f0fd81327bfcb -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQIcBAEBCAAGBQJTCpkIAAoJEE8aJVXqcZkd9MAP/1PdOFsCF9OnosO6WDtxBJeg -nWqj8cXMOFpzvHysaCqp63FKTPgHM3MSgu0c+m/UUBbIrYys7jjsoqgK6/iK0One -lBLfH/vrXd5Q5Q+XsEh5dEMOX5/3paoPJu+O+QEzYUjQtTtTunOBTJIs13VzEUOW -sJ1KJJsmKe2trdkVQNwEOWOouT33OPZSbfv/D9yRBLqV8MkuBh+S4D3v17gDTR5d -+ujYUUEU5HT+ZxxO/eQzfYSTV5hlFEqWBMoYtpkIjSSGRsCydtCx6DA2SXFwgTHr -KgeLLyDMCoqt4IGsTxHgvM440Eo7Y3WnXFcRcXQXzfpNyLEwKWwPYXf9jGljf4eb -SPk+JFu24UBAgw2ggWJ9/3a+HESwETLpE9zCzZuT69KcdnQHAOqh04EU2ifEwO7m -S52xlfNdLHhlNyaXUMtsQdRaXmHad7LHaaFlYGwXMLImmwydIMT97BJ58Dhq53dW -WuoH94Ay3Mx3ykvpNTBeq1B0xbJ/yG3QYYsJcIgnWM1MZm1ZvZq1UBhSG5CVHuZa -C/i/wi9kE1QtFCFyZaybhaSIvH0g8INGffXl9EpyB2/htaNQZkXzLg3oYETnojW5 -HeXDGOahxS0kiRfO50IFpkOP/fORTwsNyCaNtkO5AM7Pbn8fjD+oxrISpJHe+0Kb -TyGr1bX2kQA4x1JZIM/f -=uDEI +iQEcBAEBCAAGBQJTDQtIAAoJEFpvPKfnPDWzysEH/2DsfzNmcH8odUW2o1CcItan +lEw/+IZam2OAUhYSXo2wFS7IosGNZU6D67/nc0q1sxApSnz1zgG6YEEFr9yriiFE +2TxyMme5IHKFeSYOcy8jg63hk2lQkTK9WIdxp3GxE+xpjfXGbBugO0Y101sQolPn +mzvHDD6d354OtdEz3YODuD6QNJ9lahIEkyUeTYCtouZgYRUwFQ2a/d91xHUaAvLH +BGShDxvMklzfyTuDgvOuOJGchdWv6K6kKV62eQquqad4UDyr7kg9YtFuWCWG0vwX +/jLTPDZsmlJkNT81+hrDk0EVAtQXXVyurVPIYE1hMJsEq/cvpr+8VPRdzLGHu14= +=+gX+ -----END PGP SIGNATURE----- diff --git a/games-engines/renpy/files/renpy-6.17.1-multiple-abi.patch b/games-engines/renpy/files/renpy-6.17.1-multiple-abi.patch new file mode 100644 index 000000000000..335af4e9b8d1 --- /dev/null +++ b/games-engines/renpy/files/renpy-6.17.1-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-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 ++ ++ # 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.1.ebuild b/games-engines/renpy/renpy-6.17.1.ebuild new file mode 100644 index 000000000000..d88dd517b8ff --- /dev/null +++ b/games-engines/renpy/renpy-6.17.1.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.1.ebuild,v 1.1 2014/02/25 21:29:40 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 +} |