homepage http://www.djangoproject.com
description Django is a high-level Python Web framework
long_description Django is a high-level Python Web framework that \
encourages rapid development and clean, pragmatic \
master_sites http://media.djangoproject.com/releases/1.2/
distname Django-${version}
checksums md5 b0e67d3d6447f7eb1ce6392b9465a183 \
sha1 d8347a9062404de49e2f474e6e99395361f34db8 \
rmd160 e28338a82d662df999a68a4473ed76bd00c974fc
depends_lib-append port:py24-distribute
variant bash_completion {
depends_run-append port:bash-completion
reinplace "s|django-admin.py|django-admin-2.4.py|g" \
${worksrcpath}/extras/django_bash_completion
xinstall -d ${destroot}${prefix}/etc/bash_completion.d
xinstall -m 644 ${worksrcpath}/extras/django_bash_completion \
${destroot}${prefix}/etc/bash_completion.d/django-admin-2.4.py
xinstall -m 644 -W ${worksrcpath} AUTHORS INSTALL LICENSE README \
${destroot}${prefix}/share/doc/${name}
file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}/docs
# To avoid conflict between py*-django
move ${destroot}${prefix}/bin/django-admin.py \
${destroot}${prefix}/bin/django-admin-2.4.py
livecheck.url http://www.djangoproject.com/download/
livecheck.regex "The latest official version is (1\.\[0-9\]+\.\[0-9\]+)"