From 845f149bc84c72573880eb661b67de7a21ce7166 Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Tue, 3 Mar 2026 13:19:00 +0800 Subject: [PATCH] dev-python/onnxruntime: new package, add 1.24.2 Signed-off-by: Huang Rui --- dev-python/onnxruntime/Manifest | 4 ++ dev-python/onnxruntime/metadata.xml | 24 ++++++++ .../onnxruntime/onnxruntime-1.24.2.ebuild | 58 +++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 dev-python/onnxruntime/Manifest create mode 100644 dev-python/onnxruntime/metadata.xml create mode 100644 dev-python/onnxruntime/onnxruntime-1.24.2.ebuild diff --git a/dev-python/onnxruntime/Manifest b/dev-python/onnxruntime/Manifest new file mode 100644 index 0000000000..8950f68793 --- /dev/null +++ b/dev-python/onnxruntime/Manifest @@ -0,0 +1,4 @@ +DIST onnxruntime-1.24.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl 17107440 BLAKE2B 5031224207a74c7306d3c4d219c138d0432ac31c771d02c5aebb175279003d0f67959b2323c866381878a4fcffec22eab6c409692b5b89de33098edd955b0291 SHA512 f20fa0c6e6fd7f03f6f2ed95681b038ec8a2c3e1cc21f94974f1c5ab9cb575626026ddfd402226f8b5b3bfd7956502ba4285b0824731f5e79af397eb08e69252 +DIST onnxruntime-1.24.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl 17106547 BLAKE2B 1712ecb32bb67fccac3e6164596c32aef3d3c48017de555fd2159f3ff965fcb785dde04b77d245d5c3497ff47af266980d734571aff7ac6a136f51c0fd355420 SHA512 2ac9cddf03c1c6f3dd9cdc39d08995250610fb1a5c46d9268dcbe77e2c8bd754ae3ad42c16c2c5b97005914acc2c8ed017c1484a84ac22da78f3e1c408fd64cc +DIST onnxruntime-1.24.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl 17106308 BLAKE2B f71d6583fd6abd3973eeeedd53d84d9cabf77ff195cf94cc71918364eefb16b177519c8303143de9180a9c8fb987ff5ab938ffae9ecf4a2a0117f4a008b7f566 SHA512 1488d95912497211956223ac95abe8bb98dfbf2c37deb7ac6e42f107c92fdf9d813c4a42d456b5e4abc468fa6395c793de1dc106ece119d1a1fcf41e42f3cd61 +DIST onnxruntime-1.24.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl 17106108 BLAKE2B 6749d5aceea14744526af98d8a56764904ba8552f26fb370641d5e3f861f3443467dfce2eca31a19a1652058bba023086c6c954bc631ba01e456e375923ce6bf SHA512 e4baba1a7e5e173cdceefe380ae725731b6c3bd4341df50f7761395920ad37c286674de2bcdf6fdb641b1470cf1f2790b5420ea058f5d719e66e9283ed1ecc1c diff --git a/dev-python/onnxruntime/metadata.xml b/dev-python/onnxruntime/metadata.xml new file mode 100644 index 0000000000..72b9aef866 --- /dev/null +++ b/dev-python/onnxruntime/metadata.xml @@ -0,0 +1,24 @@ + + + + + vowstar@gmail.com + Huang Rui + + + microsoft/onnxruntime + onnxruntime + https://github.com/microsoft/onnxruntime/issues + + + ONNX Runtime is a cross-platform, high performance ML inferencing and + training accelerator. It supports models in ONNX format and provides + optimized inference using hardware-specific acceleration. This is a + prebuilt binary package from PyPI wheels. + + + ONNX Runtime是一个跨平台、高性能的机器学习推理和训练加速器。它支持ONNX + 格式的模型,并使用硬件特定的加速来提供优化的推理。这是一个来自PyPI wheels + 的预构建二进制包。 + + diff --git a/dev-python/onnxruntime/onnxruntime-1.24.2.ebuild b/dev-python/onnxruntime/onnxruntime-1.24.2.ebuild new file mode 100644 index 0000000000..b0aa746779 --- /dev/null +++ b/dev-python/onnxruntime/onnxruntime-1.24.2.ebuild @@ -0,0 +1,58 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..14} ) +DISTUTILS_USE_PEP517=standalone +DISTUTILS_EXT=1 +inherit distutils-r1 pypi + +DESCRIPTION="Cross-platform, high performance ML inferencing and training accelerator" +HOMEPAGE=" + https://onnxruntime.ai + https://github.com/microsoft/onnxruntime + https://pypi.org/project/onnxruntime/ +" + +SRC_URI=" + python_targets_python3_11? ( + https://files.pythonhosted.org/packages/2c/32/4e5921ba8b82ac37cad45f1108ca6effd430f49c7f20577d53f317d166ed/${PN}-${PV}-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl + ) + python_targets_python3_12? ( + https://files.pythonhosted.org/packages/35/af/ad86cfbfd65d5a86204b3a30893e92c0cf3f1a56280efc5a12e69d81f52d/${PN}-${PV}-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl + ) + python_targets_python3_13? ( + https://files.pythonhosted.org/packages/ac/62/6f2851cf3237a91bc04cdb35434293a623d4f6369f79836929600da574ba/${PN}-${PV}-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl + ) + python_targets_python3_14? ( + https://files.pythonhosted.org/packages/0d/74/a1913b3a0fc2f27fe1751e9545745a3f35fd7833e3438a4208b4e215778f/${PN}-${PV}-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl + ) +" + +S="${WORKDIR}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/flatbuffers[${PYTHON_USEDEP}] + >=dev-python/numpy-2[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/protobuf[${PYTHON_USEDEP}] + dev-python/sympy[${PYTHON_USEDEP}] +" + +RESTRICT="bindist mirror strip test" + +QA_PREBUILT="*" + +python_compile() { + local pyver="${EPYTHON/python/}" + pyver="${pyver/./}" + local pytag="cp${pyver}" + local abitag="${pytag}-manylinux_2_27_x86_64.manylinux_2_28_x86_64" + distutils_wheel_install "${BUILD_DIR}/install" \ + "${DISTDIR}/$(pypi_wheel_name "${PN}" "${PV}" "${pytag}" "${abitag}")" +}