1 |
xarthisius 12/05/30 18:11:49 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pygame-1.9.2_pre20120101-r1.ebuild |
5 |
Removed: pygame-1.9.2_pre20120101.ebuild |
6 |
Log: |
7 |
Apply fix for invalid import with python3 by Arfrever Frehtes Taifersar Arahesis <arfrever.fta@×××××.com>. Fixes bug #415593 by Eric Mercier <mercier.eric@×××××.com>. Drop old |
8 |
|
9 |
(Portage version: 2.2.0_alpha108/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.85 dev-python/pygame/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygame/ChangeLog?rev=1.85&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygame/ChangeLog?rev=1.85&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygame/ChangeLog?r1=1.84&r2=1.85 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/pygame/ChangeLog,v |
21 |
retrieving revision 1.84 |
22 |
retrieving revision 1.85 |
23 |
diff -u -r1.84 -r1.85 |
24 |
--- ChangeLog 20 Feb 2012 14:27:51 -0000 1.84 |
25 |
+++ ChangeLog 30 May 2012 18:11:49 -0000 1.85 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for dev-python/pygame |
28 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pygame/ChangeLog,v 1.84 2012/02/20 14:27:51 patrick Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pygame/ChangeLog,v 1.85 2012/05/30 18:11:49 xarthisius Exp $ |
31 |
+ |
32 |
+*pygame-1.9.2_pre20120101-r1 (30 May 2012) |
33 |
+ |
34 |
+ 30 May 2012; Kacper Kowalik <xarthisius@g.o> |
35 |
+ +pygame-1.9.2_pre20120101-r1.ebuild, -pygame-1.9.2_pre20120101.ebuild: |
36 |
+ Apply fix for invalid import with python3 by Arfrever Frehtes Taifersar |
37 |
+ Arahesis <arfrever.fta@×××××.com>. Fixes bug #415593 by Eric Mercier |
38 |
+ <mercier.eric@×××××.com>. Drop old |
39 |
|
40 |
20 Feb 2012; Patrick Lauer <patrick@g.o> |
41 |
pygame-1.9.2_pre20120101.ebuild, pygame-1.9.2_pre3082.ebuild, |
42 |
|
43 |
|
44 |
|
45 |
1.1 dev-python/pygame/pygame-1.9.2_pre20120101-r1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygame/pygame-1.9.2_pre20120101-r1.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygame/pygame-1.9.2_pre20120101-r1.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: pygame-1.9.2_pre20120101-r1.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2012 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/pygame/pygame-1.9.2_pre20120101-r1.ebuild,v 1.1 2012/05/30 18:11:49 xarthisius Exp $ |
55 |
|
56 |
EAPI="4" |
57 |
SUPPORT_PYTHON_ABIS="1" |
58 |
RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-**" |
59 |
PYTHON_TESTS_RESTRICTED_ABIS="3.1" |
60 |
PYTHON_TESTS_FAILURES_TOLERANT_ABIS="*" |
61 |
|
62 |
inherit distutils virtualx |
63 |
|
64 |
DESCRIPTION="Python bindings for SDL multimedia library" |
65 |
HOMEPAGE="http://www.pygame.org/" |
66 |
if [[ "${PV}" == *_pre* ]]; then |
67 |
SRC_URI="http://people.apache.org/~Arfrever/gentoo/${P}.tar.xz" |
68 |
else |
69 |
SRC_URI="http://www.pygame.org/ftp/pygame-${PV}release.tar.gz" |
70 |
fi |
71 |
|
72 |
LICENSE="LGPL-2.1" |
73 |
SLOT="0" |
74 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd" |
75 |
IUSE="doc examples X" |
76 |
|
77 |
DEPEND="dev-python/numpy |
78 |
>=media-libs/libsdl-1.2.5[X?] |
79 |
>=media-libs/sdl-image-1.2.2[png,jpeg] |
80 |
>=media-libs/sdl-mixer-1.2.4 |
81 |
>=media-libs/sdl-ttf-2.0.6 |
82 |
>=media-libs/smpeg-0.4.4-r1" |
83 |
RDEPEND="${DEPEND}" |
84 |
|
85 |
if [[ "${PV}" != *_pre* ]]; then |
86 |
S="${WORKDIR}/${P}release" |
87 |
fi |
88 |
|
89 |
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing") |
90 |
|
91 |
DOCS="WHATSNEW" |
92 |
|
93 |
src_configure() { |
94 |
"$(PYTHON -f)" config.py -auto |
95 |
|
96 |
if ! use X; then |
97 |
sed -e "s:^scrap :#&:" -i Setup || die "sed failed" |
98 |
fi |
99 |
|
100 |
# Disable automagic dependency on PortMidi. |
101 |
sed -e "s:^pypm :#&:" -i Setup || die "sed failed" |
102 |
|
103 |
sed -i -e "s/import _camera/from pygame &/g" lib/camera.py || die #415593 |
104 |
} |
105 |
|
106 |
src_test() { |
107 |
testing() { |
108 |
PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" run_tests.py |
109 |
} |
110 |
VIRTUALX_COMMAND="python_execute_function" virtualmake testing |
111 |
} |
112 |
|
113 |
src_install() { |
114 |
distutils_src_install |
115 |
|
116 |
delete_examples_and_tests() { |
117 |
rm -fr "${ED}$(python_get_sitedir)/pygame/examples" |
118 |
rm -fr "${ED}$(python_get_sitedir)/pygame/tests" |
119 |
} |
120 |
python_execute_function -q delete_examples_and_tests |
121 |
|
122 |
if use doc; then |
123 |
dohtml -r docs/* |
124 |
fi |
125 |
|
126 |
if use examples; then |
127 |
insinto /usr/share/doc/${PF}/examples |
128 |
doins -r examples/* |
129 |
fi |
130 |
} |