. "$GRIMOIRE/FUNCTIONS"

           SPELL=django
case "$DJANGO_BRANCH" in
  scm)
         VERSION=$(get_scm_version)
          SOURCE=${SPELL^}-scm.tar.bz2
   SOURCE_URL[0]=https://github.com/django/django.git:${SPELL^}-scm
   SOURCE_IGNORE=volatile
  FORCE_DOWNLOAD=on
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL^}-scm"
  ;;
  legacy)
         VERSION=1.4.22
  SECURITY_PATCH=7
          SOURCE=${SPELL^}-${VERSION}.tar.gz
   SOURCE_URL[0]="https://www.djangoproject.com/m/releases/${VERSION%.*}/${SOURCE}"
   SOURCE_URL[1]="https://www.djangoproject.com/download/${VERSION}/tarball/"
     SOURCE_HASH=sha512:03e833d95d8ffacf8cb753b8b8c15edc145830add322ad166c574a9a7428ed308082ffea7a73bcdb7315f489270fd84a38d1a8b12c090dfb9d68da5d281cef68
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL^}-${VERSION}"
  ;;
  devel)
         VERSION=3.0.1
     SOURCE_HASH=sha256:315b11ea265dd15348d47f2cbb044ef71da2018f6e582fed875c889758e6f844:UPSTREAM_HASH
  SECURITY_PATCH=1
          SOURCE=${SPELL^}-${VERSION}.tar.gz
   SOURCE_URL[0]="https://www.djangoproject.com/m/releases/${VERSION}/${SOURCE}"
   SOURCE_URL[1]="https://www.djangoproject.com/download/${VERSION}/tarball/"
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL^}-${VERSION}"
  ;;
  oldstable)
         VERSION=1.11.29
     SOURCE_HASH=sha256:4200aefb6678019a0acf0005cd14cfce3a5e6b9b90d06145fcdd2e474ad4329c:UPSTREAM_HASH
  SECURITY_PATCH=6
          SOURCE=${SPELL^}-${VERSION}.tar.gz
   SOURCE_URL[0]="https://www.djangoproject.com/m/releases/${VERSION}/${SOURCE}"
   SOURCE_URL[1]="https://www.djangoproject.com/download/${VERSION}/tarball/"
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL^}-${VERSION}"
  ;;
  # stable (also handled for `gaze')
  stable|*)
         VERSION=2.2.9
     SOURCE_HASH=sha256:662a1ff78792e3fd77f16f71b1f31149489434de4b62a74895bd5d6534e635a5:UPSTREAM_HASH
  SECURITY_PATCH=14
          SOURCE=${SPELL^}-${VERSION}.tar.gz
   SOURCE_URL[0]="https://www.djangoproject.com/m/releases/${VERSION}/${SOURCE}"
   SOURCE_URL[1]="https://www.djangoproject.com/download/${VERSION}/tarball/"
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL^}-${VERSION}"
  ;;
esac
        WEB_SITE="https://www.djangoproject.com/"
      LICENSE[0]=BSD
        KEYWORDS="web python devel"
         ENTERED=20070821
           SHORT="high-level Python Web framework"
cat << EOF
Django is a high-level Python Web framework that encourages rapid development
and clean, pragmatic design.

Developed and used over two years by a fast-moving online-news operation,
Django was designed to handle two challenges: the intensive deadlines of a
newsroom and the stringent requirements of the experienced Web developers who
wrote it. It lets you build high-performing, elegant Web applications quickly.
EOF
