wok annotate python-bpython/receipt @ rev 18396
open-vm-tools: only build modules
author | Nathan Neulinger <nneul@neulinger.org> |
---|---|
date | Sat Sep 19 02:27:00 2015 +0000 (2015-09-19) |
parents | d13abbbfc743 |
children | 6135577f4d08 |
rev | line source |
---|---|
claudinei@3421 | 1 # SliTaz package receipt. |
claudinei@3421 | 2 |
claudinei@3421 | 3 PACKAGE="python-bpython" |
claudinei@3421 | 4 SOURCE="bpython" |
claudinei@14876 | 5 VERSION="0.9.7.1" |
claudinei@3421 | 6 CATEGORY="development" |
claudinei@3421 | 7 SHORT_DESC="A fancy interface to the Python interpreter." |
claudinei@3421 | 8 MAINTAINER="claudinei@slitaz.org" |
pascal@15378 | 9 LICENSE="MIT" |
claudinei@3421 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
claudinei@3421 | 11 WEB_SITE="http://www.bpython-interpreter.org" |
claudinei@3421 | 12 WGET_URL="$WEB_SITE/releases/$TARBALL" |
pascal@15378 | 13 |
claudinei@3421 | 14 DEPENDS="python python-pygments setuptools" |
claudinei@3421 | 15 BUILD_DEPENDS="$DEPENDS python-dev" |
claudinei@3421 | 16 |
claudinei@3421 | 17 # Rules to configure and make the package. |
claudinei@3421 | 18 compile_rules() |
claudinei@3421 | 19 { |
claudinei@3421 | 20 cd $src |
claudinei@14876 | 21 python setup.py install --root=$DESTDIR |
claudinei@3421 | 22 } |
claudinei@3421 | 23 |
claudinei@3421 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3421 | 25 genpkg_rules() |
claudinei@3421 | 26 { |
claudinei@14876 | 27 for file in `find $install | grep 'pyc$'`; do |
claudinei@3788 | 28 rm $file |
claudinei@3788 | 29 done |
claudinei@14876 | 30 rm -rf $install/usr/share/applications |
claudinei@3421 | 31 mkdir -p $fs/usr $fs/usr/share/applications |
claudinei@14876 | 32 cp -a $install/usr/bin $fs/usr |
claudinei@14876 | 33 cp -a $install/usr/lib $fs/usr |
slaxemulator@9701 | 34 cp -a $stuff/* $fs/usr/share/applications |
claudinei@3421 | 35 } |
claudinei@3421 | 36 |