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 B36CC139694 for ; Thu, 27 Apr 2017 07:22:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 35D3A21C080; Thu, 27 Apr 2017 07:22:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F079821C080 for ; Thu, 27 Apr 2017 07:22:30 +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 5D1F73412CB for ; Thu, 27 Apr 2017 07:22:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 29E91743B for ; Thu, 27 Apr 2017 07:22:26 +0000 (UTC) From: "Tim Harder" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tim Harder" Message-ID: <1493277674.d90098a97e05a5fb691658dc2a7bb99f659fc3ef.radhermit@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/metadata.xml dev-python/pygame/pygame-1.9.3.ebuild X-VCS-Directories: dev-python/pygame/ X-VCS-Committer: radhermit X-VCS-Committer-Name: Tim Harder X-VCS-Revision: d90098a97e05a5fb691658dc2a7bb99f659fc3ef X-VCS-Branch: master Date: Thu, 27 Apr 2017 07:22:26 +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-Archives-Salt: ac44b6b1-c58e-4f43-91e8-3884fd14eb68 X-Archives-Hash: 3d6d2537370ec72d51de3b82db9253ff commit: d90098a97e05a5fb691658dc2a7bb99f659fc3ef Author: Tim Harder gentoo org> AuthorDate: Thu Apr 27 07:18:49 2017 +0000 Commit: Tim Harder gentoo org> CommitDate: Thu Apr 27 07:21:14 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d90098a9 dev-python/pygame: version bump to 1.9.3 dev-python/pygame/Manifest | 1 + dev-python/pygame/metadata.xml | 3 ++ dev-python/pygame/pygame-1.9.3.ebuild | 79 +++++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+) diff --git a/dev-python/pygame/Manifest b/dev-python/pygame/Manifest index 25f8d9bab0b..28081fc28d9 100644 --- a/dev-python/pygame/Manifest +++ b/dev-python/pygame/Manifest @@ -1 +1,2 @@ DIST pygame-1.9.2_pre20120101.tar.xz 2263028 SHA256 86d386a84a29387e98f6650edbd7fffe5b800115b69e6b15b2588c13eae56335 SHA512 1e82cf720da28d4e4213f6b7a029ab4c9dd592c3155f3d11da8272a7d81d28c54f93402383fa5fa4a4e8863dfc039062838d0317cfedde30a4455e52ce680576 WHIRLPOOL 437555ba4816e42bb745ad5ce13b7f164d5a1ff467cd7193327856b98047eeb56c1d1043c2cc75c6a0ca71ea96240df75b1dc544122034c7e4628c544f8d9486 +DIST pygame-1.9.3.tar.gz 2974541 SHA256 751021819bdc0cbe5cbd51904abb6ff9e9aee5b0e8955af02284d0e77d6c9ec2 SHA512 8920c598a97b4ff8602391517f070b67263bacb6330e13ea5d7d5432ee592a7c984fe986837b90a032da3d4e717f9df0cc99f0fb39f1cbde1b4f6a4c132feffe WHIRLPOOL 639de0f3fff185c09a145f0aab569358f92a8aca5e549e7f05005717ac081ab6f4d5c8ecd98d93030a2e0dc344913cec86093e9df9d3fe38043372c325c5bb96 diff --git a/dev-python/pygame/metadata.xml b/dev-python/pygame/metadata.xml index 9e5274c5b4a..d614a7a832a 100644 --- a/dev-python/pygame/metadata.xml +++ b/dev-python/pygame/metadata.xml @@ -5,4 +5,7 @@ python@gentoo.org Python + + Enable midi support using media-libs/portmidi + diff --git a/dev-python/pygame/pygame-1.9.3.ebuild b/dev-python/pygame/pygame-1.9.3.ebuild new file mode 100644 index 00000000000..612d762d743 --- /dev/null +++ b/dev-python/pygame/pygame-1.9.3.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) +DISTUTILS_IN_SOURCE_BUILD=1 +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 ~x86-fbsd" +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}" + +DOCS=( WHATSNEW ) + +# various module import and data path issues +RESTRICT=test + +python_configure() { + PORTMIDI_INC_PORTTIME=1 "${EPYTHON}" 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 +}