From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1218016-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 082CF138359 for <garchives@archives.gentoo.org>; Tue, 27 Oct 2020 21:49:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 281F1E08EB; Tue, 27 Oct 2020 21:49:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ECF38E08EB for <gentoo-commits@lists.gentoo.org>; Tue, 27 Oct 2020 21:49:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E00C2340D09 for <gentoo-commits@lists.gentoo.org>; Tue, 27 Oct 2020 21:49:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7531F3B3 for <gentoo-commits@lists.gentoo.org>; Tue, 27 Oct 2020 21:49:25 +0000 (UTC) From: "Michał Górny" <mgorny@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" <mgorny@gentoo.org> Message-ID: <1603835361.7293966644209687c4da81fe3b1821c4726b212d.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pygame/Manifest dev-python/pygame/pygame-2.0.0_pre24.ebuild X-VCS-Directories: dev-python/pygame/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7293966644209687c4da81fe3b1821c4726b212d X-VCS-Branch: master Date: Tue, 27 Oct 2020 21:49:25 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b680b8c4-3a99-41f3-a61f-a8ccd76c2514 X-Archives-Hash: 4e6fe77369d3137414d65d725884d0b8 commit: 7293966644209687c4da81fe3b1821c4726b212d Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Tue Oct 27 21:05:11 2020 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Oct 27 21:49:21 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72939666 dev-python/pygame: Bump to 2.0.0.dev24 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/pygame/Manifest | 1 + dev-python/pygame/pygame-2.0.0_pre24.ebuild | 91 +++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest index 3c80bad6d53..e262a8fbf4a 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.dev18.tar.gz 5591175 BLAKE2B 3479e9161e4dc5f00123f359b29f5c133020578bd09fc972f3f2d9e55b1700f4ac5eccc904524e98fe827fa7ed871db130da1f7b9aa8a67da98f42562f2ee766 SHA512 dfa8ac023e5da1688825281dd06e22aa59fa7061dcf17b8ec1c8c84b2bda7e27d39a97be3375d9ccb15aa50a0096be74ef6c80614e5d71729157712463140af1 DIST pygame-2.0.0.dev22.tar.gz 5596946 BLAKE2B 788a2e328d456198b032226f10b7d0686b7e862bf0106334ed3e26150ece43a1a9a9cbdc4f72f33e27d52e9f7c5e063292170eba9c07213474ecaf295280185a SHA512 2809f101dce256143a57f5b47aac2ceb3c2646301179c37e7545672784a7f8dfd74565d1f6a45c394f59bcfcef4a52473160bf94b494db79a982490a7ac19fd8 +DIST pygame-2.0.0.dev24.tar.gz 5598687 BLAKE2B d46ea0112f5a47c9721e16d26d42ef7088a498a9136577a4348271f269a1f4622ba7746efd71fe20b3930e46bbeb2569b9b650511b9a682f9ea688793493bdf7 SHA512 d75b3f49bdaee9b409acf2a075c068cb8d50e5e8e7101f5b79e2abd3db4d09b9eee5c9027177cabf6b71b5dab7f6c412c77caa535c28369e46e347f5c516d59f diff --git a/dev-python/pygame/pygame-2.0.0_pre24.ebuild b/dev-python/pygame/pygame-2.0.0_pre24.ebuild new file mode 100644 index 00000000000..a43bd4b4223 --- /dev/null +++ b/dev-python/pygame/pygame-2.0.0_pre24.ebuild @@ -0,0 +1,91 @@ +# 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?,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 + esetup.py install \ + --root="${BUILD_DIR}"/install \ + --install-lib=lib + 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 +}