wok-current view python-restclient/receipt @ rev 15440
Up: ecore-dev (1.7.9)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Nov 05 20:57:43 2013 +0100 (2013-11-05) |
parents | 44eacb6d3864 |
children | 7390f8de9846 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-restclient"
4 SOURCE="py-restclient"
5 VERSION="1.3.2"
6 CATEGORY="development"
7 SHORT_DESC="A simple REST client for python"
8 MAINTAINER="claudinei@slitaz.org"
9 LICENSE="MIT"
10 TARBALL="$PACKAGE-$VERSION.tgz"
11 WEB_SITE="http://bitbucket.org/benoitc/$SOURCE"
12 WGET_URL="$WEB_SITE/get/$VERSION.gz"
14 DEPENDS="python python-httplib2"
15 BUILD_DEPENDS="python python-dev setuptools"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 python setup.py install --root=$DESTDIR
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
28 mkdir -p $fs/usr
29 rm -f $install/usr/lib/$PYTHON_LIB/site-packages/tests/*
30 rmdir $install/usr/lib/$PYTHON_LIB/site-packages/tests
31 cp -a $install/usr $fs
32 }