summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2010-05-05 05:07:50 +0000
committerAlfredo Tupone <tupone@gentoo.org>2010-05-05 05:07:50 +0000
commitcc2eb1f119121089d05f0a6e9b30addd33318c36 (patch)
tree84332efa89f3dd95c665800170c422573e85b097 /games-rpg
parentAutomated update of use.local.desc (diff)
downloadgentoo-2-cc2eb1f119121089d05f0a6e9b30addd33318c36.tar.gz
gentoo-2-cc2eb1f119121089d05f0a6e9b30addd33318c36.tar.bz2
gentoo-2-cc2eb1f119121089d05f0a6e9b30addd33318c36.zip
Force python2 fixing bug #312273
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/dragonhunt/ChangeLog7
-rw-r--r--games-rpg/dragonhunt/dragonhunt-3.56.ebuild19
2 files changed, 17 insertions, 9 deletions
diff --git a/games-rpg/dragonhunt/ChangeLog b/games-rpg/dragonhunt/ChangeLog
index 7504e608afd1..3dbc8ab1fe6b 100644
--- a/games-rpg/dragonhunt/ChangeLog
+++ b/games-rpg/dragonhunt/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-rpg/dragonhunt
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/dragonhunt/ChangeLog,v 1.5 2009/12/18 19:39:41 pacho Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/dragonhunt/ChangeLog,v 1.6 2010/05/05 05:07:50 tupone Exp $
+
+ 05 May 2010; Tupone Alfredo <tupone@gentoo.org> dragonhunt-3.56.ebuild:
+ Force python2 fixing bug #312273 by arfrevergentoo.org
18 Dec 2009; Pacho Ramos <pacho@gentoo.org> dragonhunt-3.56.ebuild:
amd64 stable, bug 289164
diff --git a/games-rpg/dragonhunt/dragonhunt-3.56.ebuild b/games-rpg/dragonhunt/dragonhunt-3.56.ebuild
index fd450efaa86d..6721ccdb8b15 100644
--- a/games-rpg/dragonhunt/dragonhunt-3.56.ebuild
+++ b/games-rpg/dragonhunt/dragonhunt-3.56.ebuild
@@ -1,9 +1,10 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/dragonhunt/dragonhunt-3.56.ebuild,v 1.4 2009/12/18 19:39:41 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/dragonhunt/dragonhunt-3.56.ebuild,v 1.5 2010/05/05 05:07:50 tupone Exp $
EAPI=2
-inherit eutils games
+PYTHON_DEPEND="2"
+inherit eutils python games
MY_P="Dragon_Hunt-${PV}"
DESCRIPTION="A simple graphical RPG"
@@ -15,11 +16,15 @@ SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
-RDEPEND="dev-lang/python
- dev-python/pygame"
+RDEPEND="dev-python/pygame"
S=${WORKDIR}/${MY_P}
+pkg_setup() {
+ python_set_active_version 2
+ games_pkg_setup
+}
+
src_prepare() {
# Where to look for modules to load.
sed -i "s:\.\./modules/:${GAMES_DATADIR}/${PN}/:" \
@@ -58,8 +63,8 @@ src_install() {
insinto "$(games_get_libdir)"/${PN}
doins code/*.py || die "doins code failed"
- games_make_wrapper ${PN} "python ./rpg.py" "$(games_get_libdir)"/${PN}
- games_make_wrapper ${PN}-mapeditor "python ./map_editor.py" \
+ games_make_wrapper ${PN} "$(PYTHON) ./rpg.py" "$(games_get_libdir)"/${PN}
+ games_make_wrapper ${PN}-mapeditor "$(PYTHON) ./map_editor.py" \
"$(games_get_libdir)"/${PN}
newicon modules/default/images/buttons/icon.png ${PN}.png