Gentoo Archives: gentoo-commits

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