Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/
Date: Fri, 25 Dec 2020 09:17:20
Message-Id: 1608885467.4b8fe39708326306abffd297649f15a871e34cdf.mgorny@gentoo
1 commit: 4b8fe39708326306abffd297649f15a871e34cdf
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 25 08:32:56 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 25 08:37:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b8fe397
7
8 dev-python/pygame: Bump to 2.0.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pygame/Manifest | 1 +
13 dev-python/pygame/pygame-2.0.1.ebuild | 89 +++++++++++++++++++++++++++++++++++
14 2 files changed, 90 insertions(+)
15
16 diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest
17 index f03c9588b08..938b4edaeb9 100644
18 --- a/dev-python/pygame/Manifest
19 +++ b/dev-python/pygame/Manifest
20 @@ -1,3 +1,4 @@
21 DIST pygame-1.9.6.tar.gz 3223131 BLAKE2B a4d04c933fcad244d32bd512ef8717e60ec923f361e9e0296b5c7d57c5949d3434a040d028249c5b8f3c865ac3dcdbb32e6f0b223186678595a8625213ba2a17 SHA512 d923c554203a7c35e37921658cb4c5bf50215ab0ff4d2b869a1ee6b2e2ca31d66ec4bbde4287f5a777838ffe932cd15b993cb0224b86e43d684de61c35acbcd0
22 DIST pygame-2.0.0.dev10.tar.gz 5567274 BLAKE2B 7d78f260318cfabeb33f1073ae210f890d2f772e3ef302f243cca67724c6012355644ba60d4cae6de72db6dd61d320177deff6ee83dd355ec4cc33e841b565f7 SHA512 4cee7599fd8a6d31ddd66bfaad3bbb67cb167c1ae339f37e83322d810fea8746e81a191c224a0eeb6cc43a64bf1730ff0886c82f1a4f642e2e656ca9a837bf9e
23 DIST pygame-2.0.0.tar.gz 5522621 BLAKE2B 49773979af53595d3ff2db1a18e4bcd217e26db3ec28d6129d2a588f23a1bd5326fa79fab32c25aa796738cde0e68f5741bee58f62432e86f89cd49ee17a8f14 SHA512 3f65924d0e1d2863b84118a4e468b521a289e2cf174405c6f3ee2b2a2ed399cde7f9f310d57c4166351f84caaea02dd7408ee852dbcee7c205bb2955b6078fda
24 +DIST pygame-2.0.1.tar.gz 5536907 BLAKE2B b27cb9001499a00da62dac0486a72079ff4e60ca609be444b04f547cb2372090da91d2670307ce7068b964458e6ac1284402439bb7809c9735135d5e93a71d78 SHA512 1535a872c43e5f75acdfa7d325fcfa0f0f826e18602b28b228cfdbe068a382678c21568d80873f7af4f0b318e693adb38afa4d632f8294f716a47188abe5245a
25
26 diff --git a/dev-python/pygame/pygame-2.0.1.ebuild b/dev-python/pygame/pygame-2.0.1.ebuild
27 new file mode 100644
28 index 00000000000..8b75a6b5e7f
29 --- /dev/null
30 +++ b/dev-python/pygame/pygame-2.0.1.ebuild
31 @@ -0,0 +1,89 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +PYTHON_COMPAT=( python3_{6..9} )
37 +
38 +inherit distutils-r1
39 +
40 +MY_PV=${PV/_pre/.dev}
41 +MY_P=${PN}-${MY_PV}
42 +
43 +DESCRIPTION="Python bindings for SDL multimedia library"
44 +HOMEPAGE="https://www.pygame.org/"
45 +SRC_URI="
46 + https://github.com/pygame/pygame/releases/download/${MY_PV}/${MY_P}.tar.gz"
47 +S=${WORKDIR}/${MY_P}
48 +
49 +LICENSE="LGPL-2.1"
50 +SLOT="0"
51 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
52 +IUSE="doc examples midi opengl test X"
53 +RESTRICT="!test? ( test )"
54 +
55 +RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
56 + media-libs/freetype
57 + >=media-libs/sdl2-image-1.2.2
58 + >=media-libs/sdl2-mixer-1.2.4
59 + >=media-libs/sdl2-ttf-2.0.6
60 + >=media-libs/smpeg2-0.4.4-r1
61 + midi? ( media-libs/portmidi )
62 + X? ( >=media-libs/libsdl2-1.2.5[opengl?,threads,video,X] )
63 + !X? ( >=media-libs/libsdl2-1.2.5[threads] )"
64 +DEPEND="${RDEPEND}
65 + test? (
66 + media-libs/sdl2-image[gif,jpeg,png]
67 + media-libs/sdl2-mixer[mp3,vorbis,wav]
68 + )"
69 +# fontconfig used for fc-list
70 +RDEPEND+="
71 + media-libs/fontconfig"
72 +# util-linux provides script
73 +BDEPEND="
74 + test? (
75 + media-libs/fontconfig
76 + sys-apps/util-linux
77 + )"
78 +
79 +src_prepare() {
80 + if ! use midi; then
81 + rm test/midi_test.py || die
82 + fi
83 + distutils-r1_src_prepare
84 +}
85 +
86 +python_configure() {
87 + PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
88 + "${EPYTHON}" "${S}"/buildconfig/config.py -auto || die
89 +
90 + # Disable automagic dependency on PortMidi.
91 + if ! use midi; then
92 + sed -e "s:^pypm :#&:" -i Setup || die "sed failed"
93 + fi
94 +}
95 +
96 +python_test() {
97 + local -x PYTHONPATH=${BUILD_DIR}/install/lib
98 + local -x SDL_VIDEODRIVER=dummy
99 + local -x SDL_AUDIODRIVER=disk
100 + distutils_install_for_testing --via-root
101 + script -eqc "${EPYTHON} -m pygame.tests" || die
102 +}
103 +
104 +python_install() {
105 + distutils-r1_python_install
106 +
107 + # Bug #497720
108 + rm -fr "${D}"$(python_get_sitedir)/pygame/{docs,examples,tests}/ || die
109 +}
110 +
111 +python_install_all() {
112 + distutils-r1_python_install_all
113 +
114 + if use doc; then
115 + docinto html
116 + dodoc -r docs/*
117 + fi
118 +
119 + use examples && dodoc -r examples
120 +}