mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
- Update to 8.2.3 - Test and update PYTHON_COMPAT - Fix build with cython-3 (#911781) Closes: https://bugs.gentoo.org/911781 Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
48 lines
1.1 KiB
Bash
48 lines
1.1 KiB
Bash
# 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..13} )
|
|
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"
|
|
|
|
PATCHES=( "${FILESDIR}/${PN}-8.2.3-cython-3.patch" )
|
|
|
|
# <wheel-0.41.0 wasn't installing headers correctly
|
|
# https://github.com/pypa/setuptools/issues/3997
|
|
BDEPEND="
|
|
dev-python/cython[${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
|
|
}
|