1 |
hasufell 13/02/26 00:03:23 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pygame-1.9.2_pre20120101-r2.ebuild |
5 |
Log: |
6 |
convert to distutils-r1 |
7 |
|
8 |
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key E73C35B3) |
9 |
|
10 |
Revision Changes Path |
11 |
1.92 dev-python/pygame/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygame/ChangeLog?rev=1.92&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygame/ChangeLog?rev=1.92&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygame/ChangeLog?r1=1.91&r2=1.92 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/pygame/ChangeLog,v |
20 |
retrieving revision 1.91 |
21 |
retrieving revision 1.92 |
22 |
diff -u -r1.91 -r1.92 |
23 |
--- ChangeLog 1 Jan 2013 19:29:29 -0000 1.91 |
24 |
+++ ChangeLog 26 Feb 2013 00:03:23 -0000 1.92 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-python/pygame |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pygame/ChangeLog,v 1.91 2013/01/01 19:29:29 hasufell Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pygame/ChangeLog,v 1.92 2013/02/26 00:03:23 hasufell Exp $ |
30 |
+ |
31 |
+*pygame-1.9.2_pre20120101-r2 (26 Feb 2013) |
32 |
+ |
33 |
+ 26 Feb 2013; Julian Ospald <hasufell@g.o> |
34 |
+ +pygame-1.9.2_pre20120101-r2.ebuild: |
35 |
+ convert to distutils-r1 |
36 |
|
37 |
01 Jan 2013; Julian Ospald <hasufell@g.o> |
38 |
pygame-1.9.2_pre20120101-r1.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-python/pygame/pygame-1.9.2_pre20120101-r2.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygame/pygame-1.9.2_pre20120101-r2.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygame/pygame-1.9.2_pre20120101-r2.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: pygame-1.9.2_pre20120101-r2.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2013 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/pygame/pygame-1.9.2_pre20120101-r2.ebuild,v 1.1 2013/02/26 00:03:23 hasufell Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_2,3_3} ) |
55 |
DISTUTILS_IN_SOURCE_BUILD=1 |
56 |
inherit flag-o-matic distutils-r1 virtualx |
57 |
|
58 |
DESCRIPTION="Python bindings for SDL multimedia library" |
59 |
HOMEPAGE="http://www.pygame.org/" |
60 |
if [[ "${PV}" == *_pre* ]]; then |
61 |
SRC_URI="http://people.apache.org/~Arfrever/gentoo/${P}.tar.xz" |
62 |
else |
63 |
SRC_URI="http://www.pygame.org/ftp/pygame-${PV}release.tar.gz" |
64 |
fi |
65 |
|
66 |
LICENSE="LGPL-2.1" |
67 |
SLOT="0" |
68 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd" |
69 |
IUSE="doc examples X" |
70 |
|
71 |
DEPEND="dev-python/numpy[${PYTHON_USEDEP}] |
72 |
>=media-libs/sdl-image-1.2.2[png,jpeg] |
73 |
>=media-libs/sdl-mixer-1.2.4 |
74 |
>=media-libs/sdl-ttf-2.0.6 |
75 |
>=media-libs/smpeg-0.4.4-r1 |
76 |
X? ( >=media-libs/libsdl-1.2.5[X,video] ) |
77 |
!X? ( >=media-libs/libsdl-1.2.5 )" |
78 |
RDEPEND="${DEPEND}" |
79 |
|
80 |
if [[ "${PV}" != *_pre* ]]; then |
81 |
S="${WORKDIR}/${P}release" |
82 |
fi |
83 |
|
84 |
DOCS=( WHATSNEW ) |
85 |
|
86 |
python_configure() { |
87 |
"${EPYTHON}" config.py -auto |
88 |
|
89 |
if ! use X; then |
90 |
sed -e "s:^scrap :#&:" -i Setup || die "sed failed" |
91 |
fi |
92 |
|
93 |
# Disable automagic dependency on PortMidi. |
94 |
sed -e "s:^pypm :#&:" -i Setup || die "sed failed" |
95 |
|
96 |
sed -i -e "s/import _camera/from pygame &/g" lib/camera.py || die #415593 |
97 |
} |
98 |
|
99 |
python_compile() { |
100 |
if [[ ${EPYTHON} == python2* ]]; then |
101 |
local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} |
102 |
|
103 |
append-flags -fno-strict-aliasing |
104 |
fi |
105 |
|
106 |
distutils-r1_python_compile |
107 |
} |
108 |
|
109 |
python_test() { |
110 |
VIRTUALX_COMMAND="${PYTHON}" virtualmake run_tests.py |
111 |
} |
112 |
|
113 |
python_install() { |
114 |
distutils-r1_python_install |
115 |
|
116 |
rm -fr "${D}$(python_get_sitedir)/pygame/examples" |
117 |
rm -fr "${D}$(python_get_sitedir)/pygame/tests" |
118 |
} |
119 |
|
120 |
python_install_all() { |
121 |
distutils-r1_python_install_all |
122 |
|
123 |
if use doc; then |
124 |
dohtml -r docs/* |
125 |
fi |
126 |
|
127 |
if use examples; then |
128 |
insinto /usr/share/doc/${PF}/examples |
129 |
doins -r examples/* |
130 |
fi |
131 |
} |