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/ocaml-ipaddr/
Date: Tue, 29 Nov 2016 17:24:08
Message-Id: 1480440238.2d75ff9581121f32249e3df091a8814e6f01f84f.aballier@gentoo
1 commit: 2d75ff9581121f32249e3df091a8814e6f01f84f
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 29 17:23:52 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 29 17:23:58 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d75ff95
7
8 dev-ml/ocaml-ipaddr: bump to 2.7.1
9
10 Package-Manager: portage-2.3.2
11
12 dev-ml/ocaml-ipaddr/Manifest | 1 +
13 dev-ml/ocaml-ipaddr/ocaml-ipaddr-2.7.1.ebuild | 43 +++++++++++++++++++++++++++
14 2 files changed, 44 insertions(+)
15
16 diff --git a/dev-ml/ocaml-ipaddr/Manifest b/dev-ml/ocaml-ipaddr/Manifest
17 index f9be2aa..04901af 100644
18 --- a/dev-ml/ocaml-ipaddr/Manifest
19 +++ b/dev-ml/ocaml-ipaddr/Manifest
20 @@ -1,2 +1,3 @@
21 DIST ocaml-ipaddr-2.6.1.tar.gz 64458 SHA256 7051013d8f58abff433187d70cd7ddd7a6b49a6fbe6cad1893f571f65b8ed3d0 SHA512 a22382b5118caf0a29322e52d40523cbf52edd21d477c2e4581a5f70441b71f948b75ff7d55a7cf6c32f0e68c430c3aff59a05d9514b29e858ff78f4c649c4c6 WHIRLPOOL 418a3bcbef9a1198962bd5d09381756520eaced7e86f8ba204810b786187cfb6e020019da331d85e11d510fa744802c66d52a450fb31a9ff8a418004ff1d4cbe
22 DIST ocaml-ipaddr-2.7.0.tar.gz 65470 SHA256 3031abb4a5391af8b7e307db09807ef748fc718ee23855e2f933df47892d4c23 SHA512 36ce32945e05166165ba9d2d6d10a9fb1531a50ff4e9e1a87d1bf557e767fa2938af9cbaeea7da4eefd058d687f0b36696075fd4c9ed075f5207e3c9f5488c87 WHIRLPOOL 188acfc6e110253b62f92a21a08a1519650289141b9649bed2e80b7850f9cdaa8327859933501ff0b938c2896f42ba48fac57b0b4c6b3ea59b6f4368eac0bd28
23 +DIST ocaml-ipaddr-2.7.1.tar.gz 23652 SHA256 0d1d5fe983ff02ed09a0f03e5f1048c575d621599b42b5685d56f4da61186888 SHA512 9f640f10614666f3a7cc578e934b0424c1d6fdcdd2dc5620f4a8b4fa7799a07fdd7c4bbe4e91c4899d45612ce8d2d4cafc8bcd19e51253c6da5d12c504820903 WHIRLPOOL 5be5846d98fbec95c5d3ba47c3b59bbdd3c44e41d04270d0b0ca2331eb7e6aac3d79c4833bf8dd20edb2d0c9f03b3bc72c53f12e0d27fb9980bcf73dea2c17f4
24
25 diff --git a/dev-ml/ocaml-ipaddr/ocaml-ipaddr-2.7.1.ebuild b/dev-ml/ocaml-ipaddr/ocaml-ipaddr-2.7.1.ebuild
26 new file mode 100644
27 index 00000000..ab99fa5
28 --- /dev/null
29 +++ b/dev-ml/ocaml-ipaddr/ocaml-ipaddr-2.7.1.ebuild
30 @@ -0,0 +1,43 @@
31 +# Copyright 1999-2016 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
36 +
37 +DESCRIPTION="OCaml library for manipulation of IP (and MAC) address representations"
38 +HOMEPAGE="https://github.com/mirage/ocaml-ipaddr"
39 +SRC_URI="https://github.com/mirage/ocaml-ipaddr/archive/${PV}.tar.gz -> ${P}.tar.gz"
40 +
41 +LICENSE="ISC"
42 +SLOT="0/${PV}"
43 +KEYWORDS="~amd64"
44 +IUSE="+ocamlopt test"
45 +
46 +RDEPEND="dev-ml/sexplib:=
47 + dev-ml/ppx_sexp_conv:=
48 + dev-lang/ocaml:=[ocamlopt?]
49 +"
50 +DEPEND="${RDEPEND}
51 + dev-ml/ocamlbuild
52 + dev-ml/topkg
53 + dev-ml/findlib
54 + test? ( dev-ml/ounit )
55 +"
56 +
57 +src_compile() {
58 + ocaml pkg/pkg.ml build \
59 + --tests $(usex test "true" "false") || die
60 +}
61 +
62 +src_test() {
63 + ocaml pkg/pkg.ml test || die
64 +}
65 +
66 +src_install() {
67 + opam-installer -i \
68 + --prefix="${ED}/usr" \
69 + --libdir="${D}/$(ocamlc -where)" \
70 + --docdir="${ED}/usr/share/doc/${PF}" \
71 + ipaddr.install || die
72 + dodoc CHANGES.md README.md
73 +}