diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-09-23 10:22:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-09-23 10:22:15 +0100 |
commit | 8b4ace9c50842c5b83401ea7b179dcab940387e1 (patch) | |
tree | 230f3135ceaace633cf93e9838b185c4a6664c2e /dev-python/pygame | |
parent | 9ee6d97c2883d42f204a533a8bc1f4562df778fb (diff) |
gentoo resync : 23.09.2020
Diffstat (limited to 'dev-python/pygame')
-rw-r--r-- | dev-python/pygame/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pygame/pygame-2.0.0_pre12.ebuild | 89 |
2 files changed, 91 insertions, 0 deletions
diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest index 7a08fac61cc0..0494d5ba2f51 100644 --- a/dev-python/pygame/Manifest +++ b/dev-python/pygame/Manifest @@ -1,7 +1,9 @@ AUX pygame-2.0.0_pre10-py39.patch 1174 BLAKE2B dda7880b7a57e62612f072ed25c9c661ca63665d94d3a8fd9bcb2d95683da80d215067e63925eb65d98b4bf13c53845b7093011da42c4403c65bb95253a6fecf SHA512 91900ab98546a5339fcf4d204e3d049de9ad9bcc929dd75fc39629d873532d9e486f35ba0236e74185e1b7298016cc419c5ca1d463af80ee7f425244b7f51ade DIST pygame-1.9.6.tar.gz 3223131 BLAKE2B a4d04c933fcad244d32bd512ef8717e60ec923f361e9e0296b5c7d57c5949d3434a040d028249c5b8f3c865ac3dcdbb32e6f0b223186678595a8625213ba2a17 SHA512 d923c554203a7c35e37921658cb4c5bf50215ab0ff4d2b869a1ee6b2e2ca31d66ec4bbde4287f5a777838ffe932cd15b993cb0224b86e43d684de61c35acbcd0 DIST pygame-2.0.0.dev10.tar.gz 5567274 BLAKE2B 7d78f260318cfabeb33f1073ae210f890d2f772e3ef302f243cca67724c6012355644ba60d4cae6de72db6dd61d320177deff6ee83dd355ec4cc33e841b565f7 SHA512 4cee7599fd8a6d31ddd66bfaad3bbb67cb167c1ae339f37e83322d810fea8746e81a191c224a0eeb6cc43a64bf1730ff0886c82f1a4f642e2e656ca9a837bf9e +DIST pygame-2.0.0.dev12.tar.gz 5598471 BLAKE2B 339e96ed7f01070c3aa4b31b587a793b43b99ac476d72a431dff09d98b95ef48c6b0d4faa20301e6db43cb2b35b13245253d86859c16d2befbd3795f8ed48b7f SHA512 f732056b3c8377326caf1d6ded6c59e8665de2ab2f6233d6d95dcc26137d67d180f8c5dc92fc22578ec5ce0ecf5a1de5080c62355d15035ab248d518cd75180f EBUILD pygame-1.9.6-r1.ebuild 2294 BLAKE2B 1bf372a3814f5d28db059250e0adfd1f039d7d594801b5b319b77e5137c25957658c6db0a963888f5737dc5850e2385fe4819bb711dab7f0fd021bdbb8375cad SHA512 23959b2a00d38297e146d11a803771e0b18a48ef605e0696f008c23c64e134e8a170f79015169de8652c1384440a7648915a44840f5ac6bcc9f1a1b74689e085 EBUILD pygame-2.0.0_pre10.ebuild 1916 BLAKE2B 48980667d10d35d8ecccab3338f3c6090f25911289a3dda92ecc11b810afdfa297b574c63a4ddd4ca6e4d5c4e688cfe49d1786f2b38865738d81d9582f120f5c SHA512 5d8d2f7679f69ead0f7070be482ddfa68aafe42be4ece4ca902489511211a6603068d4791007fb8ae238c45803dc6286ac90878e5c33f558f74364e74b1fbccb +EBUILD pygame-2.0.0_pre12.ebuild 1993 BLAKE2B 7d03da256caa54c1a6c653d36b18b4f2109a844c5b70300de5820f44746b1061309c33186521019cab3db6f611bf8f7384ca50f32be69ec5d7088cd7552b889a SHA512 d6fd335dee453927ffa70ba7c43cf72bccd7a520b112afe498cdd50390982966aa885a8d81a5c90586eaa580ec0856924568fed08193ee3dfb2c3e97430261ec EBUILD pygame-9999.ebuild 1720 BLAKE2B c08896002640462a1fa0976d69e4d1e287701d8df12a2c878062ca740138568bcff58e93813d182912a838a5a97701f178f8066030e548de3cbd7fd8ae9d563a SHA512 ac2fde281f74e87da86e1bdbc33c7f3e7c308cac506452014650d0cebc6f6f9a84d011efd6fc98c6fa204d7c148d28b23be85c1da1f0e8e8221a1fd1347175a7 MISC metadata.xml 408 BLAKE2B ae371ef164069765d0964da714a83c9898ddc190ac295c5ad5bbb6a3c45db5aa415d84ff21dbaa510e5c9852397e6b6b389684c54b67d83d675afd9b3d9a697e SHA512 a6e06c0bed59d5157166577a2dafa53f28a310c56f251bec36af077a79342c6f954fa63a3fa8d3546ca03cc9358e75eeb1ef04c6e0371e43e0b7bff51ffe35dd diff --git a/dev-python/pygame/pygame-2.0.0_pre12.ebuild b/dev-python/pygame/pygame-2.0.0_pre12.ebuild new file mode 100644 index 000000000000..1db3ee0e3d01 --- /dev/null +++ b/dev-python/pygame/pygame-2.0.0_pre12.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6..9} ) + +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/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 + midi? ( media-libs/portmidi ) + X? ( >=media-libs/libsdl2-1.2.5[opengl?,video,X] ) + !X? ( >=media-libs/libsdl2-1.2.5 )" +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= + local -x SDL_VIDEODRIVER=dummy + local -x SDL_AUDIODRIVER=disk + distutils_install_for_testing + 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 +} |