diff --git a/dev-python/pysdl3/Manifest b/dev-python/pysdl3/Manifest index 29ede0172c..7c6b9ebc8b 100644 --- a/dev-python/pysdl3/Manifest +++ b/dev-python/pysdl3/Manifest @@ -1,2 +1,3 @@ DIST pysdl3-0.9.8b7.tar.gz 1416984 BLAKE2B 3fc870524bdb88cea14cd297e453a61c33c28e16b1ff56963395f8f29737310b142ab9d8e27f8c4449e44501d351605946a16239729bb290d0cf371139ea6093 SHA512 13bf70289bb7842b11b195836807f0e0581620ad4c0544389a750023a52c2901d8e21a94621e0ae1c005249b9ee22d85b6db8064056363154f85eeb9f7af9ab3 DIST pysdl3-0.9.8b8.tar.gz 1417014 BLAKE2B d7218ccca34069926e10d76339fdf1268599ada6abd3e24ae4fb50425f7a568b204242e1d1f14022e56c4f9c1299297c038a5b6c556f95fdc4aab2226f47f033 SHA512 ca6116534f863dd9df38c4261244bfdca2d418e461d26bf50bec2de4179ad3982c42c2a8c85b6658ff51f5c047bb0349a53513d6f076130ba5949c5d9b01418f +DIST pysdl3-0.9.8b9.tar.gz 1417052 BLAKE2B a57a2b9506239e9a74dbd55c3bed9ba28948030be41aa8b3decb4c80ad34ee60a334b240a78c0929fd1723a446286f8321bc829346ae26cf5487cd6065f2d35f SHA512 bb1cbb97c6394542726f7f7a12c5b700a4816520eeba5cb281d17cbd3dc04bcb575acb19296d1145b8c00b92bda2593c5dd9940c620413cab3e10dca7d73d46b diff --git a/dev-python/pysdl3/pysdl3-0.9.8_beta9.ebuild b/dev-python/pysdl3/pysdl3-0.9.8_beta9.ebuild new file mode 100644 index 0000000000..81d0c72602 --- /dev/null +++ b/dev-python/pysdl3/pysdl3-0.9.8_beta9.ebuild @@ -0,0 +1,48 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{12..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A pure Python wrapper for SDL3" +HOMEPAGE=" + https://pypi.org/project/pysdl3/ + https://github.com/Aermoss/PySDL3 +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=" + dev-python/aiohttp[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] +" + +RDEPEND=" + media-libs/libsdl3 + ${DEPEND} +" + +src_install() { + distutils-r1_src_install + + cat - > 99pysdl3 <<-EOF + SDL_DISABLE_METADATA=1 + SDL_DOC_GENERATOR=0 + SDL_BINARY_PATH=/usr/$(get_libdir) + EOF + + # Workaround for https://github.com/Aermoss/PySDL3/issues/27 + doenvd 99pysdl3 +} + +python_test() { + SDL_DISABLE_METADATA=1 SDL_DOC_GENERATOR=0 SDL_BINARY_PATH="/usr/$(get_libdir)" \ + ${EPYTHON} -c 'import tests' || die +}