# -*- 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-glad2
version             2.0.8
revision            0
homepage            https://github.com/Dav1dde/glad

categories-append   devel
license             MIT
platforms           {darwin any}
supported_archs     noarch
maintainers         {i0ntempest @i0ntempest} openmaintainer

description         Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs
long_description    ${description}

checksums           rmd160  909b9133a1865d34ed33c5ad0bba2c6b7368c3b9 \
                    sha256  b84079b9fa404f37171b961bdd1d8da21370e6c818defb8481c5b3fe3d6436da \
                    size    586041

python.versions     39 310 311 312 313

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

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} LICENSE \
        ${destroot}${docdir}
    }
}
