1 |
commit: 9a42cd8464b298ba349f0f3a4f49d965412df85c |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 19 12:21:37 2022 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 19 12:21:37 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a42cd84 |
7 |
|
8 |
sci-libs/onnx: add to tree |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
sci-libs/onnx/Manifest | 1 + |
14 |
sci-libs/onnx/metadata.xml | 11 +++++++++++ |
15 |
sci-libs/onnx/onnx-1.11.0.ebuild | 29 +++++++++++++++++++++++++++++ |
16 |
3 files changed, 41 insertions(+) |
17 |
|
18 |
diff --git a/sci-libs/onnx/Manifest b/sci-libs/onnx/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000000..7ff467655359 |
21 |
--- /dev/null |
22 |
+++ b/sci-libs/onnx/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST onnx-1.11.0.tar.gz 9464979 BLAKE2B dfc8ab81d4776f806fa26c751c1eb1e19ea4cf9f0aa498880dc18eca160fdd9c43eda0077124ea7a674082e5ed93de7497411c48c3f9a12146905072e6477af6 SHA512 dc7045702188d7f40fead3ab6eccd8ff63357824c36873b415ad989d19aa952ff2c3758120de9050d84d92a35993198971be54ffa8e8d99fc70aa1b14b2ff73e |
25 |
|
26 |
diff --git a/sci-libs/onnx/metadata.xml b/sci-libs/onnx/metadata.xml |
27 |
new file mode 100644 |
28 |
index 000000000000..2a58de7a87a9 |
29 |
--- /dev/null |
30 |
+++ b/sci-libs/onnx/metadata.xml |
31 |
@@ -0,0 +1,11 @@ |
32 |
+<?xml version="1.0" encoding="UTF-8"?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+<pkgmetadata> |
35 |
+ <maintainer type="person"> |
36 |
+ <email>tupone@g.o</email> |
37 |
+ <name>Tupone Alfredo</name> |
38 |
+ </maintainer> |
39 |
+ <upstream> |
40 |
+ <remote-id type="github">onnx/onnx</remote-id> |
41 |
+ </upstream> |
42 |
+</pkgmetadata> |
43 |
|
44 |
diff --git a/sci-libs/onnx/onnx-1.11.0.ebuild b/sci-libs/onnx/onnx-1.11.0.ebuild |
45 |
new file mode 100644 |
46 |
index 000000000000..8a650bee773f |
47 |
--- /dev/null |
48 |
+++ b/sci-libs/onnx/onnx-1.11.0.ebuild |
49 |
@@ -0,0 +1,29 @@ |
50 |
+# Copyright 2022 Gentoo Authors |
51 |
+# Distributed under the terms of the GNU General Public License v2 |
52 |
+ |
53 |
+EAPI=8 |
54 |
+inherit cmake |
55 |
+ |
56 |
+DESCRIPTION="Open Neural Network Exchange (ONNX)" |
57 |
+HOMEPAGE="https://github.com/onnx/onnx" |
58 |
+SRC_URI="https://github.com/onnx/${PN}/archive/refs/tags/v${PV}.tar.gz |
59 |
+ -> ${P}.tar.gz" |
60 |
+ |
61 |
+LICENSE="Apache-2.0" |
62 |
+SLOT="0" |
63 |
+KEYWORDS="~amd64" |
64 |
+RESTRICT="test" |
65 |
+ |
66 |
+DEPEND="" |
67 |
+RDEPEND="${DEPEND} |
68 |
+ dev-libs/protobuf" |
69 |
+BDEPEND="dev-util/patchelf" |
70 |
+ |
71 |
+src_install() { |
72 |
+ cmake_src_install |
73 |
+ |
74 |
+ patchelf --set-soname libonnxifi.so "${D}"/usr/lib/libonnxifi.so \ |
75 |
+ || die |
76 |
+ mv "${D}"/usr/lib/libonnxifi.so "${D}"/usr/$(get_libdir)/libonnxifi.so \ |
77 |
+ || die |
78 |
+} |