# -*- 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.1
revision            0

categories-append   www
supported_archs     noarch
platforms           {darwin any}
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  bd5579908a8ab58a86a5f2d1978d1fb5b1c44ae7 \
                    sha256  7aadab5240796ffe8e93cc7dfbe2f87a204054746ff7ff93cd6d4a0c3747c853 \
                    size    335003

python.versions     38 39

if {${name} ne ${subport}} {
    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}
    }
}