diff options
| author | Alfredo Tupone <tupone@gentoo.org> | 2025-11-21 08:26:53 +0100 |
|---|---|---|
| committer | Alfredo Tupone <tupone@gentoo.org> | 2025-11-21 08:27:10 +0100 |
| commit | c1849b16e5eff849bae9313b7a394bbeaa23ecc7 (patch) | |
| tree | a532d73a7fbc80ba211807d2e4f8fb58d75cb9b4 | |
| parent | 3bc10e4b804941f962e48f2e0d2e2b6431c1d7cb (diff) | |
| download | gentoo-c1849b16e5eff849bae9313b7a394bbeaa23ecc7.tar.gz gentoo-c1849b16e5eff849bae9313b7a394bbeaa23ecc7.tar.bz2 gentoo-c1849b16e5eff849bae9313b7a394bbeaa23ecc7.zip | |
sci-ml/hf_xet: new package, add 1.2.0
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
| -rw-r--r-- | sci-ml/hf_xet/Manifest | 2 | ||||
| -rw-r--r-- | sci-ml/hf_xet/hf_xet-1.2.0.ebuild | 45 | ||||
| -rw-r--r-- | sci-ml/hf_xet/metadata.xml | 13 |
3 files changed, 60 insertions, 0 deletions
diff --git a/sci-ml/hf_xet/Manifest b/sci-ml/hf_xet/Manifest new file mode 100644 index 000000000000..5e1be9999b97 --- /dev/null +++ b/sci-ml/hf_xet/Manifest @@ -0,0 +1,2 @@ +DIST hf_xet-1.2.0-crates.tar.xz 39923180 BLAKE2B 829df449cdfc2371cfeaab4624cf22758b7f6fca409c88da93cf79983a7d00d78e421c29ad1d349f21f6137fa498978c4a2bc2a88fac9627a1f86bc19f25eef4 SHA512 de86a32774ae2810938f57cac69e772b5cbef55436548bf7c261b917fb9509b5de12805ed5da1449a0f4241b058c14d03f36ed0d93574f5fd398f20f44984cef +DIST hf_xet-1.2.0.gh.tar.gz 679128 BLAKE2B f54088890975e906ef63b5c54ff08d0f4fbbc67b8d5dd10360b97b5b20137553ccd5b8559d059fc19d193200c6f97d4a5d6ceabc8a28e4eddf5d7ce5018fc484 SHA512 75b6531349db8df0d25018950509d6859cfec14b7c11c7597f8cb1e001f37af274d6f7ab165a5425e145a3ad68a7ea1cc38fc2f69b7f52bbd80cb85101f606a4 diff --git a/sci-ml/hf_xet/hf_xet-1.2.0.ebuild b/sci-ml/hf_xet/hf_xet-1.2.0.ebuild new file mode 100644 index 000000000000..3c3547e3e67f --- /dev/null +++ b/sci-ml/hf_xet/hf_xet-1.2.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.15.0 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=maturin +PYTHON_COMPAT=( python3_{10..14} ) +RUST_MIN_VER="1.88" + +CRATES=" +" + +inherit cargo distutils-r1 + +DESCRIPTION="xet client tech, used in huggingface_hub" +HOMEPAGE="https://github.com/huggingface/xet-core" +SRC_URI="https://github.com/huggingface/xet-core/archive/refs/tags/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" +if [[ ${PKGBUMPING} != ${PVR} ]]; then + SRC_URI+="https://dev.gentoo.org/~tupone/distfiles/${P}-crates.tar.xz" +fi +S="${WORKDIR}"/xet-core-${PV}/hf_xet + +LICENSE="Apache-2.0" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD CDDL + CDLA-Permissive-2.0 ISC MIT MPL-2.0 Unicode-3.0 +" +SLOT="0" +KEYWORDS="~amd64" + +src_configure() { + cargo_src_configure + distutils-r1_src_configure +} + +src_compile() { + cargo_src_compile + distutils-r1_src_compile +} diff --git a/sci-ml/hf_xet/metadata.xml b/sci-ml/hf_xet/metadata.xml new file mode 100644 index 000000000000..1357b4932779 --- /dev/null +++ b/sci-ml/hf_xet/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>tupone@gentoo.org</email> + <name>Tupone Alfredo</name> + </maintainer> + <upstream> + <remote-id type="github"> + huggingface/xet-core + </remote-id> + </upstream> +</pkgmetadata> |
