1 |
commit: 1700ee5bc2edd42a42be6c12472b319c1ad8e995 |
2 |
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 17 18:19:53 2020 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 17 18:19:53 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1700ee5b |
7 |
|
8 |
dev-ml/zarith: Version bump to 1.9.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
dev-ml/zarith/Manifest | 1 + |
14 |
dev-ml/zarith/zarith-1.9.1.ebuild | 54 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 55 insertions(+) |
16 |
|
17 |
diff --git a/dev-ml/zarith/Manifest b/dev-ml/zarith/Manifest |
18 |
index 01222184fda..ebd41f16d4f 100644 |
19 |
--- a/dev-ml/zarith/Manifest |
20 |
+++ b/dev-ml/zarith/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST zarith-1.4.1.tgz 88831 BLAKE2B f1a434f61dfa23cdb1e41d3e84c53444832978d119aa |
22 |
DIST zarith-1.5.tar.gz 89211 BLAKE2B f84127baeaf7efb61957e3657e7f2e3771df974ff6f92e3e0a04c93550ee48d5fa9adf473e423d409a2f40dba568ced30ef903c790f32b6e8bccd1032a475b84 SHA512 4e616b8cc81cd83f51696926e598be3bcda0bb5999db3cf42dd627cf537320a0216c74eb14c57e57fc21c909df8ef3fb3fa602a7ad633c115d2ee61af5a9fdcd |
23 |
DIST zarith-1.6.tar.gz 89353 BLAKE2B 4dc7dbe17426a57929632d38fae91bdfec4f54371ebb0ae55b6d88c7fffb47c229d0800125eaa2f5fca4e096bb50dceb4e0851ef88a16d3e89bc1db7b9cb32b9 SHA512 a12eacfaa809885f2b0f09ed0fc56d90ebaf9a3d8685db8a41dcaaaa2a9d2410ec96529d8bee653343ea8d51304861dbcf12daba06206a6cf07753ad3b09780d |
24 |
DIST zarith-1.7.tar.gz 89617 BLAKE2B ee8a272a7421d9e723af8aa6207da8fe046585804e669058b6dec8fb47cab80e438d0520c1b61ed6c79bc279d162a7a1043fa40e74c50342b7e4d553ca8e8f5b SHA512 812b5f9b24ce7a24d3370b8728ff6eeb56e3280fa1573e694fe54e781668c29bf8ff95e94aeff59df948adc85b8acd6b4efe117fb50a124f19b4227bee78e753 |
25 |
+DIST zarith-1.9.1.tar.gz 92321 BLAKE2B d61def81600cb5f3ae931eabebcdf081b6025dd24b1deae46a55f5db4f2c67d44b38b9cb9d73fc7fd9bd76c81545294373e3df5969da217209079a2912a8e285 SHA512 e77620c66a59d35811acfc45c7ef3f0d50d3042194654b1f5b652a2ed5fb9d5f88e9173222e5ced286c61854434da05a4d96668089faa66ff2917afa677fc32f |
26 |
|
27 |
diff --git a/dev-ml/zarith/zarith-1.9.1.ebuild b/dev-ml/zarith/zarith-1.9.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..dc83db4cb61 |
30 |
--- /dev/null |
31 |
+++ b/dev-ml/zarith/zarith-1.9.1.ebuild |
32 |
@@ -0,0 +1,54 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit findlib multilib |
39 |
+ |
40 |
+DESCRIPTION="Arithmetic and logic operations over arbitrary-precision integers" |
41 |
+HOMEPAGE="https://github.com/ocaml/Zarith" |
42 |
+SRC_URI="https://github.com/ocaml/Zarith/archive/release-${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="LGPL-2.1-with-linking-exception" |
45 |
+SLOT="0/${PV}" |
46 |
+KEYWORDS="~amd64 ~ppc ~x86" |
47 |
+IUSE="doc mpir +ocamlopt" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ >=dev-lang/ocaml-4:=[ocamlopt?] |
51 |
+ !mpir? ( dev-libs/gmp:0= ) |
52 |
+ mpir? ( sci-libs/mpir )" |
53 |
+ |
54 |
+DEPEND="${RDEPEND} dev-lang/perl" |
55 |
+DOCS=( README.md Changes ) |
56 |
+ |
57 |
+S="${WORKDIR}/Zarith-release-${PV}" |
58 |
+ |
59 |
+src_configure() { |
60 |
+ tc-export CC |
61 |
+ ./configure -host "${CHOST}" \ |
62 |
+ -ocamllibdir /usr/$(get_libdir)/ocaml \ |
63 |
+ -installdir "${ED}"/usr/$(get_libdir)/ocaml \ |
64 |
+ $(usex mpir "-mpir" "-gmp") || die |
65 |
+} |
66 |
+ |
67 |
+src_compile() { |
68 |
+ emake -j 1 HASOCAMLOPT=$(usex ocamlopt yes no) HASDYNLINK=$(usex ocamlopt yes no) all |
69 |
+ use doc && emake doc |
70 |
+} |
71 |
+ |
72 |
+src_test() { |
73 |
+ if use ocamlopt ; then |
74 |
+ emake HASOCAMLOPT=$(usex ocamlopt yes no) HASDYNLINK=$(usex ocamlopt yes no) tests |
75 |
+ else |
76 |
+ ewarn "Tests require USE=ocamlopt. Skipping them." |
77 |
+ fi |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ findlib_src_preinst |
82 |
+ emake HASOCAMLOPT=$(usex ocamlopt yes no) HASDYNLINK=$(usex ocamlopt yes no) install |
83 |
+ dosym zarith/libzarith.a /usr/$(get_libdir)/ocaml/libzarith.a |
84 |
+ use doc && HTML_DOCS=( html/* ) |
85 |
+ einstalldocs |
86 |
+} |