Files
macports-ports/python/py-thinc/Portfile
T
2025-12-02 11:51:38 -05:00

61 lines
2.5 KiB
Tcl

# -*- 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-thinc
# Don't upgrade past py-spaCy's highest supported version.
version 8.2.3
revision 0
github.setup explosion thinc ${version} v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
checksums rmd160 e5027c99aa760844dc82af5f2823866f18592f37 \
sha256 4ceb2a4f345a68f15efdf3d49dff0f8ceafc5bec74cfc48fdea597f8dadf2b63 \
size 1704272
license MIT
maintainers {jonesc @cjones051073} openmaintainer
description spaCy's Machine Learning library for NLP in Python
long_description {*}${description}
# Exclude anything with non-numbers
github.livecheck.regex {([0-9.]+)}
# Support python versions
python.versions 310 311 312
# Compiler selection
compiler.cxx_standard 2011
compiler.blacklist-append *gcc-4.* {clang < 900} {macports-clang-3.[0-9]} macports-clang-4.0
if {${name} ne ${subport}} {
# diff -NaurdwB ./py-thinc-orig/pyproject.toml ./py-thinc-new/pyproject.toml | sed -E -e 's/\.\/py-thinc-(orig|new)/\.\//' | sed -E -e 's|/opt/local|@@PREFIX@@|g' > ~/Downloads/patch-pyproject_toml.diff
patchfiles-append \
patch-pyproject_toml.diff \
patch-requirements_txt.diff \
patch-setup_cfg.diff
depends_build-append \
port:py${python.version}-cython-compat
set compat_path [string replace ${python.pkgd} 0 [string length ${python.prefix}]-1 ${prefix}/lib/py${python.version}-cython-compat]
build.env-append PYTHONPATH=${compat_path}
depends_lib-append \
port:py${python.version}-cython \
port:py${python.version}-cymem \
port:py${python.version}-murmurhash \
port:py${python.version}-numpy \
port:py${python.version}-tqdm \
port:py${python.version}-blis \
port:py${python.version}-plac \
port:py${python.version}-srsly \
port:py${python.version}-wasabi \
port:py${python.version}-mock \
port:py${python.version}-preshed
}