Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pygame: pygame-1.9.1.ebuild ChangeLog pygame-1.9.1-r1.ebuild
Date: Thu, 31 Mar 2011 17:05:59
Message-Id: 20110331170545.DDD2120054@flycatcher.gentoo.org
1 ssuominen 11/03/31 17:05:45
2
3 Modified: pygame-1.9.1.ebuild ChangeLog
4 Added: pygame-1.9.1-r1.ebuild
5 Log:
6 punt support for v4lv1, see ChangeLog for details
7
8 (Portage version: 2.2.0_alpha29/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.11 dev-python/pygame/pygame-1.9.1.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygame/pygame-1.9.1.ebuild?rev=1.11&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygame/pygame-1.9.1.ebuild?rev=1.11&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygame/pygame-1.9.1.ebuild?r1=1.10&r2=1.11
16
17 Index: pygame-1.9.1.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/pygame/pygame-1.9.1.ebuild,v
20 retrieving revision 1.10
21 retrieving revision 1.11
22 diff -u -r1.10 -r1.11
23 --- pygame-1.9.1.ebuild 10 Aug 2010 02:36:10 -0000 1.10
24 +++ pygame-1.9.1.ebuild 31 Mar 2011 17:05:45 -0000 1.11
25 @@ -1,6 +1,6 @@
26 -# Copyright 1999-2010 Gentoo Foundation
27 +# Copyright 1999-2011 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pygame/pygame-1.9.1.ebuild,v 1.10 2010/08/10 02:36:10 jer Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygame/pygame-1.9.1.ebuild,v 1.11 2011/03/31 17:05:45 ssuominen Exp $
31
32 EAPI="2"
33 SUPPORT_PYTHON_ABIS="1"
34 @@ -14,7 +14,7 @@
35 LICENSE="LGPL-2.1"
36 SLOT="0"
37 KEYWORDS="alpha amd64 ~arm hppa ia64 ppc sparc x86 ~x86-fbsd"
38 -IUSE="doc examples X"
39 +IUSE="doc examples kernel_linux X"
40
41 RDEPEND=">=media-libs/libsdl-1.2.5[X?]
42 >=media-libs/sdl-ttf-2.0.6
43 @@ -22,15 +22,16 @@
44 >=media-libs/sdl-mixer-1.2.4
45 dev-python/numpy
46 >=media-libs/smpeg-0.4.4-r1"
47 -DEPEND="${RDEPEND}"
48 +DEPEND="${RDEPEND}
49 + kernel_linux? ( <sys-kernel/linux-headers-2.6.38 )"
50
51 -S="${WORKDIR}/${P}release"
52 +S=${WORKDIR}/${P}release
53
54 DOCS="WHATSNEW"
55
56 src_prepare() {
57 distutils_src_prepare
58 - epatch "${FILESDIR}/config.patch"
59 + epatch "${FILESDIR}"/config.patch
60 }
61
62 src_configure() {
63
64
65
66 1.72 dev-python/pygame/ChangeLog
67
68 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygame/ChangeLog?rev=1.72&view=markup
69 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygame/ChangeLog?rev=1.72&content-type=text/plain
70 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygame/ChangeLog?r1=1.71&r2=1.72
71
72 Index: ChangeLog
73 ===================================================================
74 RCS file: /var/cvsroot/gentoo-x86/dev-python/pygame/ChangeLog,v
75 retrieving revision 1.71
76 retrieving revision 1.72
77 diff -u -r1.71 -r1.72
78 --- ChangeLog 10 Aug 2010 02:36:10 -0000 1.71
79 +++ ChangeLog 31 Mar 2011 17:05:45 -0000 1.72
80 @@ -1,6 +1,13 @@
81 # ChangeLog for dev-python/pygame
82 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
83 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pygame/ChangeLog,v 1.71 2010/08/10 02:36:10 jer Exp $
84 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
85 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygame/ChangeLog,v 1.72 2011/03/31 17:05:45 ssuominen Exp $
86 +
87 +*pygame-1.9.1-r1 (31 Mar 2011)
88 +
89 + 31 Mar 2011; Samuli Suominen <ssuominen@g.o> +pygame-1.9.1-r1.ebuild,
90 + +files/pygame-1.9.1-linux-headers-2.6.38.patch:
91 + Fix building with linux-headers-2.6.38 by removing support for V4L v1 wrt #359745
92 + by Billy DeVincentis and Martijn Schmidt.
93
94 10 Aug 2010; Jeroen Roovers <jer@g.o> pygame-1.9.1.ebuild:
95 Remove HPPA workaround (bug #289326).
96
97
98
99 1.1 dev-python/pygame/pygame-1.9.1-r1.ebuild
100
101 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygame/pygame-1.9.1-r1.ebuild?rev=1.1&view=markup
102 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygame/pygame-1.9.1-r1.ebuild?rev=1.1&content-type=text/plain
103
104 Index: pygame-1.9.1-r1.ebuild
105 ===================================================================
106 # Copyright 1999-2011 Gentoo Foundation
107 # Distributed under the terms of the GNU General Public License v2
108 # $Header: /var/cvsroot/gentoo-x86/dev-python/pygame/pygame-1.9.1-r1.ebuild,v 1.1 2011/03/31 17:05:45 ssuominen Exp $
109
110 EAPI="2"
111 SUPPORT_PYTHON_ABIS="1"
112
113 inherit distutils eutils multilib
114
115 DESCRIPTION="python bindings to sdl and other libs that facilitate game production"
116 HOMEPAGE="http://www.pygame.org/"
117 SRC_URI="http://www.pygame.org/ftp/pygame-${PV}release.tar.gz"
118
119 LICENSE="LGPL-2.1"
120 SLOT="0"
121 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd"
122 IUSE="doc examples X"
123
124 RDEPEND=">=media-libs/libsdl-1.2.5[X?]
125 >=media-libs/sdl-ttf-2.0.6
126 >=media-libs/sdl-image-1.2.2[png,jpeg]
127 >=media-libs/sdl-mixer-1.2.4
128 dev-python/numpy
129 >=media-libs/smpeg-0.4.4-r1"
130 DEPEND="${RDEPEND}"
131
132 S=${WORKDIR}/${P}release
133
134 DOCS="WHATSNEW"
135
136 src_prepare() {
137 distutils_src_prepare
138 epatch \
139 "${FILESDIR}"/config.patch \
140 "${FILESDIR}"/${P}-linux-headers-2.6.38.patch
141 }
142
143 src_configure() {
144 "$(PYTHON -f)" config.py -auto
145 sed -i -e 's:X11R6/lib:lib64:g' Setup
146 use X || sed -i -e 's:scrap :#scrap :' Setup
147 }
148
149 src_test() {
150 # Skip tests that depend on DISPLAY being set. Bug #223055.
151 SKIP_TESTS="display_test image__save_gl_surface_test movie_test"
152
153 local test
154 for test in ${SKIP_TESTS}; do
155 einfo "Removing test: ${test}"
156 rm -fr "${S}/test/${test}.py"
157 done
158
159 testing() {
160 PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" run_tests.py
161 }
162 python_execute_function testing
163 }
164
165 src_install() {
166 distutils_src_install
167 rm -fr "${D}"usr/lib*/python*/site-packages/pygame/examples
168
169 if use doc; then
170 dohtml -r docs/*
171 fi
172
173 if use examples; then
174 insinto /usr/share/doc/${PF}
175 doins -r "${S}/examples"
176 fi
177 }