commit: 2e69cafc2545b386aa7912ec5a370a2191031b9a Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> AuthorDate: Wed Feb 14 02:53:30 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Feb 25 06:59:12 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e69cafc
dev-python/pygame_sdl2: add 8.2.0 Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me> Signed-off-by: Sam James <sam <AT> gentoo.org> dev-python/pygame_sdl2/Manifest | 1 + dev-python/pygame_sdl2/pygame_sdl2-8.2.0.ebuild | 47 +++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/dev-python/pygame_sdl2/Manifest b/dev-python/pygame_sdl2/Manifest index d74de9ad539f..1499dae5af3a 100644 --- a/dev-python/pygame_sdl2/Manifest +++ b/dev-python/pygame_sdl2/Manifest @@ -1 +1,2 @@ DIST pygame_sdl2-2.1.0+renpy8.1.3.tar.gz 4252499 BLAKE2B b8bff6e3c96e0e8b70e2a6c83278435491a29421572054cca151deca441171ca4bb14277f5a68d32f7c839094347a78ba2dbba1a432b5bcc47fd068b30ecb9de SHA512 3754a29996aa1992748d49b3d178d18e0cefdf17a63c7181027a3210f7360ac01b3a1d90691bb9789085cb8b61331118e6db93be24ea81b2e24e77e3b0de556c +DIST pygame_sdl2-2.1.0+renpy8.2.0.tar.gz 4257112 BLAKE2B 3c3f2366222e85e17486f3654fbb557e54d238c06bc26fa0b2955ee22db8479119cf2d72b7c72d1fd913b07dcee1742a15b6c7aba4e6ff83db32a0073cda50da SHA512 daa5b3a8ee58d89ed88d696394ed859da6cfe495eda9dc71d23575b312a3463c8e60cfbc85f179a8a1997e252b5af026a89e5c5056ca5e54468b94d897f59db9 diff --git a/dev-python/pygame_sdl2/pygame_sdl2-8.2.0.ebuild b/dev-python/pygame_sdl2/pygame_sdl2-8.2.0.ebuild new file mode 100644 index 000000000000..9bd5759283f4 --- /dev/null +++ b/dev-python/pygame_sdl2/pygame_sdl2-8.2.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_EXT=1 +PYTHON_COMPAT=( python3_{10..11} ) +inherit distutils-r1 + +MY_P="${PN}-2.1.0+renpy${PV}" + +DESCRIPTION="Reimplementation of portions of the pygame API using SDL2" +HOMEPAGE="https://github.com/renpy/pygame_sdl2" +SRC_URI="https://www.renpy.org/dl/${PV}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-2.1 ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# <wheel-0.41.0 wasn't installing headers correctly +# https://github.com/pypa/setuptools/issues/3997 +# <cython-3 for bug #911781 +BDEPEND=" + <dev-python/cython-3[${PYTHON_USEDEP}] + >=dev-python/wheel-0.41.0 +" +DEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] + media-libs/libjpeg-turbo:= + media-libs/libpng:0= + media-libs/libsdl2:=[video] + media-libs/sdl2-image:=[png,jpeg] + >=media-libs/sdl2-mixer-2.0.2:= + media-libs/sdl2-ttf:= +" +RDEPEND="${DEPEND}" + +python_prepare_all() { + # PyGame distribution for this version has some pregenerated files; + # we need to remove them + rm -r gen{,3,-static} || die + + distutils-r1_python_prepare_all +}