diff options
Diffstat (limited to 'misc/py-hf-xet/Makefile')
-rw-r--r-- | misc/py-hf-xet/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/misc/py-hf-xet/Makefile b/misc/py-hf-xet/Makefile new file mode 100644 index 000000000000..f66f00055cbc --- /dev/null +++ b/misc/py-hf-xet/Makefile @@ -0,0 +1,31 @@ +PORTNAME= hf-xet +DISTVERSION= 1.1.2 +CATEGORIES= misc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION} +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} + +MAINTAINER= tagattie@FreeBSD.org +COMMENT= Fast transfer of large files with the Hugging Face Hub +WWW= https://github.com/huggingface/xet-core + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}maturin>=1.7<2.0:devel/py-maturin@${PY_FLAVOR} + +USES= cargo python ssl + +USE_PYTHON= autoplist pep517 pytest + +CARGO_CARGOTOML=${WRKSRC}/hf_xet/Cargo.toml +CARGO_CARGOLOCK=${WRKSRC}/hf_xet/Cargo.lock +CARGO_BUILD= no +CARGO_INSTALL= no +CARGO_ENV= OPENSSL_NO_VENDOR=1 + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/hf_xet/*.so + +.include <bsd.port.mk> |