You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.1 KiB
48 lines
1.1 KiB
5 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
7 years ago
|
|
||
5 years ago
|
PYTHON_COMPAT=( python{2_7,3_6} )
|
||
7 years ago
|
inherit distutils-r1
|
||
|
|
||
|
PYSDL="${PN}-2.1.0"
|
||
|
|
||
|
DESCRIPTION="Reimplementation of portions of the pygame API using SDL2"
|
||
|
HOMEPAGE="https://github.com/renpy/pygame_sdl2"
|
||
4 years ago
|
SRC_URI="https://www.renpy.org/dl/${PV}/${PYSDL}-for-renpy-${PV}.tar.gz"
|
||
7 years ago
|
|
||
|
LICENSE="LGPL-2.1 ZLIB"
|
||
|
SLOT="0"
|
||
5 years ago
|
KEYWORDS="amd64 x86"
|
||
7 years ago
|
IUSE=""
|
||
|
|
||
5 years ago
|
BDEPEND="
|
||
7 years ago
|
dev-python/cython[${PYTHON_USEDEP}]"
|
||
5 years ago
|
DEPEND="
|
||
4 years ago
|
$(python_gen_cond_dep '
|
||
|
dev-python/numpy[${PYTHON_USEDEP}]
|
||
|
' -3)
|
||
|
$(python_gen_cond_dep '
|
||
|
dev-python/numpy-python2[${PYTHON_USEDEP}]
|
||
|
' -2)
|
||
5 years ago
|
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:=
|
||
|
virtual/jpeg:0"
|
||
|
RDEPEND="${DEPEND}"
|
||
7 years ago
|
|
||
|
S=${WORKDIR}/${PYSDL}-for-renpy-${PV}
|
||
|
|
||
5 years ago
|
PATCHES=( "${FILESDIR}/pygame_sdl2-6.99.12.4-mixer.patch" )
|
||
|
|
||
7 years ago
|
# PyGame distribution for this version has some pregenerated files;
|
||
|
# we need to remove them
|
||
|
python_prepare_all()
|
||
|
{
|
||
5 years ago
|
rm -r gen{,3} || die
|
||
7 years ago
|
distutils-r1_python_prepare_all
|
||
|
}
|