commit:     d10d862c530f8b680bf1422f6d07a28f9cc41e70
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 11 07:03:30 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Oct 11 07:56:51 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d10d862c

dev-python/pygame: Bump to 2.0.2

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pygame/Manifest            |  1 +
 dev-python/pygame/pygame-2.0.2.ebuild | 91 +++++++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+)

diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
index 938b4edaeb9..2758cb912ab 100644
--- a/dev-python/pygame/Manifest
+++ b/dev-python/pygame/Manifest
@@ -2,3 +2,4 @@ DIST pygame-1.9.6.tar.gz 3223131 BLAKE2B 
a4d04c933fcad244d32bd512ef8717e60ec923f
 DIST pygame-2.0.0.dev10.tar.gz 5567274 BLAKE2B 
7d78f260318cfabeb33f1073ae210f890d2f772e3ef302f243cca67724c6012355644ba60d4cae6de72db6dd61d320177deff6ee83dd355ec4cc33e841b565f7
 SHA512 
4cee7599fd8a6d31ddd66bfaad3bbb67cb167c1ae339f37e83322d810fea8746e81a191c224a0eeb6cc43a64bf1730ff0886c82f1a4f642e2e656ca9a837bf9e
 DIST pygame-2.0.0.tar.gz 5522621 BLAKE2B 
49773979af53595d3ff2db1a18e4bcd217e26db3ec28d6129d2a588f23a1bd5326fa79fab32c25aa796738cde0e68f5741bee58f62432e86f89cd49ee17a8f14
 SHA512 
3f65924d0e1d2863b84118a4e468b521a289e2cf174405c6f3ee2b2a2ed399cde7f9f310d57c4166351f84caaea02dd7408ee852dbcee7c205bb2955b6078fda
 DIST pygame-2.0.1.tar.gz 5536907 BLAKE2B 
b27cb9001499a00da62dac0486a72079ff4e60ca609be444b04f547cb2372090da91d2670307ce7068b964458e6ac1284402439bb7809c9735135d5e93a71d78
 SHA512 
1535a872c43e5f75acdfa7d325fcfa0f0f826e18602b28b228cfdbe068a382678c21568d80873f7af4f0b318e693adb38afa4d632f8294f716a47188abe5245a
+DIST pygame-2.0.2.tar.gz 6309459 BLAKE2B 
0cb23b4226d8d86f938cba08b67ab3bd847c9e4122f5f6cce4d8810b239df672ab282e1b77dd7d71423f805c7c0418e54050347dfb9e506b799eb8e0b4f16856
 SHA512 
2cef4669e5bd81759c9886293ebc1b82e1ed3b4576a3632437f66cb353af330e15dd39e7378f2be8fd25838f202529dc550208a031aec77e1d05443a070638c8

diff --git a/dev-python/pygame/pygame-2.0.2.ebuild 
b/dev-python/pygame/pygame-2.0.2.ebuild
new file mode 100644
index 00000000000..1ee94dd33f0
--- /dev/null
+++ b/dev-python/pygame/pygame-2.0.2.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+inherit distutils-r1
+
+MY_PV=${PV/_pre/.dev}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Python bindings for SDL multimedia library"
+HOMEPAGE="https://www.pygame.org/";
+SRC_URI="
+       
https://github.com/pygame/pygame/releases/download/${MY_PV}/${MY_P}.tar.gz";
+S=${WORKDIR}/${MY_P}
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc examples midi opengl test X"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
+       media-libs/freetype
+       media-libs/libpng:0=
+       >=media-libs/sdl2-image-1.2.2
+       >=media-libs/sdl2-mixer-1.2.4
+       >=media-libs/sdl2-ttf-2.0.6
+       >=media-libs/smpeg2-0.4.4-r1
+       virtual/jpeg
+       midi? ( media-libs/portmidi )
+       X? ( >=media-libs/libsdl2-1.2.5[opengl?,threads,video,X] )
+       !X? ( >=media-libs/libsdl2-1.2.5[threads] )"
+DEPEND="${RDEPEND}
+       test? (
+               media-libs/sdl2-image[gif,jpeg,png]
+               media-libs/sdl2-mixer[mp3,vorbis,wav]
+       )"
+# fontconfig used for fc-list
+RDEPEND+="
+       media-libs/fontconfig"
+# util-linux provides script
+BDEPEND="
+       test? (
+               media-libs/fontconfig
+               sys-apps/util-linux
+       )"
+
+src_prepare() {
+       if ! use midi; then
+               rm test/midi_test.py || die
+       fi
+       distutils-r1_src_prepare
+}
+
+python_configure() {
+       PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
+               "${EPYTHON}" "${S}"/buildconfig/config.py -auto || die
+
+       # Disable automagic dependency on PortMidi.
+       if ! use midi; then
+               sed -e "s:^pypm :#&:" -i Setup || die "sed failed"
+       fi
+}
+
+python_test() {
+       local -x PYTHONPATH=${BUILD_DIR}/install/lib
+       local -x SDL_VIDEODRIVER=dummy
+       local -x SDL_AUDIODRIVER=disk
+       distutils_install_for_testing --via-root
+       script -eqc "${EPYTHON} -m pygame.tests" || die
+}
+
+python_install() {
+       distutils-r1_python_install
+
+       # Bug #497720
+       rm -fr "${D}"$(python_get_sitedir)/pygame/{docs,examples,tests}/ || die
+}
+
+python_install_all() {
+       distutils-r1_python_install_all
+
+       if use doc; then
+               docinto html
+               dodoc -r docs/*
+       fi
+
+       use examples && dodoc -r examples
+}

Reply via email to