commit:     55c3c8cf4badea39c16ec491928d2363df72f892
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu May 19 20:09:03 2022 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu May 19 20:09:03 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55c3c8cf

sci-libs/onnx: inherit python-any-r1

Closes: https://bugs.gentoo.org/846452
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 .../onnx/{onnx-1.11.0.ebuild => onnx-1.11.0-r1.ebuild}    | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/sci-libs/onnx/onnx-1.11.0.ebuild 
b/sci-libs/onnx/onnx-1.11.0-r1.ebuild
similarity index 73%
rename from sci-libs/onnx/onnx-1.11.0.ebuild
rename to sci-libs/onnx/onnx-1.11.0-r1.ebuild
index 8a650bee773f..5b2ac804bf1d 100644
--- a/sci-libs/onnx/onnx-1.11.0.ebuild
+++ b/sci-libs/onnx/onnx-1.11.0-r1.ebuild
@@ -2,7 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-inherit cmake
+PYTHON_COMPAT=( python3_{8..11} )
+inherit python-any-r1 cmake
 
 DESCRIPTION="Open Neural Network Exchange (ONNX)"
 HOMEPAGE="https://github.com/onnx/onnx";
@@ -17,7 +18,17 @@ RESTRICT="test"
 DEPEND=""
 RDEPEND="${DEPEND}
        dev-libs/protobuf"
-BDEPEND="dev-util/patchelf"
+BDEPEND="
+       ${PYTHON_DEPS}
+       dev-util/patchelf
+"
+
+src_configure() {
+       local mycmakeargs=(
+               -DONNX_USE_PROTOBUF_SHARED_LIBS=ON
+       )
+       cmake_src_configure
+}
 
 src_install() {
        cmake_src_install

Reply via email to