From a6deb05de9143f49270f4fb161ea4de54ef02b1d Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Thu, 8 Apr 2010 08:48:11 +0000 Subject: [PATCH] Force use of python2 . Bug #312281 Package-Manager: portage-2.1.7.17/cvs/Linux i686 --- games-simulation/qct/ChangeLog | 7 +++++-- games-simulation/qct/Manifest | 4 ++-- games-simulation/qct/qct-0.7.ebuild | 24 +++++++++++++++--------- 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/games-simulation/qct/ChangeLog b/games-simulation/qct/ChangeLog index 19ddb002fefa..f890da60d08a 100644 --- a/games-simulation/qct/ChangeLog +++ b/games-simulation/qct/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for games-simulation/qct -# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-simulation/qct/ChangeLog,v 1.7 2006/05/24 15:53:48 wolf31o2 Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-simulation/qct/ChangeLog,v 1.8 2010/04/08 08:48:11 tupone Exp $ + + 08 Apr 2010; Tupone Alfredo qct-0.7.ebuild: + Force use of python2 . Bug #312281 by arfrever@gentoo.org 24 May 2006; Chris Gianelloni qct-0.7.ebuild: Fixed HOMEPAGE for bug #134218. diff --git a/games-simulation/qct/Manifest b/games-simulation/qct/Manifest index 1d89ead418e4..6226c01a3fba 100644 --- a/games-simulation/qct/Manifest +++ b/games-simulation/qct/Manifest @@ -1,5 +1,5 @@ AUX qct-0.7-constant.patch 712 RMD160 a4bf5200410f16a94f4052342b0931450692b06e SHA1 fa65246d52a6e33aa268ced37a66002575f93ddc SHA256 50f477b294d68f83ae0aad7338e8cacf71d3f020bc49f1b6aeb793e77b03560b DIST qct-0.7.tar.gz 98126 RMD160 23a3cb58215d3ba8787337fa9797c989dcbea69d SHA1 2ef52174a487d57df4a4ed1152a33b05d358a17f SHA256 d24d72c594e0af188876622aa2f9ce46e5e288bb66826aedb3ee3244fe8dd87b -EBUILD qct-0.7.ebuild 865 RMD160 33a5103071a49e50cf953b17c17f47f8284cc2be SHA1 071100c8d6367820fc611320bc90ac1b86e1378d SHA256 a27b1af6921a3fb0bdbe5f0d3041e145d6881d4dc9eb14f5a864f1ab0bf66940 -MISC ChangeLog 944 RMD160 1654dd5fbea06ef2aacb035af1a1fe71f9e37aca SHA1 e2265f255bd6358d50c447145ee3b9416bef2cd5 SHA256 8fa1932723fc1574dc397041ea8f0168d3c2d47b80958e7cb028096b19f5ad5e +EBUILD qct-0.7.ebuild 980 RMD160 7a377305e2754cafcb0664fa7812a7dd0c48b3c5 SHA1 7a27a6a7425a03f48e52eda95f4d80350fb0845a SHA256 2b7cdf0704e365358e58d9d6af40b37c56fbcc8f57e560883489a935ef33aa61 +MISC ChangeLog 1069 RMD160 d0bf91153b989371536157aec21604cc7848f589 SHA1 3bd7c850eb30bd0e8e033375b0b3a97f94243c1c SHA256 6ee39638f393c3b0f0c9db3b256f11b3fea1065d4b27d07ba9c2a0354b95139b MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 diff --git a/games-simulation/qct/qct-0.7.ebuild b/games-simulation/qct/qct-0.7.ebuild index 4f7746bc6fce..b6a85f3f7abe 100644 --- a/games-simulation/qct/qct-0.7.ebuild +++ b/games-simulation/qct/qct-0.7.ebuild @@ -1,27 +1,28 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-simulation/qct/qct-0.7.ebuild,v 1.8 2006/05/24 15:53:48 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-simulation/qct/qct-0.7.ebuild,v 1.9 2010/04/08 08:48:11 tupone Exp $ +EAPI=2 +PYTHON_DEPEND="2" -inherit eutils games +inherit eutils python games DESCRIPTION="Quiet Console Town puts you in the place of the mayor of a budding new console RPG city" HOMEPAGE="http://llynmir.net/qct" -SRC_URI="mirror://sourceforge/qct/${P}.tar.gz" +SRC_URI="http://www.sourcefiles.org/Games/Role_Play/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc x86" IUSE="" -RDEPEND=">=dev-lang/python-2.2.1 - >=dev-python/pygame-1.5.5" +RDEPEND=">=dev-python/pygame-1.5.5" +DEPEND="${RDEPEND}" S=${WORKDIR}/${PN} -src_unpack() { - unpack ${A} - cd "${S}" +src_prepare() { epatch "${FILESDIR}"/${P}-constant.patch + python_convert_shebangs -r 2 . } src_install() { @@ -37,3 +38,8 @@ src_install() { prepgamesdirs } + +pkg_setup() { + python_set_active_version 2 + games_pkg_setup +} -- 2.26.2