From b594445f39d99066071d80fc8efeba5c8f72cc35 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 5 May 2024 00:00:45 +0100 Subject: gentoo auto-resync : 05:05:2024 - 00:00:45 --- sci-libs/onnx/Manifest | 3 +- sci-libs/onnx/files/onnx-1.15.0-hidden.patch | 10 +++++ sci-libs/onnx/onnx-1.15.0-r1.ebuild | 63 ---------------------------- sci-libs/onnx/onnx-1.15.0-r2.ebuild | 62 +++++++++++++++++++++++++++ 4 files changed, 74 insertions(+), 64 deletions(-) create mode 100644 sci-libs/onnx/files/onnx-1.15.0-hidden.patch delete mode 100644 sci-libs/onnx/onnx-1.15.0-r1.ebuild create mode 100644 sci-libs/onnx/onnx-1.15.0-r2.ebuild (limited to 'sci-libs/onnx') diff --git a/sci-libs/onnx/Manifest b/sci-libs/onnx/Manifest index 968a445894eb..9caa17518035 100644 --- a/sci-libs/onnx/Manifest +++ b/sci-libs/onnx/Manifest @@ -1,7 +1,8 @@ AUX onnx-1.14.0-cxx_14.patch 390 BLAKE2B adae69890eec31f16de501ef3b2fc88e5dff2d0fb561d470955daa6830e7a818d35c80789cbbedd874e11776a59f07fafe9576ee11e6a0fb45fc8635fb6ef81f SHA512 7a89e24067909b1106753bd2853fc51da3d8a567c452d72d53ea321c13c78c46dbca356e3fbe78d98e301a360b93090644861c3a0d8ab6022f9666c0ee788be1 AUX onnx-1.14.1-musl.patch 518 BLAKE2B 540d5c81d43a515ca6c4598057b80ad2157ba528dd976306175ff68e9fb0e8d05d1a92a2d6c706470017750f86ae48f30c91ae21e44627679e7b3ec8cf6e1a43 SHA512 6e198ee14da82c0fe0512d587de5da0831fbc40ac546407dc27b2ed5c75e9aa87bb0d732c6ebd6099f26ac926ad7afaed131a914352e58f9956697ab55cbf933 +AUX onnx-1.15.0-hidden.patch 511 BLAKE2B 857a4ff9597a25430e2236c2d9de47c1203e630a4adfe8e4cdb72ddfb928f0327e2a625ad91e936e4d3f71bc4aa135bbd15abcf348958238075d356d47d3291b SHA512 a4dbcbae79af1ef1edc8ec8aa27eb0303c1a52baf7db74e70f2d1e6a35db7d5ed2205f7f10f34fdcd3ac536b029edf749b9eb8f7926ac2b620ac7a4b59884182 DIST onnx-1.14.1.tar.gz 11570627 BLAKE2B df478219b5d557ad7e0717377996eefc02baa88a89d9681b17e00670e42fa3c8e47db0f5c5fdfab682fa7d80032559da8276c5106a91a7599d190427e2b6e4a8 SHA512 f846fffb286c4aeadc01462f220515f0a5c2ce1cbec849da7092a08c2676f8308af7315318a2866e9182f9aed719984ef95a9ddc69ffe0e62e40664395df5efd DIST onnx-1.15.0.tar.gz 12360484 BLAKE2B 4d35b82c128a69124b9bfcb3e56b3d584b7451ae739a91039e201dd485efa3e90e34e6cf135993317622f8f524160a38556231b2b0561e93d8cd0487abf35c1b SHA512 b46a4ab70af88053318eba45251c1f71528f15e45a33042877570e8d857febd3ec66e2e811fcda2105a4f17b84c9a1c6a0aaa22756c3287321b3ea29e83127fd EBUILD onnx-1.14.1-r2.ebuild 1287 BLAKE2B 981384a06007a6e1d0bbe602a6ab46cf856a5f6c07223599fbebfd23f2dfef4ded766367580b11e635421b0fb94ca0574fde853ee6dadb4d5f50e978a1eec1b9 SHA512 98cd76cee92bebe93192cce202fd7caf4cbb42d0afcf312acbdcb57992ccc1a7efe1f9cc3d1dc9df9cdc657b5c1ae4bfb2d6e5f86624f4bb6b5853d6a19ec952 -EBUILD onnx-1.15.0-r1.ebuild 1181 BLAKE2B fb08ccfcb7f183d1143e516a66b49e714bebd2d88abb7838d1c5b66eb1d4dd9b767f87ae6987eef2d6f2ea5781261c07f0c24cbc49ac02601c2468c47a434929 SHA512 a4ee45c2f908e05f4fda7f9d418576182f77174543c176cd290137129017b56b49d7f7061c84f561bcaf2e1d659456746c9b1b49d86f2f164dbeb812fdb00bc8 +EBUILD onnx-1.15.0-r2.ebuild 1277 BLAKE2B 4c23680e30e41f6f7887ff21bdb7f5536feaf2cc702cab4edae00131168a834f854646c70acee084d15713be26ac2bc19337b4f2124d0a9c404d0da849f380ec SHA512 473ae0657d5a90479b1e20d76e17607dddbc411b9d6fee6af15a2167201ae5fad9f2c40cf4ddd49cfe1a81611475b2d36704278aca68e06834ce146cb2841be7 MISC metadata.xml 322 BLAKE2B a78b6feffba2cf354154448a0e0cef5e866ec51ff0158939e7a5be1f3c4cb9bb3b29ae88ae06540627946fc3e0f6e9a63ef4d8951385e840a7a87ada99e1d50a SHA512 9d81e8e43822232c8c8cf690b6bdb9939f04adeb9230f8225a5b0b10083f9555304768901c46cc5d29c41038397bbb3b12e0111c3d0443f4c0003e99b99fc50f diff --git a/sci-libs/onnx/files/onnx-1.15.0-hidden.patch b/sci-libs/onnx/files/onnx-1.15.0-hidden.patch new file mode 100644 index 000000000000..b500c01a91bc --- /dev/null +++ b/sci-libs/onnx/files/onnx-1.15.0-hidden.patch @@ -0,0 +1,10 @@ +--- a/CMakeLists.txt 2024-05-04 19:39:17.464135798 +0200 ++++ b/CMakeLists.txt 2024-05-04 19:39:23.155068064 +0200 +@@ -496,7 +496,6 @@ + else() + # On non-Windows, hide all symbols we don't need + set(ONNX_API_DEFINE "-DONNX_API=__attribute__\(\(__visibility__\(\"default\"\)\)\)") +- set_target_properties(onnx_proto PROPERTIES CXX_VISIBILITY_PRESET hidden) + set_target_properties(onnx_proto PROPERTIES VISIBILITY_INLINES_HIDDEN 1) + endif() + target_compile_definitions(onnx_proto PRIVATE ${ONNX_API_DEFINE}) diff --git a/sci-libs/onnx/onnx-1.15.0-r1.ebuild b/sci-libs/onnx/onnx-1.15.0-r1.ebuild deleted file mode 100644 index 8e846b3e6d5f..000000000000 --- a/sci-libs/onnx/onnx-1.15.0-r1.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 2022-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 -DISTUTILS_USE_PEP517=setuptools -DISTUTILS_EXT=1 -PYTHON_COMPAT=( python3_{9..12} ) -inherit distutils-r1 cmake - -DESCRIPTION="Open Neural Network Exchange (ONNX)" -HOMEPAGE="https://github.com/onnx/onnx" -SRC_URI="https://github.com/onnx/${PN}/archive/refs/tags/v${PV}.tar.gz - -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~riscv" -RESTRICT="test" - -RDEPEND=" - dev-python/protobuf-python[${PYTHON_USEDEP}] - dev-python/pybind11[${PYTHON_USEDEP}] - dev-libs/protobuf:= -" -DEPEND="${RDEPEND}" - -src_prepare() { - cmake_src_prepare - distutils-r1_src_prepare -} - -python_configure_all() { - mycmakeargs=( - -DONNX_USE_PROTOBUF_SHARED_LIBS=ON - -DONNX_USE_LITE_PROTO=ON - ) - cmake_src_configure -} - -src_configure() { - distutils-r1_src_configure -} - -python_compile_all() { - cmake_src_compile -} - -src_compile() { - mycmakeargs=( - -DONNX_USE_PROTOBUF_SHARED_LIBS=ON - -DONNX_USE_LITE_PROTO=ON - ) - CMAKE_ARGS="${mycmakeargs[@]}" distutils-r1_src_compile -} - -python_install_all() { - cmake_src_install - distutils-r1_python_install_all -} - -src_install() { - distutils-r1_src_install -} diff --git a/sci-libs/onnx/onnx-1.15.0-r2.ebuild b/sci-libs/onnx/onnx-1.15.0-r2.ebuild new file mode 100644 index 000000000000..63e8ab1695e9 --- /dev/null +++ b/sci-libs/onnx/onnx-1.15.0-r2.ebuild @@ -0,0 +1,62 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_OPTIONAL=1 +DISTUTILS_EXT=1 +PYTHON_COMPAT=( python3_{9..12} ) +inherit distutils-r1 cmake + +DESCRIPTION="Open Neural Network Exchange (ONNX)" +HOMEPAGE="https://github.com/onnx/onnx" +SRC_URI="https://github.com/onnx/${PN}/archive/refs/tags/v${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~riscv" +IUSE="python" +RESTRICT="test" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + python? ( + ${PYTHON_DEPS} + dev-python/protobuf-python[${PYTHON_USEDEP}] + dev-python/pybind11[${PYTHON_USEDEP}] + ) + dev-libs/protobuf:= +" +DEPEND="${RDEPEND}" + +BDEPEND="python? ( + ${DISTUTILS_DEPS} +)" + +PATCHES=( "${FILESDIR}"/${P}-hidden.patch ) + +src_prepare() { + cmake_src_prepare + use python && distutils-r1_src_prepare +} + +src_configure() { + mycmakeargs=( + -DONNX_USE_PROTOBUF_SHARED_LIBS=ON + -DONNX_USE_LITE_PROTO=ON + -DONNX_BUILD_SHARED_LIBS=ON + ) + cmake_src_configure + use python && distutils-r1_src_configure +} + +src_compile() { + cmake_src_compile + use python && CMAKE_ARGS="${mycmakeargs[@]}" distutils-r1_src_compile +} + +src_install() { + cmake_src_install + use python && distutils-r1_src_install +} -- cgit v1.2.3