mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 21:08:35 -07:00
dev-python/pygame: version bump to 1.9.3
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -5,4 +5,7 @@
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="midi">Enable midi support using <pkg>media-libs/portmidi</pkg></flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
||||
79
dev-python/pygame/pygame-1.9.3.ebuild
Normal file
79
dev-python/pygame/pygame-1.9.3.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user