1 |
commit: 9f15cb2d9a762ec7db61433aa6c4bff7160e35e6 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 12 07:56:46 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 12 08:36:11 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f15cb2d |
7 |
|
8 |
dev-python/PySDL2: Bump to 0.9.10 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/PySDL2/Manifest | 1 + |
13 |
dev-python/PySDL2/PySDL2-0.9.10.ebuild | 55 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 56 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/PySDL2/Manifest b/dev-python/PySDL2/Manifest |
17 |
index d7c14151b7ff..fbbe1cb19202 100644 |
18 |
--- a/dev-python/PySDL2/Manifest |
19 |
+++ b/dev-python/PySDL2/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
+DIST PySDL2-0.9.10.tar.gz 5228778 BLAKE2B 1aac6ac3a33dd5cb56aad7e9fdcfe5ec62f7b406b9779aa04f92ec4f051cbe5f03596de06aa2d5688724c811c86959edefe40dab1e39980a8410c6b09c10c5ab SHA512 86517734d356ba7685914ce6e4583c8131bc2e84bf2318f985119407d39794878aeb8fdb84464e1e35c3b4cc1569777239dedb16f4669169f9f0302dacd8689e |
22 |
DIST PySDL2-0.9.9.tar.gz 743302 BLAKE2B 1e9e0eeea48b838227d3fe6ea93311d445b1d3a15588f4b83d075d18306b419ba3512826e44c5e4ecc2aec59ad44da73372ec740ebf6106271fd0b77175b88d7 SHA512 52b469735b1229392ea2f73b2dfcf1e75cedf7582a488461be9b06bc072f82a5c8c559d345a0c3668829c0f8bb2996005d538465ed7d2a45fb8480001fd0ccce |
23 |
|
24 |
diff --git a/dev-python/PySDL2/PySDL2-0.9.10.ebuild b/dev-python/PySDL2/PySDL2-0.9.10.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..08911e560403 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/PySDL2/PySDL2-0.9.10.ebuild |
29 |
@@ -0,0 +1,55 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..10} ) |
36 |
+inherit distutils-r1 |
37 |
+ |
38 |
+DESCRIPTION="Python (ctypes) bindings for SDL2 libraries" |
39 |
+HOMEPAGE="https://github.com/marcusva/py-sdl2 https://pypi.org/project/PySDL2/" |
40 |
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="|| ( public-domain CC0-1.0 ZLIB )" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+ |
46 |
+# Optional deps: |
47 |
+# - dev-python/numpy, |
48 |
+# - dev-python/pillow, |
49 |
+# - media-libs/sdl2-* (loaded dynamically via ctypes). |
50 |
+# |
51 |
+# If a reverse dependency needs the specific module, it should |
52 |
+# explicitly depend on the optional module in question. You also |
53 |
+# probably need to explicitly require some media-libs/libsdl2 flags. |
54 |
+RDEPEND="media-libs/libsdl2" |
55 |
+ |
56 |
+# Require all of SDL2 libraries and at least the most common subsystems |
57 |
+# for better test coverage. |
58 |
+DEPEND=" |
59 |
+ test? ( |
60 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
61 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
62 |
+ media-libs/libsdl2[joystick,sound,video] |
63 |
+ media-libs/sdl2-gfx |
64 |
+ media-libs/sdl2-image[gif,jpeg,png,tiff,webp] |
65 |
+ || ( |
66 |
+ media-libs/sdl2-mixer[flac] |
67 |
+ media-libs/sdl2-mixer[midi] |
68 |
+ media-libs/sdl2-mixer[mod] |
69 |
+ media-libs/sdl2-mixer[mp3] |
70 |
+ media-libs/sdl2-mixer[opus] |
71 |
+ ) |
72 |
+ media-libs/sdl2-ttf |
73 |
+ )" |
74 |
+ |
75 |
+distutils_enable_tests pytest |
76 |
+ |
77 |
+src_test() { |
78 |
+ # from .travis.yml |
79 |
+ local -x SDL_VIDEODRIVER=dummy |
80 |
+ local -x SDL_AUDIODRIVER=dummy |
81 |
+ local -x SDL_RENDER_DRIVER=software |
82 |
+ |
83 |
+ distutils-r1_src_test |
84 |
+} |