1 |
tupone 10/04/22 12:09:35 |
2 |
|
3 |
Modified: ChangeLog tuxmathscrabble-4.5.ebuild |
4 |
Log: |
5 |
Force python2 to fix bug #312255 |
6 |
(Portage version: 2.1.8.3/cvs/Linux i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.15 games-kids/tuxmathscrabble/ChangeLog |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-kids/tuxmathscrabble/ChangeLog?rev=1.15&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-kids/tuxmathscrabble/ChangeLog?rev=1.15&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-kids/tuxmathscrabble/ChangeLog?r1=1.14&r2=1.15 |
14 |
|
15 |
Index: ChangeLog |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/ChangeLog,v |
18 |
retrieving revision 1.14 |
19 |
retrieving revision 1.15 |
20 |
diff -u -r1.14 -r1.15 |
21 |
--- ChangeLog 24 Oct 2007 01:28:06 -0000 1.14 |
22 |
+++ ChangeLog 22 Apr 2010 12:09:35 -0000 1.15 |
23 |
@@ -1,6 +1,10 @@ |
24 |
# ChangeLog for games-kids/tuxmathscrabble |
25 |
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 |
26 |
-# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/ChangeLog,v 1.14 2007/10/24 01:28:06 nyhm Exp $ |
27 |
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
+# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/ChangeLog,v 1.15 2010/04/22 12:09:35 tupone Exp $ |
29 |
+ |
30 |
+ 22 Apr 2010; Tupone Alfredo <tupone@g.o> |
31 |
+ tuxmathscrabble-4.5.ebuild: |
32 |
+ Force python2 to fix bug #312255 by arfrever@g.o |
33 |
|
34 |
*tuxmathscrabble-4.5 (24 Oct 2007) |
35 |
|
36 |
|
37 |
|
38 |
|
39 |
1.2 games-kids/tuxmathscrabble/tuxmathscrabble-4.5.ebuild |
40 |
|
41 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-kids/tuxmathscrabble/tuxmathscrabble-4.5.ebuild?rev=1.2&view=markup |
42 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-kids/tuxmathscrabble/tuxmathscrabble-4.5.ebuild?rev=1.2&content-type=text/plain |
43 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-kids/tuxmathscrabble/tuxmathscrabble-4.5.ebuild?r1=1.1&r2=1.2 |
44 |
|
45 |
Index: tuxmathscrabble-4.5.ebuild |
46 |
=================================================================== |
47 |
RCS file: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/tuxmathscrabble-4.5.ebuild,v |
48 |
retrieving revision 1.1 |
49 |
retrieving revision 1.2 |
50 |
diff -u -r1.1 -r1.2 |
51 |
--- tuxmathscrabble-4.5.ebuild 24 Oct 2007 01:28:06 -0000 1.1 |
52 |
+++ tuxmathscrabble-4.5.ebuild 22 Apr 2010 12:09:35 -0000 1.2 |
53 |
@@ -1,6 +1,8 @@ |
54 |
-# Copyright 1999-2007 Gentoo Foundation |
55 |
+# Copyright 1999-2010 Gentoo Foundation |
56 |
# Distributed under the terms of the GNU General Public License v2 |
57 |
-# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/tuxmathscrabble-4.5.ebuild,v 1.1 2007/10/24 01:28:06 nyhm Exp $ |
58 |
+# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/tuxmathscrabble-4.5.ebuild,v 1.2 2010/04/22 12:09:35 tupone Exp $ |
59 |
+EAPI="2" |
60 |
+PYTHON_DEPEND="2" |
61 |
|
62 |
inherit eutils python multilib games |
63 |
|
64 |
@@ -21,21 +23,24 @@ |
65 |
|
66 |
S=${WORKDIR}/${MY_P} |
67 |
|
68 |
-src_unpack() { |
69 |
- unpack ${A} |
70 |
- cd "${S}" |
71 |
+pkg_setup() { |
72 |
+ python_set_active_version 2 |
73 |
+ games_pkg_setup |
74 |
+} |
75 |
+ |
76 |
+src_prepare() { |
77 |
rm -f $(find . -name '*.pyc') |
78 |
mv -f ${MY_PN}/{Accounts,Globals,Simulation,StudentData} . |
79 |
sed -i "s:'/','var','games':'${GAMES_STATEDIR}':" \ |
80 |
asymptopia_0_1_3/environment.py \ |
81 |
|| die "sed failed" |
82 |
+ python_convert_shebangs -r 2 . |
83 |
} |
84 |
|
85 |
src_install() { |
86 |
newgamesbin ${MY_PN}.py ${PN} || die "newgamesbin failed" |
87 |
|
88 |
- python_version |
89 |
- insinto /usr/$(get_libdir)/python${PYVER}/site-packages |
90 |
+ insinto $(python_get_sitedir) |
91 |
doins -r ${MY_PN} || die "doins failed" |
92 |
doins -r asymptopia_0_1_3 || die "doins asymptopia_0_1_2 failed" |