1 |
commit: adbd9386378183c2addda58f8d605a820c8f7c5b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 24 08:36:48 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 24 09:05:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adbd9386 |
7 |
|
8 |
sci-mathematics/z3: Bump to 4.8.14 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sci-mathematics/z3/Manifest | 1 + |
13 |
sci-mathematics/z3/z3-4.8.14.ebuild | 103 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 104 insertions(+) |
15 |
|
16 |
diff --git a/sci-mathematics/z3/Manifest b/sci-mathematics/z3/Manifest |
17 |
index a1d351636d33..a7f702e0c88e 100644 |
18 |
--- a/sci-mathematics/z3/Manifest |
19 |
+++ b/sci-mathematics/z3/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST z3-4.8.11b.tar.gz 4801435 BLAKE2B 903a04246fe4dedc96fda653fa9e3a57a80b951d20b992306bd07bc778cf0a94cf36fe4ed3f178bb26196a1ca294834c784a117fe906d52b82f874a43869d110 SHA512 dfcfc85209dd00aa5f07de0a7e7186a33442b72b94b05c01f53350b9281551be2a2c21ad5e7814bc2c52a3329be8df578e6be8c387cbfdc3a9d3bef0611d6613 |
22 |
DIST z3-4.8.13.tar.gz 5103999 BLAKE2B 5500bbc71e7a863092a36bdd2bc04f5a4435e9d8fdc62c7956aa2546ffa9e39344c9528bf802f6e4c211c799e873f2673dbf8b113599dcbb694ac040ada2e9a0 SHA512 c5e8f34525ed3b6b2935d7f01ce2f90f5dd99b4cdd035664b36c967fb1c7f3b05abed45c7288e2261723e73d68728ee91a0f67d92012d86b04598d7b54369c30 |
23 |
+DIST z3-4.8.14.tar.gz 5113598 BLAKE2B c6a82cec33e879123c33506897ac02be682d08a6432da0b11c6918f2664fd7249d8874ccb6f543907f789cc3b40b126465548abeabf4ac16d2ee791ce179742a SHA512 10170516ca472258d2f9df28cd036e43023a76a25f1e1670290c62f3890d935bf82770970054a5fd3a0f02559409e7ed4b18fb08347c040ff2f9e0918e152aab |
24 |
|
25 |
diff --git a/sci-mathematics/z3/z3-4.8.14.ebuild b/sci-mathematics/z3/z3-4.8.14.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..488e59de75e0 |
28 |
--- /dev/null |
29 |
+++ b/sci-mathematics/z3/z3-4.8.14.ebuild |
30 |
@@ -0,0 +1,103 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+CMAKE_ECLASS=cmake |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+ |
39 |
+inherit cmake-multilib java-pkg-opt-2 python-single-r1 |
40 |
+ |
41 |
+DESCRIPTION="An efficient theorem prover" |
42 |
+HOMEPAGE="https://github.com/Z3Prover/z3/" |
43 |
+SRC_URI="https://github.com/Z3Prover/z3/archive/${P}.tar.gz" |
44 |
+S=${WORKDIR}/z3-${P} |
45 |
+ |
46 |
+SLOT="0/4.8" |
47 |
+LICENSE="MIT" |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" |
49 |
+IUSE="doc examples gmp isabelle java python" |
50 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
51 |
+ |
52 |
+RDEPEND="${PYTHON_DEPS} |
53 |
+ gmp? ( dev-libs/gmp:0=[cxx(+),${MULTILIB_USEDEP}] )" |
54 |
+DEPEND="${RDEPEND} |
55 |
+ java? ( >=virtual/jdk-1.8 )" |
56 |
+BDEPEND=" |
57 |
+ doc? ( app-doc/doxygen )" |
58 |
+ |
59 |
+CMAKE_BUILD_TYPE=RelWithDebInfo |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ cmake_src_prepare |
63 |
+ java-pkg-opt-2_src_prepare |
64 |
+} |
65 |
+ |
66 |
+multilib_src_configure() { |
67 |
+ local mycmakeargs=( |
68 |
+ -DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${P}" |
69 |
+ -DZ3_USE_LIB_GMP=$(usex gmp) |
70 |
+ -DZ3_ENABLE_EXAMPLE_TARGETS=OFF |
71 |
+ -DZ3_BUILD_DOCUMENTATION=$(multilib_native_usex doc) |
72 |
+ -DZ3_BUILD_PYTHON_BINDINGS=$(multilib_native_usex python) |
73 |
+ -DZ3_BUILD_JAVA_BINDINGS=$(multilib_native_usex java) |
74 |
+ -DZ3_INCLUDE_GIT_DESCRIBE=OFF |
75 |
+ -DZ3_INCLUDE_GIT_HASH=OFF |
76 |
+ ) |
77 |
+ |
78 |
+ multilib_is_native_abi && use java && mycmakeargs+=( -DJAVA_HOME="$(java-config -g JAVA_HOME )" ) |
79 |
+ |
80 |
+ cmake_src_configure |
81 |
+} |
82 |
+ |
83 |
+multilib_src_test() { |
84 |
+ cmake_build test-z3 |
85 |
+ set -- "${BUILD_DIR}"/test-z3 /a |
86 |
+ echo "${@}" >&2 |
87 |
+ "${@}" || die |
88 |
+} |
89 |
+ |
90 |
+multilib_src_install_all() { |
91 |
+ dodoc README.md RELEASE_NOTES |
92 |
+ use examples && dodoc -r examples |
93 |
+ use python && python_optimize |
94 |
+ |
95 |
+ if use isabelle; then |
96 |
+ insinto /usr/share/Isabelle/contrib/${P}/etc |
97 |
+ newins - settings <<-EOF |
98 |
+ Z3_COMPONENT="\$COMPONENT" |
99 |
+ Z3_HOME="${EPREFIX}/usr/bin" |
100 |
+ Z3_SOLVER="${EPREFIX}/usr/bin/z3" |
101 |
+ Z3_REMOTE_SOLVER="z3" |
102 |
+ Z3_VERSION="${PV}" |
103 |
+ Z3_INSTALLED="yes" |
104 |
+ Z3_NON_COMMERCIAL="yes" |
105 |
+ EOF |
106 |
+ fi |
107 |
+} |
108 |
+ |
109 |
+pkg_postinst() { |
110 |
+ if use isabelle; then |
111 |
+ if [[ -f ${ROOT}/etc/isabelle/components ]]; then |
112 |
+ sed -e "/contrib\/${PN}-[0-9.]*/d" \ |
113 |
+ -i "${ROOT}/etc/isabelle/components" || die |
114 |
+ cat <<-EOF >> "${ROOT}/etc/isabelle/components" || die |
115 |
+ contrib/${P} |
116 |
+ EOF |
117 |
+ fi |
118 |
+ fi |
119 |
+} |
120 |
+ |
121 |
+pkg_postrm() { |
122 |
+ if use isabelle; then |
123 |
+ if [[ ! ${REPLACING_VERSIONS} ]]; then |
124 |
+ if [[ -f "${ROOT}/etc/isabelle/components" ]]; then |
125 |
+ # Note: this sed should only match the version of this ebuild |
126 |
+ # Which is what we want as we do not want to remove the line |
127 |
+ # of a new Isabelle component being installed during an upgrade. |
128 |
+ sed -e "/contrib\/${P}/d" \ |
129 |
+ -i "${ROOT}/etc/isabelle/components" || die |
130 |
+ fi |
131 |
+ fi |
132 |
+ fi |
133 |
+} |