Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/zarith/
Date: Tue, 17 Oct 2017 06:04:26
Message-Id: 1508219568.be838881d41aeb8a0be7b032a22cc9121e72ea7b.aballier@gentoo
1 commit: be838881d41aeb8a0be7b032a22cc9121e72ea7b
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 17 05:52:48 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 17 05:52:48 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be838881
7
8 dev-ml/zarith: bump to 1.7
9
10 Package-Manager: Portage-2.3.11, Repoman-2.3.3
11
12 dev-ml/zarith/Manifest | 1 +
13 dev-ml/zarith/zarith-1.7.ebuild | 52 +++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 53 insertions(+)
15
16 diff --git a/dev-ml/zarith/Manifest b/dev-ml/zarith/Manifest
17 index a5fd6576dec..c2a2b37603d 100644
18 --- a/dev-ml/zarith/Manifest
19 +++ b/dev-ml/zarith/Manifest
20 @@ -1,3 +1,4 @@
21 DIST zarith-1.4.1.tgz 88831 SHA256 23b6c140aad25385bb0b862b9b9fe8a5c6e6f608d0fac7a688aaede5ea876650 SHA512 ef6717e3b6c19ef94fb0e02eb33b1d9f2b2103a9fe0334cb89b01b344ee953fbeeaed8a75b17daa32760faaf93d582e6778ae50e59e9cf878663f2ecba1d5659 WHIRLPOOL 51fc093160ccd5b26282dc1e4f0da223cf0de49c357d560c45bf839ae1dadc53968b117f6ecb96da722fcda2c669ececbd6ca3fab61c71059f37764bfc602888
22 DIST zarith-1.5.tar.gz 89211 SHA256 b1d7b7394267a40c933d387131004cf0bc0dbdaea7a981fce865e1ae5d12e40b SHA512 4e616b8cc81cd83f51696926e598be3bcda0bb5999db3cf42dd627cf537320a0216c74eb14c57e57fc21c909df8ef3fb3fa602a7ad633c115d2ee61af5a9fdcd WHIRLPOOL 5f99fc525cd54167f8a6188adf8398003e8728ea9fc04b338dd69a2b0c5cbc943b79b9a5dccc41f7e24a62b00ed9900843a8eca124ab652f6c99240d6620bbdb
23 DIST zarith-1.6.tar.gz 89353 SHA256 0ad52b7e8d3791d401a5d64d6f85333d096b32d3ebb9f92e2496fbe64574078e SHA512 a12eacfaa809885f2b0f09ed0fc56d90ebaf9a3d8685db8a41dcaaaa2a9d2410ec96529d8bee653343ea8d51304861dbcf12daba06206a6cf07753ad3b09780d WHIRLPOOL 61f963dadeac8cc1eaef4f783957a34fa6a3507f108c26690fb7ac2aee02744f58b2e2457222d1db937f7d79eca13cbb1cdebfd795f7e3868021c737979e93f1
24 +DIST zarith-1.7.tar.gz 89617 SHA256 d641bb66d04461111b75f2fc37ad1eec764dcf326d98a51ac078695baea2ab3a SHA512 812b5f9b24ce7a24d3370b8728ff6eeb56e3280fa1573e694fe54e781668c29bf8ff95e94aeff59df948adc85b8acd6b4efe117fb50a124f19b4227bee78e753 WHIRLPOOL 9369fbcc235779b7902e580df03c2b3ee8dec23a3278a8e1034c31580f4380671169fd397cad812add97b65ed4a577c20ec03040706e6f8ba4d88001d5623965
25
26 diff --git a/dev-ml/zarith/zarith-1.7.ebuild b/dev-ml/zarith/zarith-1.7.ebuild
27 new file mode 100644
28 index 00000000000..857c5026e9d
29 --- /dev/null
30 +++ b/dev-ml/zarith/zarith-1.7.ebuild
31 @@ -0,0 +1,52 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
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://github.com/ocaml/Zarith"
41 +SRC_URI="https://github.com/ocaml/Zarith/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="LGPL-2.1-with-linking-exception"
44 +SLOT="0/${PV}"
45 +KEYWORDS="~amd64 ~ppc ~x86"
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 +S="${WORKDIR}/Zarith-release-${PV}"
56 +
57 +src_configure() {
58 + tc-export CC
59 + ./configure -host "${CHOST}" \
60 + -ocamllibdir "/usr/$(get_libdir)" \
61 + -installdir "${ED}/usr/$(get_libdir)/ocaml" \
62 + $(usex mpir "-mpir" "-gmp") || die
63 +}
64 +
65 +src_compile() {
66 + emake HASOCAMLOPT=$(usex ocamlopt yes no) HASDYNLINK=$(usex ocamlopt yes no) all
67 + use doc && emake doc
68 +}
69 +
70 +src_test() {
71 + if use ocamlopt ; then
72 + emake HASOCAMLOPT=$(usex ocamlopt yes no) HASDYNLINK=$(usex ocamlopt yes no) tests
73 + else
74 + ewarn "Tests require USE=ocamlopt. Skipping them."
75 + fi
76 +}
77 +
78 +src_install() {
79 + findlib_src_preinst
80 + emake HASOCAMLOPT=$(usex ocamlopt yes no) HASDYNLINK=$(usex ocamlopt yes no) install
81 + dodoc Changes README.md
82 + use doc && dohtml html/*
83 +}