summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2021-06-20 04:14:38 +0300
committerSam James <sam@gentoo.org>2021-10-20 02:15:38 +0000
commit743dc8f916fcbd4bef81a6f933c61f5a77a6a1f9 (patch)
treef23947bced0e603561d6ca82a83236ce3e23fea8 /sci-mathematics/z3
parentapp-admin/evtxtools: EAPI 5 -> 8 (diff)
downloadgentoo-743dc8f916fcbd4bef81a6f933c61f5a77a6a1f9.tar.gz
gentoo-743dc8f916fcbd4bef81a6f933c61f5a77a6a1f9.tar.bz2
gentoo-743dc8f916fcbd4bef81a6f933c61f5a77a6a1f9.zip
sci-mathematics/z3: fix build failure with USE="java"
Closes:https://bugs.gentoo.org/673126 Signed-off-by: Alexander Golubev <fatzer2@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/21338 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-mathematics/z3')
-rw-r--r--sci-mathematics/z3/z3-4.8.11b.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/sci-mathematics/z3/z3-4.8.11b.ebuild b/sci-mathematics/z3/z3-4.8.11b.ebuild
index d4386c546aac..aec3b57fd997 100644
--- a/sci-mathematics/z3/z3-4.8.11b.ebuild
+++ b/sci-mathematics/z3/z3-4.8.11b.ebuild
@@ -6,7 +6,7 @@ EAPI=7
CMAKE_ECLASS=cmake
PYTHON_COMPAT=( python3_{8..10} )
-inherit cmake-multilib python-single-r1 toolchain-funcs
+inherit cmake-multilib java-pkg-opt-2 python-single-r1 toolchain-funcs
DESCRIPTION="An efficient theorem prover"
HOMEPAGE="https://github.com/Z3Prover/z3/"
@@ -28,6 +28,11 @@ BDEPEND="
CMAKE_BUILD_TYPE=RelWithDebInfo
+src_prepare() {
+ cmake_src_prepare
+ java-pkg-opt-2_src_prepare
+}
+
multilib_src_configure() {
local mycmakeargs=(
-DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${P}"
@@ -40,6 +45,8 @@ multilib_src_configure() {
-DZ3_INCLUDE_GIT_HASH=OFF
)
+ multilib_is_native_abi && use java && mycmakeargs+=( -DJAVA_HOME="$(java-config -g JAVA_HOME )" )
+
cmake_src_configure
}