commit:     630be77e9367e2b906d8a9f687590ee874db08fb
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 30 23:27:36 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Tue Jul  1 00:33:14 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=630be77e

sci-mathematics/easycrypt: bump to 2025.03

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 sci-mathematics/easycrypt/Manifest                 |  1 +
 sci-mathematics/easycrypt/easycrypt-2025.03.ebuild | 51 ++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/sci-mathematics/easycrypt/Manifest 
b/sci-mathematics/easycrypt/Manifest
index f71f6a1bd2fc..b6ebbf046b1d 100644
--- a/sci-mathematics/easycrypt/Manifest
+++ b/sci-mathematics/easycrypt/Manifest
@@ -1 +1,2 @@
 DIST easycrypt-2025.02.tar.gz 1362823 BLAKE2B 
d0a9739178b459e9f1288286f9a40bd45735d8a4d1acdcc322a079b2fc7712b1a9ffb655cfc67ae9384234981496218cd9dc8c7385d2954b3544a6339a8f98c7
 SHA512 
61d35a3e1bb2e91be94a52f3cc4c75e209a95908a6fc558472dab863b6d9d82f0a39bbe35ba98f6ce92eb398465013fdddd73bc99b789a55bcca6975c0d72196
+DIST easycrypt-2025.03.gh.tar.gz 1371575 BLAKE2B 
2cde19c1708e9018feabc4c590aeefd593e0fc86ae1d48bf6225888aa3be3277d7adca8cb1d2a8f661cd170a69a7e9f96f49bd94c425efa69db9f7ca7256a1f6
 SHA512 
32275fd51cd327998d8f5629bd6ee02135028e14e6e2670899eff56ccfa1d385213218cf55499ae795edc8f529ddb8d8f07cb6bc2593aa6e2fcda8d5bf56b80c

diff --git a/sci-mathematics/easycrypt/easycrypt-2025.03.ebuild 
b/sci-mathematics/easycrypt/easycrypt-2025.03.ebuild
new file mode 100644
index 000000000000..c05a134d96ea
--- /dev/null
+++ b/sci-mathematics/easycrypt/easycrypt-2025.03.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Computer-Aided Cryptographic Proofs"
+HOMEPAGE="https://github.com/EasyCrypt/easycrypt/";
+
+if [[ "${PV}" == *9999* ]] ; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://github.com/EasyCrypt/${PN}";
+else
+       SRC_URI="https://github.com/EasyCrypt/${PN}/archive/r${PV}.tar.gz
+               -> ${P}.gh.tar.gz"
+       S="${WORKDIR}/${PN}-r${PV}"
+
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+IUSE="+ocamlopt"
+
+RDEPEND="
+       >=dev-lang/ocaml-4.08.0:=[ocamlopt?]
+       >=sci-mathematics/why3-1.8.0:=
+
+       dev-ml/batteries:=
+       dev-ml/camlp-streams:=
+       dev-ml/camlzip:=
+       dev-ml/dune-build-info:=
+       dev-ml/dune-site:=
+       dev-ml/num:=
+       dev-ml/ocaml-inifiles:=
+       dev-ml/pcre-ocaml:=
+       dev-ml/yojson:=
+       dev-ml/zarith:=
+"
+DEPEND="
+       ${RDEPEND}
+"
+
+src_prepare() {
+       local theories="[\"$(ocamlc -where)/easycrypt/theories\"]"
+       sed -i "s|EcRelocate\.Sites\.theories|${theories}|g" src/ec.ml || die
+
+       default
+}

Reply via email to