commit: 032cba57e50bcdb9785ba532198cb8ad236f52b4 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Tue May 7 06:19:41 2024 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Tue May 7 06:20:28 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=032cba57
sci-libs/onnx: add IUSE to disable static registration Closes: https://bugs.gentoo.org/928041 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> sci-libs/onnx/metadata.xml | 3 +++ sci-libs/onnx/onnx-1.16.0.ebuild | 3 +++ 2 files changed, 6 insertions(+) diff --git a/sci-libs/onnx/metadata.xml b/sci-libs/onnx/metadata.xml index 2a58de7a87a9..e06b5c6e88c2 100644 --- a/sci-libs/onnx/metadata.xml +++ b/sci-libs/onnx/metadata.xml @@ -5,6 +5,9 @@ <email>[email protected]</email> <name>Tupone Alfredo</name> </maintainer> + <use> + <flag name="disableStaticReg">Disable Static Registration</flag> + </use> <upstream> <remote-id type="github">onnx/onnx</remote-id> </upstream> diff --git a/sci-libs/onnx/onnx-1.16.0.ebuild b/sci-libs/onnx/onnx-1.16.0.ebuild index e5a6b1c71b41..498d770d736d 100644 --- a/sci-libs/onnx/onnx-1.16.0.ebuild +++ b/sci-libs/onnx/onnx-1.16.0.ebuild @@ -15,6 +15,7 @@ SRC_URI="https://github.com/onnx/${PN}/archive/refs/tags/v${PV}.tar.gz LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~riscv" +IUSE="disableStaticReg" RESTRICT="test" RDEPEND=" @@ -36,6 +37,7 @@ python_configure_all() -DONNX_USE_PROTOBUF_SHARED_LIBS=ON -DONNX_USE_LITE_PROTO=ON -DONNX_BUILD_SHARED_LIBS=ON + -DONNX_DISABLE_STATIC_REGISTRATION=$(usex disableStaticReg ON OFF) ) cmake_src_configure } @@ -49,6 +51,7 @@ src_compile() { -DONNX_USE_PROTOBUF_SHARED_LIBS=ON -DONNX_USE_LITE_PROTO=ON -DONNX_BUILD_SHARED_LIBS=ON + -DONNX_DISABLE_STATIC_REGISTRATION=$(usex disableStaticReg ON OFF) ) CMAKE_ARGS="${mycmakeargs[@]}" distutils-r1_src_compile }
