# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-django-debug-toolbar
version             2.2
revision            0

categories-append   www
platforms           darwin
supported_archs     noarch
license             BSD
maintainers         nomaintainer

description         Configurable debug information for the Django Framework.
long_description    A configurable set of panels for the Django Framework \
                    that display various debug information about the current \
                    request/response.

homepage            https://github.com/django-debug-toolbar/django-debug-toolbar

checksums           rmd160  ff3b391e9ea0cffa70df168ad478e9a4e6357545 \
                    sha256  eabbefe89881bbe4ca7c980ff102e3c35c8e8ad6eb725041f538988f2f39a943 \
                    size    106804

python.versions     27 37

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        version     2.1
        revision    0
        checksums   rmd160  2dcc8ab924061f38725a40fc200f7b89c4e28f20 \
                    sha256  24c157bc6c0e1648e0a6587511ecb1b007a00a354ce716950bff2de12693e7a8 \
                    size    108234
    }

    depends_build-append \
                    port:py${python.version}-setuptools

    depends_lib-append \
                    port:py${python.version}-django \
                    port:py${python.version}-sqlparse

    post-destroot {
        xinstall -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} LICENSE CONTRIBUTING.md \
            README.rst ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type  none
}
