wok-stable view python-restclient/receipt @ rev 5694

Up: geany (0.19)
author Alexander Medvedev <devl547@gmail.com>
date Wed Jun 16 19:49:20 2010 +0000 (2010-06-16)
parents
children 5921dc28d8c6
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 DEPENDS="python python-httplib2"
10 BUILD_DEPENDS="python python-dev setuptools"
11 TARBALL="$VERSION.gz"
12 WEB_SITE="http://bitbucket.org/benoitc/$SOURCE"
13 WGET_URL="$WEB_SITE/get/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 src="$SOURCE"
19 cd $src
20 python setup.py install --root=$PWD/_pkg
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 _pkg="$SOURCE/_pkg"
27 for file in `find $_pkg | grep 'pyc$'`; do
28 rm $file
29 done
30 mkdir -p $fs/usr
31 rm -f $_pkg/usr/lib/python2.5/site-packages/tests/*
32 rmdir $_pkg/usr/lib/python2.5/site-packages/tests
33 cp -a $_pkg/usr $fs
34 }