commit:     23dbbebfec04f750dd3605feb22825479d82f8cd
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 26 20:36:50 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Nov 26 20:38:39 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23dbbebf

dev-ml/cryptokit: add 1.19

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ml/cryptokit/Manifest              |  1 +
 dev-ml/cryptokit/cryptokit-1.19.ebuild | 63 ++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/dev-ml/cryptokit/Manifest b/dev-ml/cryptokit/Manifest
index 9c7817ee97ca..445cfed174f8 100644
--- a/dev-ml/cryptokit/Manifest
+++ b/dev-ml/cryptokit/Manifest
@@ -1 +1,2 @@
 DIST cryptokit-1.16.1.tar.gz 120607 BLAKE2B 
fbb89c4dabef8f09614003acc2b8173fdfdacb36793fd20f4415ebec04f3759537739eccd7b9d143df0163816b9db65c221c2b83408c9ac3aa7f9bf7b63876c6
 SHA512 
28913a7c35ae951a4c464287acc511ee1bdc9d03b5928e2243c5ae5cbb8b10afe8e84d7a73ba6478ed62657d01fdb6f02472739255c33de3671c4130b659da52
+DIST cryptokit-1.19.tar.gz 162353 BLAKE2B 
cded152e90c140801fba6730837c8aa6b2755613a0f75d97ae91d7b04f76af7962de00a413cd950d5187efa2e67b98904b161e8ba2d89567ec447ed09a3e8671
 SHA512 
11c942d561e9808b8811400fa1b4b738ded2e3f7b4e3d886c00b97a6cd7c726ff384962aee821885e06bcf6bbe3a34d3157a4a4c89defb5b474c01165085d08b

diff --git a/dev-ml/cryptokit/cryptokit-1.19.ebuild 
b/dev-ml/cryptokit/cryptokit-1.19.ebuild
new file mode 100644
index 000000000000..249600d1e970
--- /dev/null
+++ b/dev-ml/cryptokit/cryptokit-1.19.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MY_PV="$(ver_rs 1- '')"
+DESCRIPTION="Cryptographic primitives library for Objective Caml"
+HOMEPAGE="https://github.com/xavierleroy/cryptokit";
+SRC_URI="https://github.com/xavierleroy/cryptokit/archive/release${MY_PV}.tar.gz
 -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-release${MY_PV}"
+
+LICENSE="LGPL-2"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
+IUSE="cpu_flags_x86_aes +ocamlopt test zlib"
+REQUIRED_USE="test? ( ocamlopt )"
+RESTRICT="!test? ( test )"
+
+# We can't use mpir on zarith
+# (until it gains mpz_powm_sec?)
+# bug #750740
+DEPEND="
+       dev-ml/dune-configurator
+       dev-ml/zarith:=[-mpir(-)]
+       zlib? ( >=sys-libs/zlib-1.1 )
+"
+RDEPEND="${DEPEND}"
+
+DOCS=( "Changes" "README.txt" "AUTHORS.txt" )
+
+src_configure() {
+       # Don't build in src_configure
+       sed -i -e 's:exit (Sys.command "dune build @configure --release")::' 
configure || die
+
+       # It's not autotools (or even close), it's a Dune wrapper.
+       ./configure \
+               $(use_enable cpu_flags_x86_aes hardwaresupport) \
+               $(use_enable zlib) \
+               || die
+}
+
+pkg_postinst() {
+       elog ""
+       elog "This library uses the /dev/random device to generate "
+       elog "random data and RSA keys.  The device should either be"
+       elog "built into the kernel or provided as a module. An"
+       elog "alternative is to use the Entropy Gathering Daemon"
+       elog "(http://egd.sourceforge.net).  Please note that the"
+       elog "remainder of the library will still work even in the"
+       elog "absence of a one of these sources of randomness."
+       elog ""
+}
+
+src_test() {
+       echo ""
+       einfo "You must have either /dev/random or the Entropy Gathering"
+       einfo "Daemon (EGD) for this test to succeed!"
+       echo ""
+
+       dune_src_test
+}

Reply via email to