diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-01-01 06:30:58 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-01-01 06:30:58 +0000 |
commit | c4d4d544a37efc45bd5482e62e1fcdbe7d5993d3 (patch) | |
tree | e97ec8b6356535412a838039bf7874aef3129f50 /dev-python/pysdl2 | |
parent | 2e36bcecf24a3f583ae8f27b71ba13b3cfd39778 (diff) |
gentoo auto-resync : 01:01:2025 - 06:30:57
Diffstat (limited to 'dev-python/pysdl2')
-rw-r--r-- | dev-python/pysdl2/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pysdl2/pysdl2-0.9.17.ebuild | 69 |
2 files changed, 71 insertions, 0 deletions
diff --git a/dev-python/pysdl2/Manifest b/dev-python/pysdl2/Manifest index 10abeb41264a..ac592bcfa56e 100644 --- a/dev-python/pysdl2/Manifest +++ b/dev-python/pysdl2/Manifest @@ -1,3 +1,5 @@ DIST PySDL2-0.9.16.tar.gz 773537 BLAKE2B 5cfe4ab3981a665fc7f7606c07a3252e58c2706e45ab41d0d6444b4d3fb1c8805b5fd67e770a8a64538d305be0013a4d599ee81f5de0c5370146edc9d4d858df SHA512 ffe7abe8e828926934677c81a42c9af794c4817144eba50c40430c150d476dea40f0b36e639b2c270cbd8e00ab5bf5b032a4c0e514255cceef8161c8d76f8cb2 +DIST pysdl2-0.9.17.tar.gz 775955 BLAKE2B 205bd6d1e6562133f77827daf77bca9f7cbb589c7454e10fba2b86526c17d7300b2e42ea83030e11703696b62c17b0d5f9c46f082535a67e16d46cc90e048d8c SHA512 ec4bf3b3d01e6c4ffa08fba032d345ec5da141a8021fa5ac98fbbde04e22911893bcd4159afb3a52e06eb178a460b451256487c9b3a3a8105448db36ba0df6b8 EBUILD pysdl2-0.9.16.ebuild 1799 BLAKE2B f74ad68a04b3c4fc20186f535c0d90c9d83587710826e68802a435fadc25a43282ae0446c996a551f4a1172b20c5eb86847b1f53b54840bf26d8adeff39b26dd SHA512 a1cefe5dded69ba39b37a54af961ce1d4c687666922896e448c1b88ffa78799702aee8f09512097cb3b75977c6ca9a0db3d6beb2dcb74f8a1360fb5c17277679 +EBUILD pysdl2-0.9.17.ebuild 1779 BLAKE2B 39a1136c7dff04b5348901c5fd38c71ac7c1210d978051e601fe861ffe9527f457db7b1472ff4b364d9ae90dd4e3b4b4dcca7957f0a803ed3f4ab1e1fde77c90 SHA512 26f3701fd24ad76f67fc5a8aa29809ce9b6e3ba9b7e3c8ece01da671acaa4280369dc22e98ed518fb8df2fc00851cb65ad7182b1e0dca921c4ee38a50e32656c MISC metadata.xml 450 BLAKE2B f92f2f7529e3a09d18c88a51f78ed520d7b4756a99776d70bb7ad4e452ae6cd9a67560ebfaafcacbd73e945282fc28ecdb48d54b2c2eb5b18d3f944401650349 SHA512 de7f757b195170ee865e34dcc214d0a57912e50631291045c485f58ba05fa87b7fc57878333021c7b9d3f8609e9afa4190f4c4062fb7a8136498875aecee615c diff --git a/dev-python/pysdl2/pysdl2-0.9.17.ebuild b/dev-python/pysdl2/pysdl2-0.9.17.ebuild new file mode 100644 index 000000000000..ab624bad6e3c --- /dev/null +++ b/dev-python/pysdl2/pysdl2-0.9.17.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_PN=PySDL2 +PYTHON_COMPAT=( python3_{10..13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python (ctypes) bindings for SDL2 libraries" +HOMEPAGE=" + https://github.com/py-sdl/py-sdl2/ + https://pypi.org/project/PySDL2/ +" + +LICENSE="|| ( public-domain CC0-1.0 ZLIB )" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# Optional deps: +# - dev-python/numpy, +# - dev-python/pillow, +# - media-libs/sdl2-* (loaded dynamically via ctypes). +# +# If a reverse dependency needs the specific module, it should +# explicitly depend on the optional module in question. You also +# probably need to explicitly require some media-libs/libsdl2 flags. +RDEPEND="media-libs/libsdl2" + +# Require all of SDL2 libraries and at least the most common subsystems +# for better test coverage. +DEPEND=" + test? ( + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + media-libs/libsdl2[joystick,sound,video] + media-libs/sdl2-gfx + media-libs/sdl2-image[gif,jpeg,png,tiff,webp] + || ( + media-libs/sdl2-mixer[flac] + media-libs/sdl2-mixer[midi] + media-libs/sdl2-mixer[mod] + media-libs/sdl2-mixer[mp3] + media-libs/sdl2-mixer[opus] + ) + media-libs/sdl2-ttf + )" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # pysdl2 was misusing libsdl2's error API. Fixed upstream already + # but it didn't land in 0.9.16. + # https://bugs.gentoo.org/916120 + # https://bugs.gentoo.org/916118 + sdl2/test/gamecontroller_test.py + sdl2/test/hidapi_test.py::test_SDL_hid_enumerate + ) + + local -x SDL_VIDEODRIVER=dummy + local -x SDL_AUDIODRIVER=dummy + local -x SDL_RENDER_DRIVER=software + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -x +} |