# -*- 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-llvmlite
version             0.49.0
categories-append   devel science
license             BSD

python.versions     310 311 312 313 314

maintainers         {stromnov @stromnov} openmaintainer

description         A lightweight LLVM python binding for writing JIT compilers
long_description    {*}${description}

homepage            https://llvmlite.pydata.org/

checksums           rmd160  7283e5216c39fb276d52db94fd045dd301492901 \
                    sha256  00f16db782f4a13c78c5804aedc434e46794a77e89999a168f9401106270e50a \
                    size    194467

if {${name} ne ${subport}} {
    PortGroup           legacysupport 1.1
    PortGroup           compiler_wrapper 1.0

    legacysupport.newest_darwin_requires_legacy \
                        17
    legacysupport.use_mp_libcxx yes

    set llvmver         22

    build.env-append    LLVM_DIR=${prefix}/libexec/llvm-${llvmver}/lib/cmake/
    depends_build-append \
                        path:bin/cmake:cmake

    depends_lib-append  port:llvm-${llvmver} \
                        port:zstd \
                        port:zlib
}
