1 |
commit: 271d704d0eda938dd165a9aa8c2097884948bf8e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 25 07:44:17 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 25 08:09:29 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=271d704d |
7 |
|
8 |
dev-python/pygame: Bump to 2.1.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pygame/Manifest | 1 + |
13 |
dev-python/pygame/pygame-2.1.1.ebuild | 91 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 92 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest |
17 |
index 30ae8e15bdb5..bf80956d1ccf 100644 |
18 |
--- a/dev-python/pygame/Manifest |
19 |
+++ b/dev-python/pygame/Manifest |
20 |
@@ -5,3 +5,4 @@ DIST pygame-2.0.1.tar.gz 5536907 BLAKE2B b27cb9001499a00da62dac0486a72079ff4e60c |
21 |
DIST pygame-2.0.2.tar.gz 6309459 BLAKE2B 0cb23b4226d8d86f938cba08b67ab3bd847c9e4122f5f6cce4d8810b239df672ab282e1b77dd7d71423f805c7c0418e54050347dfb9e506b799eb8e0b4f16856 SHA512 2cef4669e5bd81759c9886293ebc1b82e1ed3b4576a3632437f66cb353af330e15dd39e7378f2be8fd25838f202529dc550208a031aec77e1d05443a070638c8 |
22 |
DIST pygame-2.0.3.tar.gz 5804279 BLAKE2B fb58dd57a9288bdff3c0d01389e363968ebddd4b2b0fa92335c825297026c5858da4f73a870f84e0c3c7cf302bd9f4163807c97a348d581658df7e7695fcb4fb SHA512 1d2b4cb1e577f0244c2b92511b8fa0ab7bcd689d04a4451ced41e6d97758ba380d7e681e60abed26c81b96bd49d505cf481c67a466437b3cfdb547e744f22949 |
23 |
DIST pygame-2.1.0.tar.gz 5790847 BLAKE2B 1d2fc9f8d86ab823008cbb4c7431f44dd17ba5b356ed755a308737eb5a0db3c4033efe3fd4245bd740a33c6f4e5d2816daefc3785c747ef046b8f98aa8f58589 SHA512 b9394bea5dad54760297c75133ca56c99f89781340029f8866b169fcef3a7e12c16d00a18dd95f4fe3c13e393915d5b29b8d547465efb94f84b4875579166f1a |
24 |
+DIST pygame-2.1.1.tar.gz 10132023 BLAKE2B 41f6beb02ada13208d71375f15e247c785261801f82dfc47dba22a28692b5aea01072e46f2fd281451ce778d5818812c74776bd791d47d465645fdef63ffefec SHA512 eea4be27bbf29cfeb98fb095121341e1366fed1cc1f3c16bb076adbd2f1c8583e51d34b93811259a80ea3e2a3bde83c8144e91cd83a7dde3cf730805c0b99ac3 |
25 |
|
26 |
diff --git a/dev-python/pygame/pygame-2.1.1.ebuild b/dev-python/pygame/pygame-2.1.1.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..1ee94dd33f0e |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pygame/pygame-2.1.1.ebuild |
31 |
@@ -0,0 +1,91 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+MY_PV=${PV/_pre/.dev} |
41 |
+MY_P=${PN}-${MY_PV} |
42 |
+ |
43 |
+DESCRIPTION="Python bindings for SDL multimedia library" |
44 |
+HOMEPAGE="https://www.pygame.org/" |
45 |
+SRC_URI=" |
46 |
+ https://github.com/pygame/pygame/releases/download/${MY_PV}/${MY_P}.tar.gz" |
47 |
+S=${WORKDIR}/${MY_P} |
48 |
+ |
49 |
+LICENSE="LGPL-2.1" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
52 |
+IUSE="doc examples midi opengl test X" |
53 |
+RESTRICT="!test? ( test )" |
54 |
+ |
55 |
+RDEPEND="dev-python/numpy[${PYTHON_USEDEP}] |
56 |
+ media-libs/freetype |
57 |
+ media-libs/libpng:0= |
58 |
+ >=media-libs/sdl2-image-1.2.2 |
59 |
+ >=media-libs/sdl2-mixer-1.2.4 |
60 |
+ >=media-libs/sdl2-ttf-2.0.6 |
61 |
+ >=media-libs/smpeg2-0.4.4-r1 |
62 |
+ virtual/jpeg |
63 |
+ midi? ( media-libs/portmidi ) |
64 |
+ X? ( >=media-libs/libsdl2-1.2.5[opengl?,threads,video,X] ) |
65 |
+ !X? ( >=media-libs/libsdl2-1.2.5[threads] )" |
66 |
+DEPEND="${RDEPEND} |
67 |
+ test? ( |
68 |
+ media-libs/sdl2-image[gif,jpeg,png] |
69 |
+ media-libs/sdl2-mixer[mp3,vorbis,wav] |
70 |
+ )" |
71 |
+# fontconfig used for fc-list |
72 |
+RDEPEND+=" |
73 |
+ media-libs/fontconfig" |
74 |
+# util-linux provides script |
75 |
+BDEPEND=" |
76 |
+ test? ( |
77 |
+ media-libs/fontconfig |
78 |
+ sys-apps/util-linux |
79 |
+ )" |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ if ! use midi; then |
83 |
+ rm test/midi_test.py || die |
84 |
+ fi |
85 |
+ distutils-r1_src_prepare |
86 |
+} |
87 |
+ |
88 |
+python_configure() { |
89 |
+ PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \ |
90 |
+ "${EPYTHON}" "${S}"/buildconfig/config.py -auto || die |
91 |
+ |
92 |
+ # Disable automagic dependency on PortMidi. |
93 |
+ if ! use midi; then |
94 |
+ sed -e "s:^pypm :#&:" -i Setup || die "sed failed" |
95 |
+ fi |
96 |
+} |
97 |
+ |
98 |
+python_test() { |
99 |
+ local -x PYTHONPATH=${BUILD_DIR}/install/lib |
100 |
+ local -x SDL_VIDEODRIVER=dummy |
101 |
+ local -x SDL_AUDIODRIVER=disk |
102 |
+ distutils_install_for_testing --via-root |
103 |
+ script -eqc "${EPYTHON} -m pygame.tests" || die |
104 |
+} |
105 |
+ |
106 |
+python_install() { |
107 |
+ distutils-r1_python_install |
108 |
+ |
109 |
+ # Bug #497720 |
110 |
+ rm -fr "${D}"$(python_get_sitedir)/pygame/{docs,examples,tests}/ || die |
111 |
+} |
112 |
+ |
113 |
+python_install_all() { |
114 |
+ distutils-r1_python_install_all |
115 |
+ |
116 |
+ if use doc; then |
117 |
+ docinto html |
118 |
+ dodoc -r docs/* |
119 |
+ fi |
120 |
+ |
121 |
+ use examples && dodoc -r examples |
122 |
+} |