Files
guru/sci-libs/onnxruntime-bin/onnxruntime-bin-1.22.0.ebuild
Kai Krakow 1134deb55c sci-libs/onnxruntime-bin: new package, add 1.22.0
Signed-off-by: Kai Krakow <kai@kaishome.de>
Part-of: https://github.com/gentoo/gentoo/pull/37646
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
2025-07-07 10:55:33 +03:00

45 lines
740 B
Bash

# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="cross-platform, high performance ML inferencing and training accelerator"
HOMEPAGE="https://onnxruntime.ai/"
SRC_URI="
https://github.com/microsoft/onnxruntime/releases/download/v${PV}/onnxruntime-linux-x64-${PV}.tgz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
DOCS="
README.md
Privacy.md
ThirdPartyNotices.txt
LICENSE
"
QA_PREBUILT="
lib*/lib*.so*
"
src_unpack() {
unpack ${A}
cd "${WORKDIR}" || die
mv onnxruntime-linux-* ${P} || die
}
src_install() {
dodir /usr/include
cp -R include/. "${ED}"/usr/include/. || die
dodir $(get_libdir)
cp -R lib/. "${ED}"/$(get_libdir)/. || die
einstalldocs
}