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 \
set branch [join [lrange [split ${version} .] 0 1] .]
master_sites http://media.djangoproject.com/releases/${branch}/
distname Django-${version}
checksums md5 1b8f76e91c27564708649671f329551f \
sha1 f8814d5e1412bb932318db5130260da5bf053ff7 \
rmd160 57a3bdb3eb326634647d2eea9df1b5484316c7bc
depends_lib-append port:py26-distribute
variant bash_completion {
depends_run-append port:bash-completion
reinplace "s|django-admin.py|django-admin-2.6.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.6.py
# we want *-2.6.py not *.py-2.6
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
ln -s ${python.prefix}/bin/django-admin.py \
${destroot}${prefix}/bin/django-admin-2.6.py
livecheck.url http://www.djangoproject.com/download/
livecheck.regex "The latest official version is (1\.\[0-9\]+\.\[0-9\]+)"