# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
maintainers {danchr @danchr} openmaintainer
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 \
homepage http://www.djangoproject.com
set branch [join [lrange [split ${version} .] 0 1] .]
master_sites https://www.djangoproject.com/m/releases/${branch}/
distname Django-${version}
checksums rmd160 a7a64a93e56ba5e425f61752801c8083f9b2bff4 \
sha256 8918e392530d8fc6965a56af6504229e7924c27265893f3949aa0529cd1d4b99
python.versions 27 34 35 36
if {${name} ne ${subport}} {
depends_lib-append port:py${python.version}-setuptools
variant bash_completion {
depends_run-append path:etc/bash_completion:bash-completion
reinplace "s|django-admin.py|django-admin-${python.branch}.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-${python.branch}.py
# we want *-${python.branch}.py not *.py-${python.branch}
xinstall -m 644 -W ${worksrcpath} \
AUTHORS INSTALL LICENSE README.rst \
${destroot}${prefix}/share/doc/${subport}
file copy ${worksrcpath}/docs \
${destroot}${prefix}/share/doc/${subport}/docs
# To avoid conflict between py*-django
ln -s ${python.prefix}/bin/django-admin.py \
${destroot}${prefix}/bin/django-admin-${python.branch}.py