From 738cad56ea97abb6503b671cb3288b20c1b8ae7d Mon Sep 17 00:00:00 2001 From: chaves Date: Tue, 11 Jan 2011 23:15:48 +0000 Subject: [PATCH] 'python-pygame' imported from testing. --- python-pygame/ChangeLog | 27 +++++++++++++++++++++++++ python-pygame/PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++ python-pygame/config.patch | 26 +++++++++++++++++++++++++ 3 files changed, 93 insertions(+) create mode 100644 python-pygame/ChangeLog create mode 100644 python-pygame/PKGBUILD create mode 100644 python-pygame/config.patch diff --git a/python-pygame/ChangeLog b/python-pygame/ChangeLog new file mode 100644 index 000000000..6673c0713 --- /dev/null +++ b/python-pygame/ChangeLog @@ -0,0 +1,27 @@ + +2009-08-06 Douglas Soares de Andrade + + * Updated to: 1.9.1 + +2009-08-03 Douglas Soares de Andrade + + * Adding the examples folder + +2009-08-01 Douglas Soares de Andrade + + * Updated for x86_64: 1.9.0 + +2008-08-06 Eric Belanger + + * python-pygame 1.8.1-2 + * Fixed file permissions (close FS#11082) + +2008-07-31 Douglas Soares de Andrade + + * Updated for i686: 1.8.1 + +2008-03-31 Eric Belanger + + * python-pygame 1.8.0-1 + * Upstream update + * Added ChangeLog diff --git a/python-pygame/PKGBUILD b/python-pygame/PKGBUILD new file mode 100644 index 000000000..24a2bd71c --- /dev/null +++ b/python-pygame/PKGBUILD @@ -0,0 +1,40 @@ +# +# Chakra Packages for Chakra, part of chakra-project.org +# +# maintainer (x86_64): Daniele Cocca + +# include global config +source ../_buildscripts/${current_repo}-${_arch}-cfg.conf + +pkgname=python-pygame +pkgver=1.9.1 +pkgrel=4 +pkgdesc="Python game library" +arch=('i686' 'x86_64') +url="http://www.pygame.org/" +license=('LGPL') +depends=('python2' 'sdl_mixer' 'libvorbis' 'sdl_ttf' 'sdl_image' 'smpeg') +replaces=('pygame') +provides=('pygame') +changelog=ChangeLog +source=(http://pygame.org/ftp/pygame-${pkgver}release.tar.gz 'config.patch') +md5sums=('1c4cdc708d17c8250a2d78ef997222fc' 'aaa668f3cd710d8604114501ea6a6f48') +sha1sums=('a45aeb0623e36ae7a1707b5f41ee6274f72ca4fa' '285815e28705d5a2aea53c9d952d35fddf10dd13') + +build() { + cd "${srcdir}/pygame-${pkgver}release" + patch -Np0 -i "${srcdir}/config.patch" + python2 config.py -auto +} + +package() { + cd "${srcdir}/pygame-${pkgver}release" + python2 setup.py install --root="${pkgdir}" --prefix=/usr + + # Copying the examples and tests + cp -R examples lib/* "${pkgdir}/usr/lib/python2.7/site-packages/pygame" + cp -R test/* "${pkgdir}/usr/lib/python2.7/site-packages/pygame/tests" + + # Fixing permissions + chmod 644 "${pkgdir}"/usr/include/python2.7/pygame/* +} diff --git a/python-pygame/config.patch b/python-pygame/config.patch new file mode 100644 index 000000000..b3dab162c --- /dev/null +++ b/python-pygame/config.patch @@ -0,0 +1,26 @@ +Index: config_unix.py +=================================================================== +--- config_unix.py (revision 2567) ++++ config_unix.py (working copy) +@@ -174,7 +174,7 @@ + + for d in DEPS[1:]: + if not d.found: +- if not confirm(""" ++ if "-auto" not in sys.argv and not confirm(""" + Warning, some of the pygame dependencies were not found. Pygame can still + compile and install, but games that depend on those missing dependencies + will not run. Would you like to continue the configuration?"""): +Index: config_msys.py +=================================================================== +--- config_msys.py (revision 2567) ++++ config_msys.py (working copy) +@@ -283,7 +283,7 @@ + + for d in DEPS[1:]: + if not d.found: +- if not confirm(""" ++ if "-auto" not in sys.argv and not confirm(""" + Warning, some of the pygame dependencies were not found. Pygame can still + compile and install, but games that depend on those missing dependencies + will not run. Would you like to continue the configuration?"""):