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

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

description         Global custom management extensions for the Django Framework.
long_description    {*}${description}

homepage            https://github.com/django-extensions/django-extensions

distname            django_extensions-${version}

checksums           rmd160  6e783e546e4cf7728d66af5cd1e502881a6fc89a \
                    sha256  7b70a4d28e9b840f44694e3f7feb54f55d495f8b3fa6c5c0e5e12bcb2aa3cdeb \
                    size    283078

python.versions     310 311 312 313

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

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