wok-current annotate python-django/receipt @ rev 5264

Up: cmake (2.6.4)
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 13 23:50:01 2010 +0200 (2010-04-13)
parents 8487ca1081a5
children d65df587bc17
rev   line source
claudinei@3389 1 # SliTaz package receipt.
claudinei@3389 2
claudinei@3389 3 PACKAGE="python-django"
claudinei@3389 4 SOURCE="Django"
claudinei@4672 5 VERSION="1.1.1"
claudinei@3389 6 CATEGORY="development"
claudinei@3389 7 SHORT_DESC="Django is a high-level Python Web framework."
claudinei@3389 8 MAINTAINER="claudinei@slitaz.org"
claudinei@3389 9 TARBALL="$SOURCE-$VERSION.tar.gz"
claudinei@3389 10 WEB_SITE="http://www.djangoproject.com/"
claudinei@3774 11 WGET_URL="http://media.djangoproject.com/releases/$VERSION/$TARBALL"
claudinei@3413 12 DEPENDS="python python-pysqlite"
claudinei@3389 13 SUGGESTED="python-mysql"
claudinei@3389 14 BUILD_DEPENDS="python python-dev"
claudinei@3389 15
claudinei@3389 16 # Rules to configure and make the package.
claudinei@3389 17 compile_rules()
claudinei@3389 18 {
claudinei@3389 19 cd $src
claudinei@3389 20 python setup.py install --root=$PWD/_pkg
claudinei@3389 21 }
claudinei@3389 22
claudinei@3389 23 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3389 24 genpkg_rules()
claudinei@3389 25 {
claudinei@4672 26 find $_pkg -name "*.pyc" -exec rm '{}' \;
claudinei@3389 27 mkdir -p $fs/usr
claudinei@3389 28 cp -a $_pkg/usr $fs
claudinei@3389 29 }
claudinei@3389 30
claudinei@3404 31 # Remove old package.
claudinei@3404 32 post_install()
claudinei@3404 33 {
claudinei@3404 34 rm -rf $1/var/lib/tazpkg/installed/django
claudinei@3413 35 }