summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2010-05-04 04:47:24 +0000
committerAlfredo Tupone <tupone@gentoo.org>2010-05-04 04:47:24 +0000
commit78d6e05c132f69d8988111d46044b117cb3c9b78 (patch)
treefeff75ef06a9b2bcbd2692985a755e4d54f28ff4 /games-arcade/watermelons
parentForce python2 fixing bug #312235 (diff)
downloadgentoo-2-78d6e05c132f69d8988111d46044b117cb3c9b78.tar.gz
gentoo-2-78d6e05c132f69d8988111d46044b117cb3c9b78.tar.bz2
gentoo-2-78d6e05c132f69d8988111d46044b117cb3c9b78.zip
Force python2 fixing bug #312233
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'games-arcade/watermelons')
-rw-r--r--games-arcade/watermelons/ChangeLog7
-rw-r--r--games-arcade/watermelons/watermelons-1.1.1.ebuild22
2 files changed, 17 insertions, 12 deletions
diff --git a/games-arcade/watermelons/ChangeLog b/games-arcade/watermelons/ChangeLog
index 44853bb905b0..18edf369cc57 100644
--- a/games-arcade/watermelons/ChangeLog
+++ b/games-arcade/watermelons/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-arcade/watermelons
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/watermelons/ChangeLog,v 1.3 2007/04/24 15:20:33 drizzt Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/watermelons/ChangeLog,v 1.4 2010/05/04 04:47:24 tupone Exp $
+
+ 04 May 2010; Tupone Alfredo <tupone@gentoo.org> watermelons-1.1.1.ebuild:
+ Force python2 fixing bug #312233 by arfrever@gentoo.org
24 Apr 2007; Timothy Redaelli <drizzt@gentoo.org>
watermelons-1.1.1.ebuild:
diff --git a/games-arcade/watermelons/watermelons-1.1.1.ebuild b/games-arcade/watermelons/watermelons-1.1.1.ebuild
index 0343a7c5fc1d..b9a4c2620070 100644
--- a/games-arcade/watermelons/watermelons-1.1.1.ebuild
+++ b/games-arcade/watermelons/watermelons-1.1.1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/watermelons/watermelons-1.1.1.ebuild,v 1.4 2007/04/24 15:20:33 drizzt Exp $
-
-inherit eutils games
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/watermelons/watermelons-1.1.1.ebuild,v 1.5 2010/05/04 04:47:24 tupone Exp $
+EAPI="2"
+PYTHON_DEPEND="2"
+inherit eutils python games
MY_PN="melons"
DESCRIPTION="A thrilling watermelon bouncing game."
@@ -16,15 +17,16 @@ SLOT="0"
KEYWORDS="amd64 x86 ~x86-fbsd"
IUSE=""
-RDEPEND=">=dev-lang/python-2.4
- dev-python/pygame"
+RDEPEND="dev-python/pygame"
S=${WORKDIR}/${MY_PN}
-src_unpack() {
- unpack ${A}
- cd "${S}"
+pkg_setup() {
+ python_set_active_version 2
+ games_pkg_setup
+}
+src_prepare() {
sed -i \
-e "s:melons.hs:${GAMES_STATEDIR}/${PN}/&:" \
main.py \
@@ -33,7 +35,7 @@ src_unpack() {
cat <<-EOF > "${PN}"
#!/bin/bash
cd "${GAMES_DATADIR}/${PN}"
- exec python main.py
+ exec $(PYTHON) main.py
EOF
}