# -*- 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           github                      1.0
PortGroup           python                      1.0

# no sdist on PyPI for this version, fetch from GitHub releases
github.setup        explosion spaCy 3.8.14 release-v
distname            spacy-${version}

name                py-spaCy
revision            0

checksums           rmd160  77c7e56ef03eac25f7315c737654695526ce861f \
                    sha256  32a269bdfa3a39d671c7b93641abd188abacefb6080e7b4c214c0e91881f86ec \
                    size    1328047

supported_archs     arm64 x86_64

license             MIT

maintainers         {pguyot @pguyot} openmaintainer

description         Industrial-strength Natural Language Processing (NLP) with Python and Cython
long_description    {*}${description}

homepage            https://spacy.io

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    compiler.cxx_standard 2014
    compiler.blacklist-append *gcc* {clang < 900} {macports-clang-3.[0-9]} macports-clang-4.0

    depends_build-append \
                    port:cctools \
                    port:py${python.version}-cython \
                    port:py${python.version}-setuptools

    depends_lib-append \
                    port:py${python.version}-catalogue \
                    port:py${python.version}-confection \
                    port:py${python.version}-cymem \
                    port:py${python.version}-jinja2 \
                    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}-requests \
                    port:py${python.version}-spacy-legacy \
                    port:py${python.version}-spacy-loggers \
                    port:py${python.version}-srsly \
                    port:py${python.version}-thinc \
                    port:py${python.version}-tqdm \
                    port:py${python.version}-typer \
                    port:py${python.version}-wasabi \
                    port:py${python.version}-weasel
}
