commit: 8470521dbcb82ccd53c4607ded11a7c198a7586b
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Apr 16 00:23:18 2022 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sat Apr 16 00:29:42 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8470521d
dev-ml/mirage-crypto: add 0.10.5
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-ml/mirage-crypto/Manifest | 1 +
dev-ml/mirage-crypto/mirage-crypto-0.10.5.ebuild | 94 ++++++++++++++++++++++++
2 files changed, 95 insertions(+)
diff --git a/dev-ml/mirage-crypto/Manifest b/dev-ml/mirage-crypto/Manifest
index bda186885..89f9043cb 100644
--- a/dev-ml/mirage-crypto/Manifest
+++ b/dev-ml/mirage-crypto/Manifest
@@ -1 +1,2 @@
DIST mirage-crypto-v0.10.1.tbz 1200115 BLAKE2B
4a7557adb0e16834a6e298fb52f40b85e67cde44fdc04607dfd46a8a29a1957e1a61bfcec1c35f80477e1319dc2fe850fc65aac3c07ba9b706e6cfdec563a0e6
SHA512
08ba60ae7cc0e0c77b4d71fa05241bfd2e47bfb907cf7e1a4f6bd8bf62854ee82becd2f4e65eade1a01b58d91fb33829f4f69b39e8910df9cfeaa87c933a336d
+DIST mirage-crypto-v0.10.5.tbz 1207228 BLAKE2B
bea0dc169c9ae79196ab4f74b624f191a45f051b8cf0c3774d4eb7323f1139d1e7e78b59f46c986bffba4c570c408d9d4f8db19cce4f6d4b233aa00d00f7ec04
SHA512
18b493be1e7909e8429bc5ddd1f0d1175aab9e21a10711e95749b74f1d9f851a5cfd3ee1a5b3b73a47b5fc54d6458a911ec586ab243e63bf276d2777a787ae51
diff --git a/dev-ml/mirage-crypto/mirage-crypto-0.10.5.ebuild
b/dev-ml/mirage-crypto/mirage-crypto-0.10.5.ebuild
new file mode 100644
index 000000000..debf5985f
--- /dev/null
+++ b/dev-ml/mirage-crypto/mirage-crypto-0.10.5.ebuild
@@ -0,0 +1,94 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="Simple symmetric cryptography for the modern age"
+HOMEPAGE="
+ https://github.com/mirage/mirage-crypto
+ https://opam.ocaml.org/packages/mirage-crypto/
+"
+SRC_URI="https://github.com/mirage/mirage-crypto/releases/download/v${PV}/${MY_P}.tbz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ec ocamlopt pk rng rng-async rng-mirage test"
+
+DEPEND="
+ >=dev-lang/ocaml-4.08.0:=[ocamlopt?]
+ >=dev-ml/cstruct-6.0.0:=
+ >=dev-ml/eqaf-0.8:=
+
+ pk? (
+ dev-libs/gmp
+ >=dev-ml/mirage-4.0:=
+ dev-ml/sexplib0:=
+ >=dev-ml/zarith-1.4:=
+ )
+ rng? (
+ dev-ml/duration:=
+ dev-ml/logs:=
+ >=dev-ml/lwt-4.0.0:=
+ >=dev-ml/mtime-1.0.0:=
+ )
+ rng-async? ( >=dev-ml/async-0.14:= )
+ rng-mirage? (
+ >=dev-ml/lwt-4.0.0:=
+ >=dev-ml/mirage-3.8.0:=
+ >=dev-ml/mirage-clock-3.0.0:=
+ )
+"
+RDEPEND="
+ ${DEPEND}
+ test? (
+ dev-ml/ounit2
+ >=dev-ml/randomconv-0.1.3
+ dev-ml/hex
+ >=dev-ml/asn1-combinators-0.2.5
+ dev-ml/ppx_deriving
+ dev-ml/ppx_deriving_yojson
+ >=dev-ml/yojson-1.6.0
+ dev-ml/alcotest
+ >=dev-ml/mirage-clock-unix-3.0.0
+ >=dev-ml/mirage-time-2.0.0[unix]
+ >=dev-ml/mirage-unix-5.0.0
+ )
+"
+BDEPEND="
+ >=dev-ml/dune-configurator-2.0.0
+ virtual/pkgconfig
+"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="
+ test? ( ec pk rng )
+ ec? ( rng )
+ pk? ( rng )
+ rng-async? ( rng )
+ rng-mirage? ( rng )
+"
+
+src_compile() {
+ local pkgs="mirage-crypto"
+ for u in rng rng-async rng-mirage pk ec ; do
+ if use ${u} ; then
+ pkgs="${pkgs},mirage-crypto-${u}"
+ fi
+ done
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ dune_src_install mirage-crypto
+ use rng && dune_src_install mirage-crypto-rng
+ use ec && dune_src_install mirage-crypto-ec
+ use pk && dune_src_install mirage-crypto-pk
+ use rng-async && dune_src_install mirage-crypto-rng-async
+ use rng-mirage && dune_src_install mirage-crypto-rng-mirage
+}