wok annotate python-bpython/receipt @ rev 3788
Up: python-bpython (0.9.4)
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Fri Jul 31 23:42:56 2009 +0000 (2009-07-31) |
parents | 455a65a0bf12 |
children | 70042dee411c |
rev | line source |
---|---|
claudinei@3421 | 1 # SliTaz package receipt. |
claudinei@3421 | 2 |
claudinei@3421 | 3 PACKAGE="python-bpython" |
claudinei@3421 | 4 SOURCE="bpython" |
claudinei@3788 | 5 VERSION="0.9.4" |
claudinei@3421 | 6 CATEGORY="development" |
claudinei@3421 | 7 SHORT_DESC="A fancy interface to the Python interpreter." |
claudinei@3421 | 8 MAINTAINER="claudinei@slitaz.org" |
claudinei@3421 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
claudinei@3421 | 10 WEB_SITE="http://www.bpython-interpreter.org" |
claudinei@3421 | 11 WGET_URL="$WEB_SITE/releases/$TARBALL" |
claudinei@3421 | 12 DEPENDS="python python-pygments setuptools" |
claudinei@3421 | 13 BUILD_DEPENDS="$DEPENDS python-dev" |
claudinei@3421 | 14 |
claudinei@3421 | 15 # Rules to configure and make the package. |
claudinei@3421 | 16 compile_rules() |
claudinei@3421 | 17 { |
claudinei@3421 | 18 cd $src |
claudinei@3421 | 19 python setup.py install --root=$PWD/_pkg |
claudinei@3421 | 20 } |
claudinei@3421 | 21 |
claudinei@3421 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3421 | 23 genpkg_rules() |
claudinei@3421 | 24 { |
claudinei@3788 | 25 for file in `find $_pkg | grep 'pyc$'`; do |
claudinei@3788 | 26 rm $file |
claudinei@3788 | 27 done |
claudinei@3421 | 28 rm -rf $_pkg/usr/share/applications |
claudinei@3421 | 29 mkdir -p $fs/usr $fs/usr/share/applications |
claudinei@3421 | 30 cp -a $_pkg/usr/bin $fs/usr |
claudinei@3421 | 31 cp -a $_pkg/usr/lib $fs/usr |
claudinei@3421 | 32 cp -a $WOK/$PACKAGE/stuff/* $fs/usr/share/applications |
claudinei@3421 | 33 } |
claudinei@3421 | 34 |