wok-6.x annotate python-django/receipt @ rev 4134

Up: xfprint* (4.6.1)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sun Sep 20 13:27:04 2009 +0000 (2009-09-20)
parents 63e63926a8ca
children d3cfa94dc1c7
rev   line source
claudinei@3389 1 # SliTaz package receipt.
claudinei@3389 2
claudinei@3389 3 PACKAGE="python-django"
claudinei@3389 4 SOURCE="Django"
claudinei@3774 5 VERSION="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@3389 26 mkdir -p $fs/usr
claudinei@3389 27 cp -a $_pkg/usr $fs
claudinei@3389 28 }
claudinei@3389 29
claudinei@3404 30 # Remove old package.
claudinei@3404 31 post_install()
claudinei@3404 32 {
claudinei@3404 33 rm -rf $1/var/lib/tazpkg/installed/django
claudinei@3413 34 }