1 |
commit: 404e75cec4d8741e2c821ebc1a37c07949da5a2b |
2 |
Author: Yichao Zhou <broken.zhoug <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Nov 23 14:33:56 2013 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 23 14:33:56 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=404e75ce |
7 |
|
8 |
sci-mathematics/z3-4.3.1: add z3-9999 using git-3 |
9 |
|
10 |
--- |
11 |
sci-mathematics/z3/z3-9999.ebuild | 42 +++++++++++++++++++++++++++++++++++++++ |
12 |
1 file changed, 42 insertions(+) |
13 |
|
14 |
diff --git a/sci-mathematics/z3/z3-9999.ebuild b/sci-mathematics/z3/z3-9999.ebuild |
15 |
new file mode 100644 |
16 |
index 0000000..557ff0e |
17 |
--- /dev/null |
18 |
+++ b/sci-mathematics/z3/z3-9999.ebuild |
19 |
@@ -0,0 +1,42 @@ |
20 |
+EAPI=5 |
21 |
+ |
22 |
+PYTHON_COMPAT=( python2_7 ) |
23 |
+ |
24 |
+inherit eutils git-r3 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_NONSHALLOW=1 |
30 |
+KEYWORDS="" |
31 |
+ |
32 |
+SLOT="0" |
33 |
+IUSE="" |
34 |
+# A new curl is needed because codeplex has a bug and early version of libcurl |
35 |
+# will cause a failed git clone. |
36 |
+DEPEND=">=net-misc/curl-7.33" |
37 |
+RDEPEND="" |
38 |
+ |
39 |
+src_prepare() { |
40 |
+ eautoreconf |
41 |
+ python-r1_src_prepare |
42 |
+} |
43 |
+ |
44 |
+src_configure() { |
45 |
+ python_export_best |
46 |
+ econf --host="" --with-python="${PYTHON}" |
47 |
+ python2 scripts/mk_make.py |
48 |
+} |
49 |
+ |
50 |
+src_compile() { |
51 |
+ emake --directory="build" |
52 |
+} |
53 |
+ |
54 |
+src_install() { |
55 |
+ doheader src/api/z3*.h |
56 |
+ doheader src/api/c++/z3*.h |
57 |
+ dolib.so build/*.so |
58 |
+ dobin build/z3 |
59 |
+ |
60 |
+ python_foreach_impl python_domodule src/api/python/*.py |
61 |
+} |