1 |
commit: 44a23c2510aa3dc688f4f9957f626ee81537cfc0 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 5 08:46:01 2015 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 5 08:46:01 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44a23c25 |
7 |
|
8 |
dev-ml/zarith: Bump to 1.4. |
9 |
|
10 |
Package-Manager: portage-2.2.24 |
11 |
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org> |
12 |
|
13 |
dev-ml/zarith/Manifest | 1 + |
14 |
dev-ml/zarith/zarith-1.4.ebuild | 47 +++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 48 insertions(+) |
16 |
|
17 |
diff --git a/dev-ml/zarith/Manifest b/dev-ml/zarith/Manifest |
18 |
index d2705de..558cede 100644 |
19 |
--- a/dev-ml/zarith/Manifest |
20 |
+++ b/dev-ml/zarith/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST zarith-1.3.tgz 69415 SHA256 946687d6f032b96ab9db9661d876e39437bff783e0ad473ac463c06259b7a3d7 SHA512 c8b0b32ae3cae2808d0af701fbf134fd8bf7b1b3042fbd562edf4a54f958386b4b425117838e60033f51ee0e4ea22969ddc7a8968ba979a4ad70c725cf4357d4 WHIRLPOOL 363e9f973a2e8ebc305c66e6d8dcb6f68bb5599dfce3da906fe013e2d7acfd80b17e886de60f393b72538488dcfdba33b0656f2fe6b19aeeec88d6c0ec3bf21b |
23 |
+DIST zarith-1.4.tgz 88392 SHA256 98bc21d9e86c3726b5641e0a4c6e859a1bf52b3f691344187e432760386b4861 SHA512 52c39ba98a3abd5fe8a38a7efd879993a6b3113133bdc0c9541168637fe9c8f813a9d38db679199ff0bf1b41f5f4a49f63876a2ca6a74796c309622b8023ac75 WHIRLPOOL c7abfcd9c81ee04fc819925c5f4fd07ea6603a1c2630a523b3a3b3bb3e21a7fcff0532a166b0cb6d9376b4f40747e7232be2d4b3f6e65592103b1ea12f96470c |
24 |
|
25 |
diff --git a/dev-ml/zarith/zarith-1.4.ebuild b/dev-ml/zarith/zarith-1.4.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..e2ab191 |
28 |
--- /dev/null |
29 |
+++ b/dev-ml/zarith/zarith-1.4.ebuild |
30 |
@@ -0,0 +1,47 @@ |
31 |
+# Copyright 1999-2012 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=5 |
36 |
+ |
37 |
+inherit findlib eutils toolchain-funcs |
38 |
+ |
39 |
+DESCRIPTION="Arithmetic and logic operations over arbitrary-precision integers" |
40 |
+HOMEPAGE="https://forge.ocamlcore.org/projects/zarith/" |
41 |
+SRC_URI="https://forge.ocamlcore.org/frs/download.php/1567/${P}.tgz" |
42 |
+ |
43 |
+LICENSE="LGPL-2.1-with-linking-exception" |
44 |
+SLOT="0/${PV}" |
45 |
+KEYWORDS="~amd64" |
46 |
+IUSE="doc mpir +ocamlopt" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ >=dev-lang/ocaml-4:=[ocamlopt?] |
50 |
+ !mpir? ( dev-libs/gmp:0= ) |
51 |
+ mpir? ( sci-libs/mpir )" |
52 |
+ |
53 |
+DEPEND="${RDEPEND} dev-lang/perl" |
54 |
+ |
55 |
+src_configure() { |
56 |
+ tc-export CC |
57 |
+ ./configure -host "${CHOST}" \ |
58 |
+ -ocamllibdir "/usr/$(get_libdir)" \ |
59 |
+ -installdir "${ED}/usr/$(get_libdir)/ocaml" \ |
60 |
+ $(usex mpir "-mpir" "-gmp") || die |
61 |
+} |
62 |
+ |
63 |
+src_compile() { |
64 |
+ emake HASOCAMLOPT=$(usex ocamlopt yes no) HASDYNLINK=$(usex ocamlopt yes no) all |
65 |
+ use doc && emake doc |
66 |
+} |
67 |
+ |
68 |
+src_test() { |
69 |
+ emake HASOCAMLOPT=$(usex ocamlopt yes no) HASDYNLINK=$(usex ocamlopt yes no) tests |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ findlib_src_preinst |
74 |
+ emake HASOCAMLOPT=$(usex ocamlopt yes no) HASDYNLINK=$(usex ocamlopt yes no) install |
75 |
+ dodoc Changes README |
76 |
+ use doc && dohtml html/* |
77 |
+} |