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

checksums           rmd160  6e3d1dc36517eeb31c7f8340f338ae2b5236f8b9 \
                    sha256  440ad9030ecee31e4a6ba25bd760fa272fb48768a6f6cce3f734595de5a8b0f4 \
                    size    194557

license             MIT

maintainers         {jonesc @cjones051073} openmaintainer

description         spaCy's Machine Learning library for NLP in Python
long_description    {*}${description}

homepage            https://github.com/explosion/thinc

python.versions     310 311 312 313 314

# Compiler selection
compiler.cxx_standard 2011
compiler.blacklist-append *gcc-4.* {clang < 900} {macports-clang-3.[0-9]} macports-clang-4.0

# Fix Cython 3.2 compatibility: axpy callback type needs noexcept
patchfiles-append   patch-cython3-noexcept.diff

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

    depends_lib-append \
                    port:py${python.version}-blis \
                    port:py${python.version}-catalogue \
                    port:py${python.version}-confection \
                    port:py${python.version}-cymem \
                    port:py${python.version}-murmurhash \
                    port:py${python.version}-numpy \
                    port:py${python.version}-packaging \
                    port:py${python.version}-preshed \
                    port:py${python.version}-pydantic \
                    port:py${python.version}-setuptools \
                    port:py${python.version}-srsly \
                    port:py${python.version}-wasabi
}
