1 |
tupone 10/05/04 04:47:24 |
2 |
|
3 |
Modified: ChangeLog watermelons-1.1.1.ebuild |
4 |
Log: |
5 |
Force python2 fixing bug #312233 |
6 |
(Portage version: 2.1.8.3/cvs/Linux i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.4 games-arcade/watermelons/ChangeLog |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/watermelons/ChangeLog?rev=1.4&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/watermelons/ChangeLog?rev=1.4&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/watermelons/ChangeLog?r1=1.3&r2=1.4 |
14 |
|
15 |
Index: ChangeLog |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/games-arcade/watermelons/ChangeLog,v |
18 |
retrieving revision 1.3 |
19 |
retrieving revision 1.4 |
20 |
diff -u -r1.3 -r1.4 |
21 |
--- ChangeLog 24 Apr 2007 15:20:33 -0000 1.3 |
22 |
+++ ChangeLog 4 May 2010 04:47:24 -0000 1.4 |
23 |
@@ -1,6 +1,9 @@ |
24 |
# ChangeLog for games-arcade/watermelons |
25 |
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
26 |
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/watermelons/ChangeLog,v 1.3 2007/04/24 15:20:33 drizzt Exp $ |
27 |
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/watermelons/ChangeLog,v 1.4 2010/05/04 04:47:24 tupone Exp $ |
29 |
+ |
30 |
+ 04 May 2010; Tupone Alfredo <tupone@g.o> watermelons-1.1.1.ebuild: |
31 |
+ Force python2 fixing bug #312233 by arfrever@g.o |
32 |
|
33 |
24 Apr 2007; Timothy Redaelli <drizzt@g.o> |
34 |
watermelons-1.1.1.ebuild: |
35 |
|
36 |
|
37 |
|
38 |
1.5 games-arcade/watermelons/watermelons-1.1.1.ebuild |
39 |
|
40 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/watermelons/watermelons-1.1.1.ebuild?rev=1.5&view=markup |
41 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/watermelons/watermelons-1.1.1.ebuild?rev=1.5&content-type=text/plain |
42 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/watermelons/watermelons-1.1.1.ebuild?r1=1.4&r2=1.5 |
43 |
|
44 |
Index: watermelons-1.1.1.ebuild |
45 |
=================================================================== |
46 |
RCS file: /var/cvsroot/gentoo-x86/games-arcade/watermelons/watermelons-1.1.1.ebuild,v |
47 |
retrieving revision 1.4 |
48 |
retrieving revision 1.5 |
49 |
diff -u -r1.4 -r1.5 |
50 |
--- watermelons-1.1.1.ebuild 24 Apr 2007 15:20:33 -0000 1.4 |
51 |
+++ watermelons-1.1.1.ebuild 4 May 2010 04:47:24 -0000 1.5 |
52 |
@@ -1,8 +1,9 @@ |
53 |
-# Copyright 1999-2007 Gentoo Foundation |
54 |
+# Copyright 1999-2010 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/watermelons/watermelons-1.1.1.ebuild,v 1.4 2007/04/24 15:20:33 drizzt Exp $ |
57 |
- |
58 |
-inherit eutils games |
59 |
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/watermelons/watermelons-1.1.1.ebuild,v 1.5 2010/05/04 04:47:24 tupone Exp $ |
60 |
+EAPI="2" |
61 |
+PYTHON_DEPEND="2" |
62 |
+inherit eutils python games |
63 |
|
64 |
MY_PN="melons" |
65 |
DESCRIPTION="A thrilling watermelon bouncing game." |
66 |
@@ -16,15 +17,16 @@ |
67 |
KEYWORDS="amd64 x86 ~x86-fbsd" |
68 |
IUSE="" |
69 |
|
70 |
-RDEPEND=">=dev-lang/python-2.4 |
71 |
- dev-python/pygame" |
72 |
+RDEPEND="dev-python/pygame" |
73 |
|
74 |
S=${WORKDIR}/${MY_PN} |
75 |
|
76 |
-src_unpack() { |
77 |
- unpack ${A} |
78 |
- cd "${S}" |
79 |
+pkg_setup() { |
80 |
+ python_set_active_version 2 |
81 |
+ games_pkg_setup |
82 |
+} |
83 |
|
84 |
+src_prepare() { |
85 |
sed -i \ |
86 |
-e "s:melons.hs:${GAMES_STATEDIR}/${PN}/&:" \ |
87 |
main.py \ |
88 |
@@ -33,7 +35,7 @@ |
89 |
cat <<-EOF > "${PN}" |
90 |
#!/bin/bash |
91 |
cd "${GAMES_DATADIR}/${PN}" |
92 |
- exec python main.py |
93 |
+ exec $(PYTHON) main.py |
94 |
EOF |
95 |
} |