# HG changeset patch # User Claudinei Pereira # Date 1249514793 0 # Node ID eb78bdb80287db68198f3848a64812668e15f7c3 # Parent 7a3395dc2e96c3ee1ff061d1981741e252081b51 Add: python-restclient (1.3.2) diff -r 7a3395dc2e96 -r eb78bdb80287 python-restclient/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-restclient/receipt Wed Aug 05 23:26:33 2009 +0000 @@ -0,0 +1,35 @@ +# SliTaz package receipt. + +PACKAGE="python-restclient" +SOURCE="py-restclient" +VERSION="1.3.2" +CATEGORY="development" +SHORT_DESC="A simple REST client for python" +MAINTAINER="claudinei@slitaz.org" +DEPENDS="python python-httplib2" +BUILD_DEPENDS="python python-dev setuptools" +TARBALL="$VERSION.gz" +WEB_SITE="http://bitbucket.org/benoitc/$SOURCE" +WGET_URL="$WEB_SITE/get/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + src="$SOURCE" + cd $src + python setup.py install --root=$PWD/_pkg +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + _pkg="$SOURCE/_pkg" + for file in `find $_pkg | grep 'pyc$'`; do + rm $file + done + mkdir -p $fs/usr + rm -f $_pkg/usr/lib/python2.5/site-packages/tests/* + rmdir $_pkg/usr/lib/python2.5/site-packages/tests + cp -a $_pkg/usr $fs +} +