sci-libs/onnxruntime: drop 1.25.0

Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
Pavel Sobolev
2026-05-09 22:05:31 +03:00
parent 0cf13a7824
commit 2a17e178df
2 changed files with 0 additions and 149 deletions

View File

@@ -1,4 +1,3 @@
DIST eigen-3.4.0_p20250216.tar.bz2 2272941 BLAKE2B c86764a5c31b978d09f9f8f458a982fb16c2cdfd053e0c7a371fbe5b9c64bead42c25fb7d4cb795eb5ee7ff1800bb51fac6783ad0881dd69dee5d463ccd213e3 SHA512 3c9fab41bde1ee4b8f5ba21c991a75cc73e104cdb48f3377b5fc51afae8cbb5e891c39e4fd998c5263178a8962b09d9d907b9d125dfddc50bc2ec5171917d6b8
DIST onnxruntime-1.25.0.tar.gz 284815553 BLAKE2B ef1edf4b20b8f620b3aeed8a17895d1831401121b8ef3014e4c5d102566e5eaf621551ecf185c5ef3542da23aaa70f00ee1f99a2b451e6d1033db8d09fadca2b SHA512 1aaf07af728ae2e75b5f148ca26a946acac6dfc63dd8b43a10fdaccc81dc3c79a66b710619e308b89e58dcd9a11ea274befe1a4373bbe55670ca1b19f15d9712
DIST onnxruntime-1.25.1.tar.gz 284862475 BLAKE2B 82667031281285474feda951fe153c8000a2d4ed9ad4ee4f1ef8ee41f8334f0462608f938ca15f93a3369860a5078eb89b7ceeee791dcea23468b8d469e9122c SHA512 df760e30f1027b024d5a67aa3f36a6508609a58acc37e5e1066f919eaa42f9568c1c8218fbc80eeee0b9ec10307ea4778575b9ed3a1b312690f394b35d036e61
DIST onnxruntime-1.26.0.tar.gz 285128576 BLAKE2B 825f73cf8aa5ecb185f7e77e825e78906666ddc6f194f4034e5443900e9d8e90b20173b0ba33c37b80650658e589078dad6f7c6c7c86ff5247bc797f4d4aa952 SHA512 14d629a14eb2161178c6babe49ed8a3adb15e8c6d26adc4c975261f9b5d43674e8a85bc4dbeb05a87917291d44b056140a1ac5a1c70ed80d92cb3f38cc670ebd

View File

@@ -1,148 +0,0 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{12..14} )
inherit cmake edo flag-o-matic python-r1
EIGEN_COMMIT="1d8b82b0740839c0de7f1242a3585e3390ff5f33"
DESCRIPTION="Cross-platform, high performance ML inferencing and training accelerator"
HOMEPAGE="
https://onnxruntime.ai
https://github.com/microsoft/onnxruntime
"
SRC_URI="
https://github.com/microsoft/onnxruntime/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://gitlab.com/libeigen/eigen/-/archive/${EIGEN_COMMIT}/eigen-${EIGEN_COMMIT}.tar.bz2 ->
eigen-3.4.0_p20250216.tar.bz2
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="python test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
RDEPEND="
dev-cpp/abseil-cpp:=
dev-libs/cpuinfo
dev-libs/protobuf:=
dev-libs/re2:=
sci-ml/onnx[disableStaticReg]
python? (
${PYTHON_DEPS}
dev-python/coloredlogs[${PYTHON_USEDEP}]
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}]
)
"
DEPEND="
${RDEPEND}
dev-cpp/ms-gsl
dev-cpp/nlohmann_json
dev-cpp/safeint
dev-libs/boost
dev-libs/date
dev-libs/flatbuffers
python? (
dev-python/pybind11[${PYTHON_USEDEP}]
sci-libs/dlpack
)
"
BDEPEND="
${PYTHON_DEPS}
test? (
dev-cpp/gtest
python? ( dev-python/pytest[${PYTHON_USEDEP}] )
)
"
PATCHES=(
"${FILESDIR}/${PN}-1.22.2-relax-the-dependency-on-flatbuffers.patch"
"${FILESDIR}/${PN}-1.24.3-use-system-libraries.patch"
"${FILESDIR}/${PN}-1.24.4-no-werror.patch"
)
CMAKE_USE_DIR="${S}/cmake"
src_configure() {
# Python is used at build time unconditionally
python_setup
local mycmakeargs=(
-Donnxruntime_BUILD_SHARED_LIB=on
-Donnxruntime_BUILD_UNIT_TESTS=$(usex test)
-Donnxruntime_ENABLE_PYTHON=$(usex python)
# This is required until a newer version of Eigen3 comes out
-DFETCHCONTENT_SOURCE_DIR_EIGEN3="${WORKDIR}/eigen-${EIGEN_COMMIT}"
# This makes it possible for `find_path` to find the `onnx-ml.proto` file
-DCMAKE_INCLUDE_PATH="$(python_get_sitedir)"
-Wno-dev
)
append-ldflags -Wl,-z,noexecstack
cmake_src_configure
}
# Adapted from `run_onnxruntime_tests` in `tools/ci_build/build.py`
python_test() {
cd "${S}/cmake_build" || die
epytest --pyargs \
onnxruntime_test_python.py \
onnxruntime_test_python_backend.py \
onnxruntime_test_python_mlops.py \
onnxruntime_test_python_sparse_matmul.py
}
src_test() {
local -x GTEST_FILTER="*:-ActivationOpNoInfTest.Softsign:LayoutTransformationPotentiallyAddedOpsTests.OpsHaveLatestVersions"
cmake_src_test
if use python ; then
python_test
fi
}
# There is some custom logic in `setup.py`
python_install() {
cd "${S}/cmake_build" || die
edo "${EPYTHON}" ../setup.py install \
--prefix="${EPREFIX}/usr" \
--root="${D}"
local libs=(
"libonnxruntime.so.${PV}"
"libonnxruntime_providers_shared.so"
)
for lib in "${libs[@]}"; do
ln -fsr "${ED}/usr/$(get_libdir)/${lib}" "${D}/$(python_get_sitedir)/onnxruntime/capi/${lib}" || die
done
rm -rf "${D}/$(python_get_sitedir)"/*.egg-info || die
python_optimize
}
src_install() {
cmake_src_install
if use python ; then
python_foreach_impl python_install
fi
dodoc "${S}/"{README.md,LICENSE}
}