wok-4.x annotate python-restclient/receipt @ rev 6995
xorg-xf86-input-plpevtch: fix TARBALL
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 31 09:45:41 2010 +0100 (2010-10-31) |
parents | 5921dc28d8c6 |
children | be13f25e790b |
rev | line source |
---|---|
claudinei@3812 | 1 # SliTaz package receipt. |
claudinei@3812 | 2 |
claudinei@3812 | 3 PACKAGE="python-restclient" |
claudinei@3812 | 4 SOURCE="py-restclient" |
claudinei@3812 | 5 VERSION="1.3.2" |
claudinei@3812 | 6 CATEGORY="development" |
claudinei@3812 | 7 SHORT_DESC="A simple REST client for python" |
claudinei@3812 | 8 MAINTAINER="claudinei@slitaz.org" |
claudinei@3812 | 9 DEPENDS="python python-httplib2" |
claudinei@3812 | 10 BUILD_DEPENDS="python python-dev setuptools" |
claudinei@3812 | 11 TARBALL="$VERSION.gz" |
claudinei@3812 | 12 WEB_SITE="http://bitbucket.org/benoitc/$SOURCE" |
claudinei@3812 | 13 WGET_URL="$WEB_SITE/get/$TARBALL" |
claudinei@3812 | 14 |
claudinei@3812 | 15 # Rules to configure and make the package. |
claudinei@3812 | 16 compile_rules() |
claudinei@3812 | 17 { |
claudinei@3812 | 18 src="$SOURCE" |
claudinei@3812 | 19 cd $src |
claudinei@3812 | 20 python setup.py install --root=$PWD/_pkg |
claudinei@3812 | 21 } |
claudinei@3812 | 22 |
claudinei@3812 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3812 | 24 genpkg_rules() |
claudinei@3812 | 25 { |
pascal@6594 | 26 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
claudinei@3812 | 27 _pkg="$SOURCE/_pkg" |
claudinei@3812 | 28 for file in `find $_pkg | grep 'pyc$'`; do |
claudinei@3812 | 29 rm $file |
claudinei@3812 | 30 done |
claudinei@3812 | 31 mkdir -p $fs/usr |
pascal@6592 | 32 rm -f $_pkg/usr/lib/$PYTHON_LIB/site-packages/tests/* |
pascal@6592 | 33 rmdir $_pkg/usr/lib/$PYTHON_LIB/site-packages/tests |
claudinei@3812 | 34 cp -a $_pkg/usr $fs |
claudinei@3812 | 35 } |
claudinei@3812 | 36 |