dev-python/pysdl3: new package, add 0.9.8_beta1

Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
David Roman
2025-05-03 20:34:38 +02:00
parent 53e8ad67d3
commit 1b6df8a935
3 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST pysdl3-0.9.8b1.tar.gz 1419632 BLAKE2B 15e5e6fd35eeb4c4349f9c9616c86a36130da05a31303d9fcc2d2508208f7f5075146404306a61143e7e4fa0d3684a5b34aee05eaa481588a8a7f1c8ff485fe2 SHA512 519cca8833c9e68ad33da3bc5009689d6d22766a0511d61c52486a00fddf9e8677d583edfe6b51a454fed98125e26747c4b5485ac8fc737b3d0d5124e4a4a64a

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>davidroman96@gmail.com</email>
<name>David Roman</name>
</maintainer>
<upstream>
<remote-id type="github">Aermoss/PySDL3</remote-id>
<remote-id type="pypi">pysdl3</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -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..13} )
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
}