summaryrefslogtreecommitdiff
path: root/misc/py-hf-xet/Makefile
blob: f66f00055cbcb783ee5833d06c0283d23f3f55dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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>