1 |
commit: bf0afeb07446590487741bffbf62884f0d5ca3c7 |
2 |
Author: Yichao Zhou <broken.zhoug <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Nov 19 14:51:24 2013 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 19 14:51:24 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=bf0afeb0 |
7 |
|
8 |
sci-mathematics/z3-4.3.1: new ebuild |
9 |
|
10 |
--- |
11 |
sci-mathematics/z3/z3-4.3.1.ebuild | 44 ++++++++++++++++++++++++++++++++++++++ |
12 |
1 file changed, 44 insertions(+) |
13 |
|
14 |
diff --git a/sci-mathematics/z3/z3-4.3.1.ebuild b/sci-mathematics/z3/z3-4.3.1.ebuild |
15 |
new file mode 100644 |
16 |
index 0000000..c334709 |
17 |
--- /dev/null |
18 |
+++ b/sci-mathematics/z3/z3-4.3.1.ebuild |
19 |
@@ -0,0 +1,44 @@ |
20 |
+EAPI=5 |
21 |
+ |
22 |
+PYTHON_COMPAT=( python2_7 ) |
23 |
+ |
24 |
+inherit eutils git-2 autotools python-r1 |
25 |
+ |
26 |
+DESCRIPTION="An efficient theorem prover" |
27 |
+HOMEPAGE="http://z3.codeplex.com/" |
28 |
+EGIT_REPO_URI="https://git01.codeplex.com/z3" |
29 |
+EGIT_COMMIT="v${PV}" |
30 |
+KEYWORDS="amd64 x86" |
31 |
+ |
32 |
+SLOT="0" |
33 |
+IUSE="" |
34 |
+DEPEND=" |
35 |
+ app-arch/unzip |
36 |
+ sys-devel/autoconf |
37 |
+ >=net-misc/curl-7.33" |
38 |
+RDEPEND="${DEPEND}" |
39 |
+ |
40 |
+S="${WORKDIR}/z3" |
41 |
+ |
42 |
+src_prepare() { |
43 |
+ eautoconf |
44 |
+} |
45 |
+ |
46 |
+src_configure() { |
47 |
+ econf --host="" --with-python="$(which python2)" |
48 |
+ python2 scripts/mk_make.py |
49 |
+} |
50 |
+ |
51 |
+src_compile() { |
52 |
+ emake --directory="build" |
53 |
+} |
54 |
+ |
55 |
+src_install() { |
56 |
+ doheader src/api/z3*.h |
57 |
+ doheader src/api/c++/z3*.h |
58 |
+ dolib.so build/*.so |
59 |
+ dobin build/z3 |
60 |
+ |
61 |
+ sed -i '1i#!/usr/bin/python2' src/api/python/*.py || die "sed failed" |
62 |
+ python_foreach_impl python_domodule src/api/python/*.py |
63 |
+} |