From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8F65D1584AD for ; Fri, 18 Apr 2025 17:32:30 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 766063430D9 for ; Fri, 18 Apr 2025 17:32:30 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 6D8A7110494; Fri, 18 Apr 2025 17:32:29 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 62579110494 for ; Fri, 18 Apr 2025 17:32:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 13F1634168D for ; Fri, 18 Apr 2025 17:32:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7426219F6 for ; Fri, 18 Apr 2025 17:32:27 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1744997533.5d23cfe8d64baebb3b284e21603bc529edd8c45f.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/cryptokit/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ml/cryptokit/Manifest dev-ml/cryptokit/cryptokit-1.20.1.ebuild X-VCS-Directories: dev-ml/cryptokit/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: 5d23cfe8d64baebb3b284e21603bc529edd8c45f X-VCS-Branch: master Date: Fri, 18 Apr 2025 17:32:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2992db8b-06a7-40d0-b56b-e86788c76c58 X-Archives-Hash: fd5e546b8a2cb3bdca4b935ebad0c9f9 commit: 5d23cfe8d64baebb3b284e21603bc529edd8c45f Author: Alfredo Tupone gentoo org> AuthorDate: Fri Apr 18 17:31:46 2025 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Fri Apr 18 17:32:13 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d23cfe8 dev-ml/cryptokit: add 1.20.1 Signed-off-by: Alfredo Tupone gentoo.org> dev-ml/cryptokit/Manifest | 1 + dev-ml/cryptokit/cryptokit-1.20.1.ebuild | 63 ++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-ml/cryptokit/Manifest b/dev-ml/cryptokit/Manifest index 445cfed174f8..a09fb343c2c1 100644 --- a/dev-ml/cryptokit/Manifest +++ b/dev-ml/cryptokit/Manifest @@ -1,2 +1,3 @@ DIST cryptokit-1.16.1.tar.gz 120607 BLAKE2B fbb89c4dabef8f09614003acc2b8173fdfdacb36793fd20f4415ebec04f3759537739eccd7b9d143df0163816b9db65c221c2b83408c9ac3aa7f9bf7b63876c6 SHA512 28913a7c35ae951a4c464287acc511ee1bdc9d03b5928e2243c5ae5cbb8b10afe8e84d7a73ba6478ed62657d01fdb6f02472739255c33de3671c4130b659da52 DIST cryptokit-1.19.tar.gz 162353 BLAKE2B cded152e90c140801fba6730837c8aa6b2755613a0f75d97ae91d7b04f76af7962de00a413cd950d5187efa2e67b98904b161e8ba2d89567ec447ed09a3e8671 SHA512 11c942d561e9808b8811400fa1b4b738ded2e3f7b4e3d886c00b97a6cd7c726ff384962aee821885e06bcf6bbe3a34d3157a4a4c89defb5b474c01165085d08b +DIST cryptokit-1.20.1.tar.gz 162579 BLAKE2B e9a59d492ee3cf7c4a393f1115b327f40be6a3e3f4c0753f1dc35f106840b08881ea4d13b4ed2b41b5d741eac188ea8f44ea7f7087030eae34bfecefaab0e39c SHA512 7b1e2ba8b99b11a04522ffe4b6b92278bc772d9888967757ab013151211fc85d29847af566677f2b9c3200e45b857600a70356ca6ed80ca299508808057358b1 diff --git a/dev-ml/cryptokit/cryptokit-1.20.1.ebuild b/dev-ml/cryptokit/cryptokit-1.20.1.ebuild new file mode 100644 index 000000000000..35e961f8c1aa --- /dev/null +++ b/dev-ml/cryptokit/cryptokit-1.20.1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2025 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 +}