1 |
commit: 161f54d839375b13907191e4d31f31ebb28effee |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 13 12:49:21 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 13 14:28:45 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=161f54d8 |
7 |
|
8 |
sci-mathematics/z3: Bump to 4.8.4 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/673506 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
sci-mathematics/z3/Manifest | 1 + |
14 |
sci-mathematics/z3/z3-4.8.4.ebuild | 106 +++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 107 insertions(+) |
16 |
|
17 |
diff --git a/sci-mathematics/z3/Manifest b/sci-mathematics/z3/Manifest |
18 |
index 135a75b7e23..29f6e9034b3 100644 |
19 |
--- a/sci-mathematics/z3/Manifest |
20 |
+++ b/sci-mathematics/z3/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST z3-4.4.1.tar.gz 3347371 BLAKE2B 57f090b891618613c4647a89620d12f2ac05ea110268e63b343594f53fa2cc7aa347781001e2778ea7dc1ce475c964ddeced7a82c304b4be706ad164fd17a285 SHA512 76991a24f47f2b53ceb8d7a9a6be19913c57994ffb6cf6acfe30f61b2e73959cf02a99f656053594fccb5aaf4d1f44b3ae7e51f1c8953b213d738ceeeaea74f8 |
23 |
DIST z3-4.5.0.tar.gz 3573695 BLAKE2B 285cc4d1f998d61ddb0b854044b7c79c1bb4cccf51bbdcba7c4a45698d74d9591f84d0aa74c5ef7c8aea2c6539ac987f29e326b44037e954108df67644dff594 SHA512 1ebc2c908d90b6b879f1e819c864ff894613276af47a440f27cf94968c195656952434754c3eb20f4bdbdd8497d227d22e1b4821c0d320b11052b5648d9e2dc7 |
24 |
DIST z3-4.8.3.tar.gz 4119116 BLAKE2B 02535832a28ba09bb5b5c9354c77941bdce29fe977fa88d59e2e757fd6242b7d9ffcb0bbc0f9462ac7fd58bc29020be848b27311cf3f51cd60e84f66713a05e1 SHA512 34a2dca0083ed469fdaf5ac062dda26248633245607ddd9ef90629c5f76ae30f87bfa4191c04ba9be7a617bf182a1bd00b59fd2274699e12ece69b86088c8044 |
25 |
+DIST z3-4.8.4.tar.gz 4117081 BLAKE2B 6912defbae0e5444c451c4d7c6fb5d51167a1ae166257c7bfc53044ce7e9b9c4bd9824986c2ae1e6abfd6fef495234c9bea60078f8db2c1faaae11f34d666831 SHA512 4660ba6ab33a6345b2e8396c332d4afcfc73eda66ceb2595a39f152df4d62a9ea0f349b0f9212389ba84ecba6bdae6ad9b62b376ba44dc4d9c74f80d7a818bf4 |
26 |
|
27 |
diff --git a/sci-mathematics/z3/z3-4.8.4.ebuild b/sci-mathematics/z3/z3-4.8.4.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..5f7ce1c77b0 |
30 |
--- /dev/null |
31 |
+++ b/sci-mathematics/z3/z3-4.8.4.ebuild |
32 |
@@ -0,0 +1,106 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} ) |
39 |
+ |
40 |
+inherit cmake-multilib python-single-r1 toolchain-funcs |
41 |
+ |
42 |
+DESCRIPTION="An efficient theorem prover" |
43 |
+HOMEPAGE="https://github.com/Z3Prover/z3/" |
44 |
+SRC_URI="https://github.com/Z3Prover/z3/archive/${P}.tar.gz" |
45 |
+ |
46 |
+SLOT="0/4.8" |
47 |
+LICENSE="MIT" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+IUSE="doc examples gmp isabelle java openmp python" |
50 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
51 |
+ |
52 |
+RDEPEND="${PYTHON_DEPS} |
53 |
+ gmp? ( dev-libs/gmp:0=[${MULTILIB_USEDEP}] )" |
54 |
+DEPEND="${RDEPEND} |
55 |
+ doc? ( app-doc/doxygen ) |
56 |
+ java? ( >=virtual/jdk-1.8 )" |
57 |
+ |
58 |
+S=${WORKDIR}/${PN}-${P} |
59 |
+ |
60 |
+CMAKE_BUILD_TYPE=RelWithDebInfo |
61 |
+ |
62 |
+pkg_setup() { |
63 |
+ python_setup |
64 |
+ |
65 |
+ if [[ ${MERGE_TYPE} != binary ]]; then |
66 |
+ if use openmp && ! tc-has-openmp; then |
67 |
+ ewarn "Please use an openmp compatible compiler" |
68 |
+ ewarn "like >gcc-4.2 with USE=openmp" |
69 |
+ die "Openmp support missing in compiler" |
70 |
+ fi |
71 |
+ fi |
72 |
+} |
73 |
+ |
74 |
+multilib_src_configure() { |
75 |
+ local mycmakeargs=( |
76 |
+ -DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${P}" |
77 |
+ -DUSE_LIB_GMP=$(usex gmp) |
78 |
+ -DUSE_OPENMP=$(usex openmp) |
79 |
+ -DENABLE_EXAMPLE_TARGETS=OFF |
80 |
+ -DBUILD_DOCUMENTATION=$(multilib_native_usex doc) |
81 |
+ -DBUILD_PYTHON_BINDINGS=$(multilib_native_usex python) |
82 |
+ -DBUILD_JAVA_BINDINGS=$(multilib_native_usex java) |
83 |
+ ) |
84 |
+ |
85 |
+ cmake-utils_src_configure |
86 |
+} |
87 |
+ |
88 |
+multilib_src_test() { |
89 |
+ cmake-utils_src_make test-z3 |
90 |
+ set -- "${BUILD_DIR}"/test-z3 /a |
91 |
+ echo "${@}" >&2 |
92 |
+ "${@}" || die |
93 |
+} |
94 |
+ |
95 |
+multilib_src_install_all() { |
96 |
+ dodoc README.md RELEASE_NOTES |
97 |
+ use examples && dodoc -r examples |
98 |
+ use python && python_optimize |
99 |
+ |
100 |
+ if use isabelle; then |
101 |
+ insinto /usr/share/Isabelle/contrib/${P}/etc |
102 |
+ newins - settings <<-EOF |
103 |
+ Z3_COMPONENT="\$COMPONENT" |
104 |
+ Z3_HOME="${EPREFIX}/usr/bin" |
105 |
+ Z3_SOLVER="${EPREFIX}/usr/bin/z3" |
106 |
+ Z3_REMOTE_SOLVER="z3" |
107 |
+ Z3_VERSION="${PV}" |
108 |
+ Z3_INSTALLED="yes" |
109 |
+ Z3_NON_COMMERCIAL="yes" |
110 |
+ EOF |
111 |
+ fi |
112 |
+} |
113 |
+ |
114 |
+pkg_postinst() { |
115 |
+ if use isabelle; then |
116 |
+ if [[ -f ${ROOT%/}/etc/isabelle/components ]]; then |
117 |
+ sed -e "/contrib\/${PN}-[0-9.]*/d" \ |
118 |
+ -i "${ROOT%/}/etc/isabelle/components" || die |
119 |
+ cat <<-EOF >> "${ROOT%/}/etc/isabelle/components" || die |
120 |
+ contrib/${P} |
121 |
+ EOF |
122 |
+ fi |
123 |
+ fi |
124 |
+} |
125 |
+ |
126 |
+pkg_postrm() { |
127 |
+ if use isabelle; then |
128 |
+ if [[ ! ${REPLACING_VERSIONS} ]]; then |
129 |
+ if [[ -f "${ROOT%/}/etc/isabelle/components" ]]; then |
130 |
+ # Note: this sed should only match the version of this ebuild |
131 |
+ # Which is what we want as we do not want to remove the line |
132 |
+ # of a new Isabelle component being installed during an upgrade. |
133 |
+ sed -e "/contrib\/${P}/d" \ |
134 |
+ -i "${ROOT%/}/etc/isabelle/components" || die |
135 |
+ fi |
136 |
+ fi |
137 |
+ fi |
138 |
+} |