wok diff childsplay/receipt @ rev 12593
elfutils: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 28 22:35:39 2012 +0200 (2012-04-28) |
parents | d0fa681cee8d |
children | 5286a067ac76 |
line diff
1.1 --- a/childsplay/receipt Sat Oct 09 17:19:46 2010 +0200 1.2 +++ b/childsplay/receipt Sat Apr 28 22:35:39 2012 +0200 1.3 @@ -1,50 +1,45 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="childsplay" 1.7 -VERSION="1.5.1" 1.8 +VERSION="1.6" 1.9 CATEGORY="games" 1.10 SHORT_DESC="Python educational game." 1.11 MAINTAINER="claudinei@slitaz.org" 1.12 TARBALL="$PACKAGE-$VERSION.tgz" 1.13 -WEB_SITE="http://www.schoolsplay.org" 1.14 +WEB_SITE="http://www.schoolsplay.org/" 1.15 WGET_URL="$SF_MIRROR/schoolsplay/$TARBALL" 1.16 + 1.17 DEPENDS="python pygtk python-pygame python-pysqlite python-sqlalchemy libogg" 1.18 -BUILD_DEPENDS="python python-dev" 1.19 - 1.20 +BUILD_DEPENDS="python-dev pygtk-dev python-pygame-dev libogg-dev" 1.21 1.22 # Rules to configure and make the package. 1.23 compile_rules() 1.24 { 1.25 cd $src 1.26 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') 1.27 - sed -i "s|PREFIX = '/usr/local'|PREFIX = '_pkg/usr'|" $src/setup.py 1.28 sed -i \ 1.29 -"s|get_python_lib()|'_pkg', 'usr', 'lib', '$PYTHON_LIB', 'site-packages'|" \ 1.30 -$src/setup.py 1.31 - sed -i "/key/s/raw_input/#raw_input/" $src/setup.py 1.32 - python setup.py install --root=$PWD/_pkg 1.33 + -e "s|PREFIX = '/usr/local'|PREFIX = '$DESTDIR/usr'|" \ 1.34 + -e "s|get_python_lib()|'$DESTDIR', 'usr', 'lib', '$PYTHON_LIB', 'site-packages'|" \ 1.35 + -e "/key/s/raw_input/#raw_input/" $src/setup.py 1.36 + python setup.py install --root=$DESTDIR 1.37 } 1.38 1.39 # Rules to gen a SliTaz package suitable for Tazpkg. 1.40 genpkg_rules() 1.41 { 1.42 - BASEPATHS="$_pkg/usr/lib/$PYTHON_LIB/site-packages/childsplay_sp/SPBasePaths.py" 1.43 + PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') 1.44 + BASEPATHS="$install/usr/lib/$PYTHON_LIB/site-packages/childsplay_sp/SPBasePaths.py" 1.45 1.46 - for file in `find $_pkg | grep 'pyc$'`; do 1.47 - rm $file 1.48 - done 1.49 + sed -i "s|$install/|/|g" $BASEPATHS 1.50 + mkdir -p $fs/usr/share/locale 1.51 + 1.52 + cp -a $install/usr/bin $fs/usr 1.53 + cp -a $install/usr/lib $fs/usr 1.54 + cp -a $install/usr/share/childsplay_sp $fs/usr/share 1.55 + cp -a $install/usr/share/sp_alphabetsounds $fs/usr/share 1.56 1.57 - sed -i "s|_pkg/|/|g" $BASEPATHS 1.58 - 1.59 - mkdir -p $fs/usr/share 1.60 - cp -a $_pkg/usr/bin $fs/usr 1.61 - cp -a $_pkg/usr/lib $fs/usr 1.62 - cp -a $_pkg/usr/share/childsplay_sp $fs/usr/share 1.63 - cp -a $_pkg/usr/share/sp_alphabetsounds $fs/usr/share 1.64 - 1.65 - for lang in de en es fr pt; do 1.66 - mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES 1.67 - cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/childsplay_sp.mo \ 1.68 - $fs/usr/share/locale/$lang/LC_MESSAGES 1.69 + for lang in de en es fr pt_BR sv ru; do 1.70 + cp -a $install/usr/share/locale/$lang \ 1.71 + $fs/usr/share/locale 1.72 done 1.73 }