# -*- 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
github.setup django django 2.2.6
maintainers {mojca @mojca} 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 https://www.djangoproject.com
python.versions 27 35 36 37
if {${name} ne ${subport}} {
if {${python.version} == 27} {
github.setup django django 1.11.25
checksums rmd160 1ddcb49d5c28fb44ad90af067a8cca4cdec9bf69 \
sha256 c42a70cff6900d15a612c7c8ef2c27edb6caf26566607d2fd1b2543cc9f093da \
github.livecheck.regex {(1\..+?)}
checksums rmd160 56a529ecbad5e6ebc80548147467f811ec4a9f63 \
sha256 c681febae35c6cae49369c7920e100a72f3f800838fc3f371809c681b6e00b2e \
depends_build-append port:py${python.version}-setuptools
depends_run-append port:py${python.version}-tz
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
github.livecheck.regex {([0-9.]+)}