mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 03:23:20 -04:00
dev-python/pysdl3: add 0.9.8_beta9
Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
48
dev-python/pysdl3/pysdl3-0.9.8_beta9.ebuild
Normal file
48
dev-python/pysdl3/pysdl3-0.9.8_beta9.ebuild
Normal 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..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
|
||||
}
|
||||
Reference in New Issue
Block a user