wok-stable annotate python-couchdbkit/receipt @ rev 9037

iron-linux, squirrelmail plugins: fix genpkg_rules (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 04 00:29:16 2011 +0100 (2011-03-04)
parents d0fa681cee8d
children
rev   line source
claudinei@3813 1 # SliTaz package receipt.
claudinei@3813 2
claudinei@3813 3 PACKAGE="python-couchdbkit"
claudinei@3813 4 SOURCE="couchdbkit"
claudinei@4685 5 VERSION="0.3.1"
claudinei@3813 6 CATEGORY="development"
claudinei@3813 7 SHORT_DESC="A framework for python applications to access and manage CouchDB"
claudinei@3813 8 MAINTAINER="claudinei@slitaz.org"
claudinei@3813 9 DEPENDS="python couchdb python-simplejson python-restclient"
claudinei@3813 10 BUILD_DEPENDS="python python-dev setuptools"
claudinei@3813 11 TARBALL="$VERSION.gz"
claudinei@3813 12 WEB_SITE="http://www.couchdbkit.org"
claudinei@3813 13 WGET_URL="http://bitbucket.org/benoitc/$SOURCE/get/$TARBALL"
claudinei@3813 14
claudinei@3813 15 # Rules to configure and make the package.
claudinei@3813 16 compile_rules()
claudinei@3813 17 {
claudinei@3813 18 cd $src
claudinei@3813 19 python setup.py install --root=$PWD/_pkg
claudinei@3813 20 }
claudinei@3813 21
claudinei@3813 22 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3813 23 genpkg_rules()
claudinei@3813 24 {
pascal@6594 25 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
claudinei@3813 26 mkdir -p $fs/usr
pascal@6592 27 rm -f $_pkg/usr/lib/$PYTHON_LIB/site-packages/tests/*
pascal@6592 28 rmdir $_pkg/usr/lib/$PYTHON_LIB/site-packages/tests
claudinei@3813 29 cp -a $_pkg/usr $fs
claudinei@3813 30 }
claudinei@3813 31