wok-current rev 10833
python-pygame: split into python-pygame-dev (make childsplay dep smaller for a kids flavor)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Jun 07 22:36:45 2011 +0200 (2011-06-07) |
parents | 4b5d992717d2 |
children | cc669956b01c |
files | python-pygame-dev/receipt python-pygame/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/python-pygame-dev/receipt Tue Jun 07 22:36:45 2011 +0200 1.3 @@ -0,0 +1,21 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="python-pygame-dev" 1.7 +VERSION="1.9.1release" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="Python game development files." 1.10 +MAINTAINER="claudinei@slitaz.org" 1.11 +WEB_SITE="http://www.pygame.org/" 1.12 +WANTED="python-pygame" 1.13 + 1.14 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.15 +genpkg_rules() 1.16 +{ 1.17 + PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') 1.18 + mkdir -p $fs/usr/lib/$PYTHON_LIB/site-packages/pygame 1.19 + cp -a $install/usr/include $fs/usr 1.20 + cp -a $install/usr/lib/$PYTHON_LIB/site-packages/pygame/examples \ 1.21 + $fs/usr/lib/$PYTHON_LIB/site-packages/pygame 1.22 + cp -a $install/usr/lib/$PYTHON_LIB/site-packages/pygame/tests \ 1.23 + $fs/usr/lib/$PYTHON_LIB/site-packages/pygame 1.24 +}
2.1 --- a/python-pygame/receipt Tue Jun 07 21:56:16 2011 +0200 2.2 +++ b/python-pygame/receipt Tue Jun 07 22:36:45 2011 +0200 2.3 @@ -4,10 +4,10 @@ 2.4 SOURCE="pygame" 2.5 VERSION="1.9.1release" 2.6 CATEGORY="development" 2.7 -SHORT_DESC="Python game development." 2.8 +SHORT_DESC="Python game library." 2.9 MAINTAINER="claudinei@slitaz.org" 2.10 TARBALL="$SOURCE-$VERSION.tar.gz" 2.11 -WEB_SITE="http://www.pygame.org" 2.12 +WEB_SITE="http://www.pygame.org/" 2.13 WGET_URL="$WEB_SITE/ftp/$TARBALL" 2.14 2.15 DEPENDS="python libsdl libsdl-image libsdl-mixer libsdl-ttf python-numpy \ 2.16 @@ -29,13 +29,15 @@ 2.17 { 2.18 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') 2.19 mkdir -p $fs/usr 2.20 - cp -a $_pkg/usr/lib $fs/usr 2.21 + cp -a $install/usr/lib $fs/usr 2.22 chmod 644 $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/freesansbold.ttf 2.23 - cp -a $_pkg/usr/include $fs/usr 2.24 + # examples and tests in python-pygame-dev 2.25 + rm -rf $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/examples 2.26 + rm -rf $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/tests 2.27 } 2.28 2.29 # Remove old package. 2.30 post_install() 2.31 { 2.32 - rm -rf $1/var/lib/tazpkg/installed/pygame 2.33 + rm -rf $1/var/lib/tazpkg/installed/pygame/examples 2.34 }