Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pygame_sdl2/
Date: Sat, 02 May 2020 15:23:03
Message-Id: 1588432849.812280c98dd24a40dda1276bbfd2d31bd1ee6cda.bircoph@gentoo
1 commit: 812280c98dd24a40dda1276bbfd2d31bd1ee6cda
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 2 15:20:49 2020 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Sat May 2 15:20:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=812280c9
7
8 dev-python/pygame_sdl2: enable python 3.7 and 3.8 support
9
10 Builds and works fine with python 3.7.7-r2 and 3.8.2-r2 on ~amd64.
11
12 Closes: https://bugs.gentoo.org/719410
13 Package-Manager: Portage-2.3.82, Repoman-2.3.20
14 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
15
16 .../pygame_sdl2/pygame_sdl2-6.99.12.4-r3.ebuild | 42 ++++++++++++++++++++++
17 1 file changed, 42 insertions(+)
18
19 diff --git a/dev-python/pygame_sdl2/pygame_sdl2-6.99.12.4-r3.ebuild b/dev-python/pygame_sdl2/pygame_sdl2-6.99.12.4-r3.ebuild
20 new file mode 100644
21 index 00000000000..87e4c044469
22 --- /dev/null
23 +++ b/dev-python/pygame_sdl2/pygame_sdl2-6.99.12.4-r3.ebuild
24 @@ -0,0 +1,42 @@
25 +# Copyright 1999-2020 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=7
29 +
30 +PYTHON_COMPAT=( python{2_7,3_6,3_7,3_8} )
31 +inherit distutils-r1
32 +
33 +PYSDL="${PN}-2.1.0"
34 +
35 +DESCRIPTION="Reimplementation of portions of the pygame API using SDL2"
36 +HOMEPAGE="https://github.com/renpy/pygame_sdl2"
37 +SRC_URI="http://www.renpy.org/dl/${PV}/${PYSDL}-for-renpy-${PV}.tar.gz"
38 +
39 +LICENSE="LGPL-2.1 ZLIB"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~x86"
42 +IUSE=""
43 +
44 +BDEPEND="
45 + dev-python/cython[${PYTHON_USEDEP}]"
46 +DEPEND="
47 + dev-python/numpy[${PYTHON_USEDEP}]
48 + media-libs/libpng:0=
49 + media-libs/libsdl2:=[video]
50 + media-libs/sdl2-image:=[png,jpeg]
51 + >=media-libs/sdl2-mixer-2.0.2:=
52 + media-libs/sdl2-ttf:=
53 + virtual/jpeg:0"
54 +RDEPEND="${DEPEND}"
55 +
56 +S=${WORKDIR}/${PYSDL}-for-renpy-${PV}
57 +
58 +PATCHES=( "${FILESDIR}/pygame_sdl2-6.99.12.4-mixer.patch" )
59 +
60 +# PyGame distribution for this version has some pregenerated files;
61 +# we need to remove them
62 +python_prepare_all()
63 +{
64 + rm -r gen{,3} || die
65 + distutils-r1_python_prepare_all
66 +}