wok annotate python-django/receipt @ rev 14875
Up: python-django (1.5.1)
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Tue Jul 23 19:28:00 2013 -0300 (2013-07-23) |
parents | d65df587bc17 |
children | fd4f1e692109 |
rev | line source |
---|---|
claudinei@3389 | 1 # SliTaz package receipt. |
claudinei@3389 | 2 |
claudinei@3389 | 3 PACKAGE="python-django" |
claudinei@3389 | 4 SOURCE="Django" |
claudinei@14875 | 5 VERSION="1.5.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@14875 | 10 WEB_SITE="https://www.djangoproject.com/" |
claudinei@14875 | 11 WGET_URL="https://www.djangoproject.com/m/releases/1.5/$TARBALL" |
claudinei@3413 | 12 DEPENDS="python python-pysqlite" |
claudinei@3389 | 13 SUGGESTED="python-mysql" |
claudinei@14875 | 14 BUILD_DEPENDS="setuptools wget" |
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 |
slaxemulator@9464 | 20 python setup.py install --root=$DESTDIR |
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@14875 | 27 cp -a $install/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 } |