sci-libs/onnx: add IUSE to disable static registration

Closes: https://bugs.gentoo.org/928041
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2024-05-07 08:20:28 +02:00
parent 054445e9aa
commit 032cba57e5
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -5,6 +5,9 @@
<email>tupone@gentoo.org</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>
+3
View File
@@ -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
}