mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
dev-python/pysdl2: Bump to 0.9.17
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
parent
da8d28dec3
commit
022d1ce426
@ -1 +1,2 @@
|
||||
DIST PySDL2-0.9.16.tar.gz 773537 BLAKE2B 5cfe4ab3981a665fc7f7606c07a3252e58c2706e45ab41d0d6444b4d3fb1c8805b5fd67e770a8a64538d305be0013a4d599ee81f5de0c5370146edc9d4d858df SHA512 ffe7abe8e828926934677c81a42c9af794c4817144eba50c40430c150d476dea40f0b36e639b2c270cbd8e00ab5bf5b032a4c0e514255cceef8161c8d76f8cb2
|
||||
DIST pysdl2-0.9.17.tar.gz 775955 BLAKE2B 205bd6d1e6562133f77827daf77bca9f7cbb589c7454e10fba2b86526c17d7300b2e42ea83030e11703696b62c17b0d5f9c46f082535a67e16d46cc90e048d8c SHA512 ec4bf3b3d01e6c4ffa08fba032d345ec5da141a8021fa5ac98fbbde04e22911893bcd4159afb3a52e06eb178a460b451256487c9b3a3a8105448db36ba0df6b8
|
||||
|
||||
69
dev-python/pysdl2/pysdl2-0.9.17.ebuild
Normal file
69
dev-python/pysdl2/pysdl2-0.9.17.ebuild
Normal file
@ -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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user