diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-02-26 00:03:23 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-02-26 00:03:23 +0000 |
commit | db90e4fa64b417225cda496e0f2c9f241e2ca2f8 (patch) | |
tree | ec34dc42d64bab8866d86f2f3e6e644a4917c963 /dev-python/pygame | |
parent | Clean up old revisions. (diff) | |
download | gentoo-2-db90e4fa64b417225cda496e0f2c9f241e2ca2f8.tar.gz gentoo-2-db90e4fa64b417225cda496e0f2c9f241e2ca2f8.tar.bz2 gentoo-2-db90e4fa64b417225cda496e0f2c9f241e2ca2f8.zip |
convert to distutils-r1
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'dev-python/pygame')
-rw-r--r-- | dev-python/pygame/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/pygame/pygame-1.9.2_pre20120101-r2.ebuild | 83 |
2 files changed, 90 insertions, 1 deletions
diff --git a/dev-python/pygame/ChangeLog b/dev-python/pygame/ChangeLog index 6f3c2764d554..93ccd2a314a0 100644 --- a/dev-python/pygame/ChangeLog +++ b/dev-python/pygame/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/pygame # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pygame/ChangeLog,v 1.91 2013/01/01 19:29:29 hasufell Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygame/ChangeLog,v 1.92 2013/02/26 00:03:23 hasufell Exp $ + +*pygame-1.9.2_pre20120101-r2 (26 Feb 2013) + + 26 Feb 2013; Julian Ospald <hasufell@gentoo.org> + +pygame-1.9.2_pre20120101-r2.ebuild: + convert to distutils-r1 01 Jan 2013; Julian Ospald <hasufell@gentoo.org> pygame-1.9.2_pre20120101-r1.ebuild: diff --git a/dev-python/pygame/pygame-1.9.2_pre20120101-r2.ebuild b/dev-python/pygame/pygame-1.9.2_pre20120101-r2.ebuild new file mode 100644 index 000000000000..3203ac0c72b8 --- /dev/null +++ b/dev-python/pygame/pygame-1.9.2_pre20120101-r2.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygame/pygame-1.9.2_pre20120101-r2.ebuild,v 1.1 2013/02/26 00:03:23 hasufell Exp $ + +EAPI=5 +PYTHON_COMPAT=( python{2_5,2_6,2_7,3_2,3_3} ) +DISTUTILS_IN_SOURCE_BUILD=1 +inherit flag-o-matic distutils-r1 virtualx + +DESCRIPTION="Python bindings for SDL multimedia library" +HOMEPAGE="http://www.pygame.org/" +if [[ "${PV}" == *_pre* ]]; then + SRC_URI="http://people.apache.org/~Arfrever/gentoo/${P}.tar.xz" +else + SRC_URI="http://www.pygame.org/ftp/pygame-${PV}release.tar.gz" +fi + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd" +IUSE="doc examples 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 + X? ( >=media-libs/libsdl-1.2.5[X,video] ) + !X? ( >=media-libs/libsdl-1.2.5 )" +RDEPEND="${DEPEND}" + +if [[ "${PV}" != *_pre* ]]; then + S="${WORKDIR}/${P}release" +fi + +DOCS=( WHATSNEW ) + +python_configure() { + "${EPYTHON}" config.py -auto + + if ! use X; then + sed -e "s:^scrap :#&:" -i Setup || die "sed failed" + fi + + # Disable automagic dependency on PortMidi. + sed -e "s:^pypm :#&:" -i Setup || die "sed failed" + + sed -i -e "s/import _camera/from pygame &/g" lib/camera.py || die #415593 +} + +python_compile() { + if [[ ${EPYTHON} == python2* ]]; then + local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} + + append-flags -fno-strict-aliasing + fi + + distutils-r1_python_compile +} + +python_test() { + VIRTUALX_COMMAND="${PYTHON}" virtualmake run_tests.py +} + +python_install() { + distutils-r1_python_install + + rm -fr "${D}$(python_get_sitedir)/pygame/examples" + rm -fr "${D}$(python_get_sitedir)/pygame/tests" +} + +python_install_all() { + distutils-r1_python_install_all + + if use doc; then + dohtml -r docs/* + fi + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins -r examples/* + fi +} |