Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=bcd3140b06d2ff6a2f31c18c3427237b23377cca

commit bcd3140b06d2ff6a2f31c18c3427237b23377cca
Author: Devil505 <devil505li...@gmail.com>
Date:   Sun Jul 11 16:44:56 2010 +0200

pygame-1.9.1-1-i686
*version bump
*added patch
*fixing pkgrel (no 'release' anymore) :)

diff --git a/source/xlib-extra/pygame/FrugalBuild 
b/source/xlib-extra/pygame/FrugalBuild
index c032d29..1d35536 100644
--- a/source/xlib-extra/pygame/FrugalBuild
+++ b/source/xlib-extra/pygame/FrugalBuild
@@ -3,25 +3,27 @@
# Contributor: Edo Hikmahtiar <fires...@gmail.com>

pkgname=pygame
-pkgver=1.8.1release
-pkgrel=4
+pkgver=1.9.1
+pkgrel=1
pkgdesc="Pygame is a set of Python modules designed for writing games."
url="http://www.pygame.org/";
depends=('python' 'sdl' 'sdlimage' 'sdl_mixer' 'sdl_ttf' \
'smpeg' 'python-numeric' 'libpng>=1.4.1')
groups=('xlib-extra')
archs=('i686' 'x86_64' 'ppc')
-up2date="lynx -dump http://pygame.org/download.shtml | grep -m1 tar.gz | sed 
's/.*e-\(.*\).t.*/\1/'"
-source=(http://pygame.org/ftp/${pkgname}-${pkgver}.tar.gz)
-sha1sums=('62d2ad452a0cc1486f877d5a2ae736b6703548cc')
+up2date="Flasttar $url/download.shtml | sed 's/release//g'"
+source=(http://pygame.org/ftp/${pkgname}-${pkgver}release.tar.gz config.patch)
+sha1sums=('a45aeb0623e36ae7a1707b5f41ee6274f72ca4fa' \
+          '285815e28705d5a2aea53c9d952d35fddf10dd13')
export CFLAGS="$CFLAGS -fno-strict-aliasing"
Finclude python

build()
{
-       Fbuild
-       # Fix permission on freesansbold.ttf (Bug #3293)
-       chmod 755 ${Fdestdir}/$_F_python_libdir/pygame/freesansbold.ttf
+       Fcd $pkgname-${pkgver}release
+       Fpatchall
+       python config.py -auto || Fdie
+       python setup.py install --root=${Fdestdir} --prefix=/usr  || Fdie
}

# optimization OK
diff --git a/source/xlib-extra/pygame/config.patch 
b/source/xlib-extra/pygame/config.patch
new file mode 100644
index 0000000..b3dab16
--- /dev/null
+++ b/source/xlib-extra/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?"""):
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to