1 |
commit: feeb4b849b4f09403e4c622823d003ad42f256ad |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 26 17:57:41 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 26 17:57:41 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=feeb4b84 |
7 |
|
8 |
dev-python/pygame: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pygame/pygame-2.1.2.ebuild | 81 ----------------------------------- |
13 |
1 file changed, 81 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/pygame/pygame-2.1.2.ebuild b/dev-python/pygame/pygame-2.1.2.ebuild |
16 |
deleted file mode 100644 |
17 |
index 0a8ee188120a..000000000000 |
18 |
--- a/dev-python/pygame/pygame-2.1.2.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,81 +0,0 @@ |
21 |
-# Copyright 1999-2022 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=8 |
25 |
- |
26 |
-PYTHON_COMPAT=( python3_{8..10} ) |
27 |
-inherit distutils-r1 |
28 |
- |
29 |
-DESCRIPTION="Python bindings for SDL multimedia library" |
30 |
-HOMEPAGE="https://www.pygame.org/" |
31 |
-SRC_URI=" |
32 |
- https://github.com/pygame/pygame/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" |
33 |
- |
34 |
-LICENSE="LGPL-2.1" |
35 |
-SLOT="0" |
36 |
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 sparc x86" |
37 |
-IUSE="examples midi opengl test X" |
38 |
-RESTRICT="!test? ( test )" |
39 |
- |
40 |
-RDEPEND="dev-python/numpy[${PYTHON_USEDEP}] |
41 |
- media-libs/freetype |
42 |
- media-libs/libpng:0= |
43 |
- >=media-libs/sdl2-image-1.2.2 |
44 |
- >=media-libs/sdl2-mixer-1.2.4 |
45 |
- >=media-libs/sdl2-ttf-2.0.6 |
46 |
- >=media-libs/smpeg2-0.4.4-r1 |
47 |
- virtual/jpeg |
48 |
- midi? ( media-libs/portmidi ) |
49 |
- X? ( >=media-libs/libsdl2-1.2.5[opengl?,threads,video,X] ) |
50 |
- !X? ( >=media-libs/libsdl2-1.2.5[threads] )" |
51 |
-DEPEND="${RDEPEND} |
52 |
- test? ( |
53 |
- media-libs/sdl2-image[gif,jpeg,png,tiff] |
54 |
- media-libs/sdl2-mixer[mp3,vorbis,wav] |
55 |
- )" |
56 |
-# fontconfig used for fc-list |
57 |
-RDEPEND+=" |
58 |
- media-libs/fontconfig" |
59 |
-# util-linux provides script |
60 |
-BDEPEND=" |
61 |
- test? ( |
62 |
- media-libs/fontconfig |
63 |
- sys-apps/util-linux |
64 |
- )" |
65 |
- |
66 |
-src_prepare() { |
67 |
- if ! use midi; then |
68 |
- rm test/midi_test.py || die |
69 |
- fi |
70 |
- distutils-r1_src_prepare |
71 |
-} |
72 |
- |
73 |
-python_configure() { |
74 |
- PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \ |
75 |
- "${EPYTHON}" "${S}"/buildconfig/config.py -auto || die |
76 |
- |
77 |
- # Disable automagic dependency on PortMidi. |
78 |
- if ! use midi; then |
79 |
- sed -e "s:^pypm :#&:" -i Setup || die "sed failed" |
80 |
- fi |
81 |
-} |
82 |
- |
83 |
-python_test() { |
84 |
- local -x PYTHONPATH=${BUILD_DIR}/install/lib |
85 |
- local -x SDL_VIDEODRIVER=dummy |
86 |
- local -x SDL_AUDIODRIVER=disk |
87 |
- distutils_install_for_testing --via-root |
88 |
- script -eqc "${EPYTHON} -m pygame.tests -v" || die |
89 |
-} |
90 |
- |
91 |
-python_install() { |
92 |
- distutils-r1_python_install |
93 |
- |
94 |
- # Bug #497720 |
95 |
- rm -fr "${D}"$(python_get_sitedir)/pygame/{docs,examples,tests}/ || die |
96 |
-} |
97 |
- |
98 |
-python_install_all() { |
99 |
- distutils-r1_python_install_all |
100 |
- use examples && dodoc -r examples |
101 |
-} |