mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-15 18:13:10 -04:00
dev-ml/mirage-crypto: add 0.10.6
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST mirage-crypto-0.10.6.tbz 1206906 BLAKE2B 7b6d6a323b0aa6f2a0328d8817bd4447c00083127b8b277ce7d10b952841b8554278d37b48e936b05bd6a04117960241d6f4bf7d1c00a3ba364ec2c3c8535162 SHA512 870b7d0d32acde970afcd3fac2cb51131ac74bb20c887d07ddfccd239467a5dc8b700adf463427fa916393c503f106feb733cba5bf4b9d1f8eb57f52b5af9f9c
|
||||
DIST mirage-crypto-v0.10.1.tbz 1200115 BLAKE2B 4a7557adb0e16834a6e298fb52f40b85e67cde44fdc04607dfd46a8a29a1957e1a61bfcec1c35f80477e1319dc2fe850fc65aac3c07ba9b706e6cfdec563a0e6 SHA512 08ba60ae7cc0e0c77b4d71fa05241bfd2e47bfb907cf7e1a4f6bd8bf62854ee82becd2f4e65eade1a01b58d91fb33829f4f69b39e8910df9cfeaa87c933a336d
|
||||
DIST mirage-crypto-v0.10.5.tbz 1207228 BLAKE2B bea0dc169c9ae79196ab4f74b624f191a45f051b8cf0c3774d4eb7323f1139d1e7e78b59f46c986bffba4c570c408d9d4f8db19cce4f6d4b233aa00d00f7ec04 SHA512 18b493be1e7909e8429bc5ddd1f0d1175aab9e21a10711e95749b74f1d9f851a5cfd3ee1a5b3b73a47b5fc54d6458a911ec586ab243e63bf276d2777a787ae51
|
||||
|
||||
91
dev-ml/mirage-crypto/mirage-crypto-0.10.6.ebuild
Normal file
91
dev-ml/mirage-crypto/mirage-crypto-0.10.6.ebuild
Normal file
@@ -0,0 +1,91 @@
|
||||
# Copyright 2020-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit dune multiprocessing
|
||||
|
||||
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}/${P}.tbz"
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user