commit: d90098a97e05a5fb691658dc2a7bb99f659fc3ef
Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 27 07:18:49 2017 +0000
Commit: Tim Harder <radhermit <AT> gentoo <DOT> 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 @@
<email>[email protected]</email>
<name>Python</name>
</maintainer>
+ <use>
+ <flag name="midi">Enable midi support using
<pkg>media-libs/portmidi</pkg></flag>
+ </use>
</pkgmetadata>
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
+}