wok-current view python-couchdbkit/receipt @ rev 7603

mirror-tools: Add scm.slitaz.org (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 11 13:20:54 2010 +0100 (2010-12-11)
parents 5921dc28d8c6
children be13f25e790b
line source
1 # SliTaz package receipt.
3 PACKAGE="python-couchdbkit"
4 SOURCE="couchdbkit"
5 VERSION="0.3.1"
6 CATEGORY="development"
7 SHORT_DESC="A framework for python applications to access and manage CouchDB"
8 MAINTAINER="claudinei@slitaz.org"
9 DEPENDS="python couchdb python-simplejson python-restclient"
10 BUILD_DEPENDS="python python-dev setuptools"
11 TARBALL="$VERSION.gz"
12 WEB_SITE="http://www.couchdbkit.org"
13 WGET_URL="http://bitbucket.org/benoitc/$SOURCE/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 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
27 _pkg="$SOURCE/_pkg"
28 for file in `find $_pkg | grep 'pyc$'`; do
29 rm $file
30 done
31 mkdir -p $fs/usr
32 rm -f $_pkg/usr/lib/$PYTHON_LIB/site-packages/tests/*
33 rmdir $_pkg/usr/lib/$PYTHON_LIB/site-packages/tests
34 cp -a $_pkg/usr $fs
35 }