# -*- 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.5
revision            0
github.setup        explosion cymem ${version} v

checksums           rmd160  ca8da70981f9b4a342e7c538150c537308b86288 \
                    sha256  90d2cc3e5f1514032863d0a74e2ac34ffd95b5cfa0a6e45f352a2c86eeff4171 \
                    size    9726

platforms           darwin
supported_archs     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     27 35 36 37 38 39
python.default_version 38

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

    livecheck.type none 

} 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.]+)}

}
