Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-ml/tls/
Date: Fri, 29 Apr 2022 03:16:09
Message-Id: 1651200405.39820b1b13adf864f4c405951d620af09c00e684.Alessandro-Barbieri@gentoo
1 commit: 39820b1b13adf864f4c405951d620af09c00e684
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Fri Apr 29 02:46:45 2022 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Fri Apr 29 02:46:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=39820b1b
7
8 dev-ml/tls: add 0.15.3
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 dev-ml/tls/Manifest | 1 +
13 dev-ml/tls/tls-0.15.3.ebuild | 74 ++++++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 75 insertions(+)
15
16 diff --git a/dev-ml/tls/Manifest b/dev-ml/tls/Manifest
17 index c5b08613c..9a9e1de53 100644
18 --- a/dev-ml/tls/Manifest
19 +++ b/dev-ml/tls/Manifest
20 @@ -1 +1,2 @@
21 +DIST tls-0.15.3.tbz 322581 BLAKE2B b516d0b4d950cd2b9c4da69ad6e45aea6b0cbc5af7ce8842261245e8e00f690a4c91e3ad97b900658babdc1493b202487105e32a7b0ce99f4394baadd06abfd9 SHA512 371b85c6afebeda0fcc8cc5252e3333d9c3ef3a6bdbee160bb194e2a5928fd537c811c6eec729f16852070944e627257d44c97142a259d00d0db66956a95df49
22 DIST tls-v0.13.1.tbz 299082 BLAKE2B e366f0135233c67aac72cb930d9c702ff660bb2eeaa4e2105a695026866d7723a6e41657d3f4d1a107742325d875612183ed51d96d2a9d5da50d358a99688fa3 SHA512 f5ec06a9401c5bba7b9ba011fbec14136685b673f4ec87d0eefedb9cb53f93d02142bb9a75955b8c2c5832cdcebec8751c63ce092d2b6e361a19fe1a8a1e36b1
23
24 diff --git a/dev-ml/tls/tls-0.15.3.ebuild b/dev-ml/tls/tls-0.15.3.ebuild
25 new file mode 100644
26 index 000000000..cff9e9abd
27 --- /dev/null
28 +++ b/dev-ml/tls/tls-0.15.3.ebuild
29 @@ -0,0 +1,74 @@
30 +# Copyright 2020-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit dune multiprocessing
36 +
37 +DESCRIPTION="Transport Layer Security purely in OCaml"
38 +HOMEPAGE="https://github.com/mirleft/ocaml-tls"
39 +SRC_URI="https://github.com/mirleft/ocaml-tls/releases/download/v${PV}/${P}.tbz"
40 +
41 +LICENSE="BSD-2"
42 +SLOT="0/${PV}"
43 +KEYWORDS="~amd64"
44 +IUSE="async mirage ocamlopt test"
45 +
46 +RDEPEND="
47 + >=dev-lang/ocaml-4.08.0:=[ocamlopt?]
48 + >=dev-ml/ppx_sexp_conv-0.9.0:=
49 + >=dev-ml/cstruct-6.0.0:=[ppx,sexp]
50 + dev-ml/sexplib:=
51 + >=dev-ml/mirage-crypto-0.10.0:=[ec,pk,rng]
52 + >=dev-ml/x509-0.13.0:=
53 + >=dev-ml/domain-name-0.3.0:=
54 + >=dev-ml/fmt-0.8.7:=
55 + >=dev-ml/lwt-3.0.0:=
56 + >=dev-ml/ptime-0.8.1:=
57 + dev-ml/hkdf:=
58 + dev-ml/logs:=
59 + dev-ml/ipaddr:=[sexp]
60 +
61 + async? (
62 + >=dev-ml/async-0.15:=
63 + >=dev-ml/async_unix-0.15:=
64 + >=dev-ml/core-0.15:=
65 + dev-ml/cstruct:=[async]
66 + >=dev-ml/ppx_jane-0.15:=
67 + dev-ml/mirage-crypto:=[rng-async]
68 + >=dev-ml/x509-0.14.0:=
69 + )
70 + mirage? (
71 + >=dev-ml/mirage-flow-2.0.0:=
72 + >=dev-ml/mirage-kv-3.0.0:=
73 + >=dev-ml/mirage-clock-3.0.0:=
74 + dev-ml/mirage-crypto:=[pk]
75 + )
76 +"
77 +DEPEND="
78 + ${RDEPEND}
79 + test? (
80 + >=dev-ml/cstruct-3.0.0[unix]
81 + dev-ml/alcotest
82 + dev-ml/randomconv
83 + dev-ml/ounit2
84 + )
85 +"
86 +
87 +RESTRICT="!test? ( test )"
88 +
89 +src_compile() {
90 + local pkgs="tls"
91 + for u in async mirage ; do
92 + if use ${u} ; then
93 + pkgs="${pkgs},tls-${u}"
94 + fi
95 + done
96 + dune build -p "${pkgs}" -j $(makeopts_jobs) || die
97 +}
98 +
99 +src_install() {
100 + dune_src_install tls
101 + use async && dune_src_install tls-async
102 + use mirage && dune_src_install tls-mirage
103 +}