Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/z3/files/, sci-mathematics/z3/
Date: Wed, 10 Apr 2019 15:07:44
Message-Id: 1554908845.6785f3b5e8a6e7969ed07ed59c5b2e7a82aea188.mgorny@gentoo
1 commit: 6785f3b5e8a6e7969ed07ed59c5b2e7a82aea188
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 10 14:34:28 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 10 15:07:25 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6785f3b5
7
8 sci-mathematics/z3: Drop old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sci-mathematics/z3/Manifest | 1 -
13 sci-mathematics/z3/files/z3-4.4.1-gcc-6.patch | 18 ---
14 sci-mathematics/z3/z3-4.4.1.ebuild | 178 --------------------------
15 3 files changed, 197 deletions(-)
16
17 diff --git a/sci-mathematics/z3/Manifest b/sci-mathematics/z3/Manifest
18 index 8fa3186e1cc..6ef6cbd0cc1 100644
19 --- a/sci-mathematics/z3/Manifest
20 +++ b/sci-mathematics/z3/Manifest
21 @@ -1,3 +1,2 @@
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/files/z3-4.4.1-gcc-6.patch b/sci-mathematics/z3/files/z3-4.4.1-gcc-6.patch
27 deleted file mode 100644
28 index 2dc0ddd12f2..00000000000
29 --- a/sci-mathematics/z3/files/z3-4.4.1-gcc-6.patch
30 +++ /dev/null
31 @@ -1,18 +0,0 @@
32 -diff --git a/src/util/debug.cpp b/src/util/debug.cpp
33 -index 54c67fe..66676c6 100644
34 ---- a/src/util/debug.cpp
35 -+++ b/src/util/debug.cpp
36 -@@ -78,3 +78,3 @@ void invoke_gdb() {
37 - char result;
38 -- bool ok = (std::cin >> result);
39 -+ bool ok = bool(std::cin >> result);
40 - if (!ok) exit(ERR_INTERNAL_FATAL); // happens if std::cin is eof or unattached.
41 -diff --git a/src/util/mpz.cpp b/src/util/mpz.cpp
42 -index 8559279..7dca14b 100644
43 ---- a/src/util/mpz.cpp
44 -+++ b/src/util/mpz.cpp
45 -@@ -136,3 +136,3 @@ mpz_manager<SYNCH>::mpz_manager():
46 - mpz one(1);
47 -- set(m_two64, UINT64_MAX);
48 -+ set(m_two64, (uint64)UINT64_MAX);
49 - add(m_two64, one, m_two64);
50
51 diff --git a/sci-mathematics/z3/z3-4.4.1.ebuild b/sci-mathematics/z3/z3-4.4.1.ebuild
52 deleted file mode 100644
53 index 8fd027f17fe..00000000000
54 --- a/sci-mathematics/z3/z3-4.4.1.ebuild
55 +++ /dev/null
56 @@ -1,178 +0,0 @@
57 -# Copyright 1999-2017 Gentoo Foundation
58 -# Distributed under the terms of the GNU General Public License v2
59 -
60 -EAPI=6
61 -
62 -PYTHON_COMPAT=( python2_7 )
63 -
64 -inherit flag-o-matic java-pkg-2 java-pkg-simple python-r1 toolchain-funcs
65 -
66 -DESCRIPTION="An efficient theorem prover"
67 -HOMEPAGE="http://z3.codeplex.com/"
68 -SRC_URI="https://github.com/Z3Prover/z3/archive/${P}.tar.gz"
69 -
70 -SLOT="0"
71 -LICENSE="MIT"
72 -KEYWORDS="~amd64 ~x86"
73 -IUSE="doc examples gmp isabelle java python"
74 -
75 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
76 -
77 -RDEPEND="${PYTHON_DEPS}
78 - gmp? ( dev-libs/gmp:0 )"
79 -DEPEND="${RDEPEND}
80 - java? ( >=virtual/jdk-1.8 )"
81 -
82 -S=${WORKDIR}/${PN}-${P}
83 -JAVA_SRC_DIR=${S}/src/api/java
84 -
85 -SO1="0"
86 -SO2="1"
87 -SOVER="${SO1}.${SO2}"
88 -
89 -pkg_setup() {
90 - python_setup
91 -
92 - if [[ ${MERGE_TYPE} != binary ]]; then
93 - if [[ $(tc-getCXX)$ == *g++* ]] && ! tc-has-openmp; then
94 - ewarn "Please use an openmp compatible compiler"
95 - ewarn "like >gcc-4.2 with USE=openmp"
96 - die "Openmp support missing in compiler"
97 - fi
98 - fi
99 -}
100 -
101 -src_prepare() {
102 - eapply "${FILESDIR}"/${P}-gcc-6.patch
103 - default
104 -
105 - sed \
106 - -e 's:-O3::g' \
107 - -e 's:-fomit-frame-pointer::' \
108 - -e 's:-msse2::g' \
109 - -e 's:-msse::g' \
110 - -e "/LINK_EXTRA_FLAGS/s:@LDFLAGS@:-lrt $(usex gmp -lgmp ""):g" \
111 - -e 's:t@\$:t\$:g' \
112 - -i scripts/*mk* || die
113 -
114 - sed \
115 - -e "s:SLIBEXTRAFLAGS = '':SLIBEXTRAFLAGS = '-Wl,-soname,lib${PN}.so.${SOVER}':" \
116 - -i scripts/mk_util.py || die
117 -
118 - append-ldflags -fopenmp
119 -
120 - cat <<- EOF > "${S}/src/api/python/__init__.py" || die
121 - from .z3 import *
122 -
123 - from . import z3num
124 - from . import z3poly
125 - from . import z3printer
126 - from . import z3rcf
127 - from . import z3types
128 - from . import z3util
129 -
130 - # generated files
131 - from . import z3core
132 - from . import z3consts
133 - EOF
134 -}
135 -
136 -src_configure() {
137 - export Z3_INSTALL_LIB_DIR="$(get_libdir)"
138 - export Z3_INSTALL_INCLUDE_DIR="include/z3"
139 - set -- \
140 - $(usex gmp --gmp "") \
141 - $(usex java --java "")
142 - echo ./configure "$@" >&2
143 - ./configure "$@" || die
144 - ${EPYTHON} scripts/mk_make.py || die
145 -}
146 -
147 -src_compile() {
148 - emake \
149 - --directory="build" \
150 - CXX=$(tc-getCXX) \
151 - LINK="$(tc-getCXX) ${LDFLAGS}" \
152 - LINK_FLAGS="${LDFLAGS}"
153 -
154 - use java && java-pkg-simple_src_compile
155 -}
156 -
157 -src_install() {
158 - dodir /usr/include/${PN}
159 - insinto /usr/include/${PN}
160 - doins src/api/z3*.h src/api/c++/z3*.h
161 - dolib.so build/lib${PN}.so
162 - dosym "/usr/$(get_libdir)/lib${PN}.so" \
163 - "/usr/$(get_libdir)/lib${PN}.so.${SO1}" \
164 - || die "Could not create /usr/$(get_libdir)/lib${PN}.so.${SO1} symlink"
165 - dosym "/usr/$(get_libdir)/lib${PN}.so" \
166 - "/usr/$(get_libdir)/lib${PN}.so.${SOVER}" \
167 - || die "Could not create libz3.so soname symlink"
168 - dobin build/z3
169 -
170 - if use examples; then
171 - insinto /usr/share/${PN}
172 - doins -r examples
173 - fi
174 -
175 - if use python; then
176 - python_moduleinto "${PN}"
177 - instpybind() {
178 - python_domodule src/api/python/*.py
179 - dosym "/usr/$(get_libdir)/lib${PN}.so" \
180 - "$(python_get_sitedir)/${PN}/lib${PN}.so" \
181 - || die "Could not create $(python_get_sitedir)/lib${PN}.so symlink for python module"
182 - }
183 - python_foreach_impl instpybind
184 - fi
185 -
186 - use java && java-pkg-simple_src_install
187 -
188 - if use isabelle; then
189 - ISABELLE_HOME="${ROOT}usr/share/Isabelle"
190 - dodir "${ISABELLE_HOME}/contrib/${PN}-${PV}/etc"
191 - cat <<- EOF >> "${S}/settings" || die
192 - Z3_COMPONENT="\$COMPONENT"
193 - Z3_HOME="${ROOT}usr/bin"
194 - Z3_SOLVER="${ROOT}usr/bin/z3"
195 - Z3_REMOTE_SOLVER="z3"
196 - Z3_VERSION="${PV}"
197 - Z3_INSTALLED="yes"
198 - Z3_NON_COMMERCIAL="yes"
199 - EOF
200 - insinto "${ISABELLE_HOME}/contrib/${PN}-${PV}/etc"
201 - doins "${S}/settings"
202 - fi
203 -
204 - local DOCS=( "README" "RELEASE_NOTES" )
205 - use doc && einstalldocs
206 -}
207 -
208 -pkg_postinst() {
209 - if use isabelle; then
210 - if [ -f "${ROOT}etc/isabelle/components" ]; then
211 - if egrep "contrib/${PN}-[0-9.]*" "${ROOT}etc/isabelle/components"; then
212 - sed -e "/contrib\/${PN}-[0-9.]*/d" \
213 - -i "${ROOT}etc/isabelle/components"
214 - fi
215 - cat <<- EOF >> "${ROOT}etc/isabelle/components"
216 - contrib/${PN}-${PV}
217 - EOF
218 - fi
219 - fi
220 -}
221 -
222 -pkg_postrm() {
223 - if use isabelle; then
224 - if [ ! -f "${ROOT}usr/bin/Z3" ]; then
225 - if [ -f "${ROOT}etc/isabelle/components" ]; then
226 - # Note: this sed should only match the version of this ebuild
227 - # Which is what we want as we do not want to remove the line
228 - # of a new Isabelle component being installed during an upgrade.
229 - sed -e "/contrib\/${PN}-${PV}/d" \
230 - -i "${ROOT}etc/isabelle/components"
231 - fi
232 - fi
233 - fi
234 -}