1 |
commit: 55c3c8cf4badea39c16ec491928d2363df72f892 |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 19 20:09:03 2022 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 19 20:09:03 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55c3c8cf |
7 |
|
8 |
sci-libs/onnx: inherit python-any-r1 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/846452 |
11 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
12 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
13 |
|
14 |
.../onnx/{onnx-1.11.0.ebuild => onnx-1.11.0-r1.ebuild} | 15 +++++++++++++-- |
15 |
1 file changed, 13 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/sci-libs/onnx/onnx-1.11.0.ebuild b/sci-libs/onnx/onnx-1.11.0-r1.ebuild |
18 |
similarity index 73% |
19 |
rename from sci-libs/onnx/onnx-1.11.0.ebuild |
20 |
rename to sci-libs/onnx/onnx-1.11.0-r1.ebuild |
21 |
index 8a650bee773f..5b2ac804bf1d 100644 |
22 |
--- a/sci-libs/onnx/onnx-1.11.0.ebuild |
23 |
+++ b/sci-libs/onnx/onnx-1.11.0-r1.ebuild |
24 |
@@ -2,7 +2,8 @@ |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
EAPI=8 |
28 |
-inherit cmake |
29 |
+PYTHON_COMPAT=( python3_{8..11} ) |
30 |
+inherit python-any-r1 cmake |
31 |
|
32 |
DESCRIPTION="Open Neural Network Exchange (ONNX)" |
33 |
HOMEPAGE="https://github.com/onnx/onnx" |
34 |
@@ -17,7 +18,17 @@ RESTRICT="test" |
35 |
DEPEND="" |
36 |
RDEPEND="${DEPEND} |
37 |
dev-libs/protobuf" |
38 |
-BDEPEND="dev-util/patchelf" |
39 |
+BDEPEND=" |
40 |
+ ${PYTHON_DEPS} |
41 |
+ dev-util/patchelf |
42 |
+" |
43 |
+ |
44 |
+src_configure() { |
45 |
+ local mycmakeargs=( |
46 |
+ -DONNX_USE_PROTOBUF_SHARED_LIBS=ON |
47 |
+ ) |
48 |
+ cmake_src_configure |
49 |
+} |
50 |
|
51 |
src_install() { |
52 |
cmake_src_install |