wok annotate python-bpython/receipt @ rev 22389
Add php-opcache
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 28 21:44:13 2019 +0100 (2019-11-28) |
parents | 6135577f4d08 |
children | 34af7e8f2ad6 |
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" |
pascal@20679 | 11 WEB_SITE="https://pypi.org/project/$SOURCE/" |
claudinei@3421 | 12 WGET_URL="$WEB_SITE/releases/$TARBALL" |
pascal@15378 | 13 |
pascal@21581 | 14 DEPENDS="python python-pygments python-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 |