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