# -*- 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
version             5.2.2
revision            0

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

description         Django is a high-level Python Web framework
long_description    {*}${description} that encourages rapid development \
                    and clean, pragmatic design.

homepage            https://www.djangoproject.com

checksums           rmd160  47cec6e31b5d99aec1a4620f16c450c37deb0308 \
                    sha256  85852e517f84435e9b13421379cd6c43ef5b48a9c8b391d29a26f7900967e952 \
                    size    10827542

python.versions     310 311 312 313

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-asgiref \
                    port:py${python.version}-sqlparse

    post-destroot {
        file copy ${worksrcpath}/docs \
            ${destroot}${prefix}/share/doc/${subport}/docs
    }
}
