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

name                py-cymem
# Don't upgrade past py-spaCy's highest supported version.
version             2.0.8
revision            0
github.setup        explosion cymem ${version} v

checksums           rmd160  a6e885cb3aa1f251292f2cf91df7bc78a8fd47d8 \
                    sha256  556b8138234392fb632af3f332d09777a526a105fd42d464272e334169ea645e \
                    size    8371

supported_archs     arm64 x86_64

license             MIT

maintainers         {jonesc @cjones051073} openmaintainer

description         Cython memory pool for RAII-style memory management
long_description    {*}${description}

# Support python versions
python.versions     37 38 39 310 311

if {${name} ne ${subport}} {

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

    depends_lib-append \
        port:py${python.version}-cython

    depends_test-append \
        port:py${python.version}-pytest

} else {

    # overload the github livecheck regex to look for versions that
    # are just numbers and '.', no letters (e.g., "3.7.3_rc2").
    github.livecheck.regex  {([0-9.]+)}

}
