From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 34FBC138335 for ; Fri, 27 Dec 2019 11:05:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 38A70E0A49; Fri, 27 Dec 2019 11:05:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 078E9E0A44 for ; Fri, 27 Dec 2019 11:05:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 996D534DBFD for ; Fri, 27 Dec 2019 11:05:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 24E5736 for ; Fri, 27 Dec 2019 11:05:06 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1577444304.d16e686d30d8e23d5e6dcd2be7d7d2dd113a0d1d.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pygame/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pygame/pygame-1.9.6-r1.ebuild X-VCS-Directories: dev-python/pygame/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: d16e686d30d8e23d5e6dcd2be7d7d2dd113a0d1d X-VCS-Branch: master Date: Fri, 27 Dec 2019 11:05:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b963b81f-1524-40a2-b469-7be3c7ab1dc9 X-Archives-Hash: 744cd06ae24723766d32d4e82a951263 commit: d16e686d30d8e23d5e6dcd2be7d7d2dd113a0d1d Author: Pacho Ramos gentoo org> AuthorDate: Fri Dec 27 10:58:24 2019 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Fri Dec 27 10:58:24 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d16e686d dev-python/pygame: Support python 3.8, drop python2 support All reverse deps will use only python3 and those python2 consumers are dead and will be removed. Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Pacho Ramos gentoo.org> dev-python/pygame/pygame-1.9.6-r1.ebuild | 78 ++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/dev-python/pygame/pygame-1.9.6-r1.ebuild b/dev-python/pygame/pygame-1.9.6-r1.ebuild new file mode 100644 index 00000000000..89b0bbacb58 --- /dev/null +++ b/dev-python/pygame/pygame-1.9.6-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{5,6,7,8} ) + +inherit flag-o-matic distutils-r1 virtualx + +DESCRIPTION="Python bindings for SDL multimedia library" +HOMEPAGE="http://www.pygame.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~sparc ~x86" +IUSE="doc examples midi X" + +DEPEND="dev-python/numpy[${PYTHON_USEDEP}] + >=media-libs/sdl-image-1.2.2[png,jpeg] + >=media-libs/sdl-mixer-1.2.4 + >=media-libs/sdl-ttf-2.0.6 + >=media-libs/smpeg-0.4.4-r1 + midi? ( media-libs/portmidi ) + X? ( >=media-libs/libsdl-1.2.5[X,video] ) + !X? ( >=media-libs/libsdl-1.2.5 )" +RDEPEND="${DEPEND}" + +# various module import and data path issues +RESTRICT=test + +python_configure() { + PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \ + "${EPYTHON}" "${S}"/buildconfig/config.py -auto + + if ! use X; then + sed -e "s:^scrap :#&:" -i Setup || die "sed failed" + fi + + # Disable automagic dependency on PortMidi. + if ! use midi; then + sed -e "s:^pypm :#&:" -i Setup || die "sed failed" + fi +} + +python_compile() { + if [[ ${EPYTHON} == python2* ]]; then + local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} + + append-flags -fno-strict-aliasing + fi + + distutils-r1_python_compile +} + +python_test() { + PYTHONPATH="${BUILD_DIR}/lib" virtx "${EPYTHON}" -m pygame.tests +} + +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 + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins -r examples/* + fi +}