1 |
commit: 4b39c369931b1d56fd261213476167b315abea8c |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 27 15:43:40 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 27 15:47:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b39c369 |
7 |
|
8 |
sci-mathematics/easycrypt: bump to 2022.04 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/841254 |
11 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
12 |
|
13 |
sci-mathematics/easycrypt/Manifest | 1 + |
14 |
sci-mathematics/easycrypt/easycrypt-2022.04.ebuild | 43 ++++++++++++++++++++++ |
15 |
2 files changed, 44 insertions(+) |
16 |
|
17 |
diff --git a/sci-mathematics/easycrypt/Manifest b/sci-mathematics/easycrypt/Manifest |
18 |
index e53e0e9b2586..099a037c9df2 100644 |
19 |
--- a/sci-mathematics/easycrypt/Manifest |
20 |
+++ b/sci-mathematics/easycrypt/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST easycrypt-1.0_pre20211210.tar.gz 1185137 BLAKE2B 3557a8b0423109a3b3e6e02f6d1ad88f07847d105015546c90b5a46cf514f1311390d3a6f6476c042420b91a62ad095919f7ab616adee2778165d9d081070730 SHA512 0043eac02e916dc46ed1cb4f278f148f915d09f336e904b1a711c18d62cda177e434fc13682ec095a085e458ba90ca8dd02968206af60f0b80a378f16b205553 |
23 |
DIST easycrypt-1.0_pre20220303.tar.gz 1193244 BLAKE2B f4d4b0661b7c58d9dd2c344efac45aa4257b46122cef81f98ced05792c1e4dd49d332421f09d0b11a28893096042a98a7415d06e1624aaa59cea0c71f17f4bb8 SHA512 bd9f1638631c9539aea3ee369705fbaafa06d575db395b3d170642af2450b7df735a18fe8f6aa6e8904eae62bdcd30743ab734f7c17c583ece7c146fee1bcf77 |
24 |
+DIST easycrypt-2022.04.tar.gz 1277930 BLAKE2B 4bb68325b9894e28dcf33f2b78f63c029375ba4f77d0df06cedff3a26be768827c9fb25f49cc8ecc8a2d341191fb0b9371825979f0f7cd14c69b3ced16ddc32c SHA512 9234de7f28999a6de79a3ecd27d3499ffb15fe651b2a577cf0b49fc73e034bbe1b4d99c2a7aafd3df70d9b4e095d1ae09ed8ff7a7885c020f9e5c990afe9b592 |
25 |
|
26 |
diff --git a/sci-mathematics/easycrypt/easycrypt-2022.04.ebuild b/sci-mathematics/easycrypt/easycrypt-2022.04.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..55ddb46d83fd |
29 |
--- /dev/null |
30 |
+++ b/sci-mathematics/easycrypt/easycrypt-2022.04.ebuild |
31 |
@@ -0,0 +1,43 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+inherit dune |
38 |
+ |
39 |
+DESCRIPTION="Computer-Aided Cryptographic Proofs" |
40 |
+HOMEPAGE="https://github.com/EasyCrypt/easycrypt" |
41 |
+ |
42 |
+if [[ "${PV}" == *9999* ]]; then |
43 |
+ inherit git-r3 |
44 |
+ EGIT_REPO_URI="https://github.com/EasyCrypt/${PN}.git" |
45 |
+else |
46 |
+ SRC_URI="https://github.com/EasyCrypt/${PN}/archive/r${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+ S="${WORKDIR}"/${PN}-r${PV} |
48 |
+fi |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0/${PV}" |
52 |
+KEYWORDS="~amd64" |
53 |
+IUSE="+ocamlopt" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ >=dev-lang/ocaml-4.08.0:=[ocamlopt?] |
57 |
+ >=sci-mathematics/why3-1.4:= |
58 |
+ dev-ml/batteries:= |
59 |
+ dev-ml/camlzip:= |
60 |
+ dev-ml/dune-build-info:= |
61 |
+ dev-ml/dune-site:= |
62 |
+ dev-ml/ocaml-inifiles:= |
63 |
+ dev-ml/pcre-ocaml:= |
64 |
+ dev-ml/yojson:= |
65 |
+ dev-ml/zarith:= |
66 |
+" |
67 |
+DEPEND="${RDEPEND}" |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ local theories="[\"$(ocamlc -where)/easycrypt/theories\"]" |
71 |
+ sed -i "s|EcRelocate\.Sites\.theories|${theories}|g" src/ec.ml || die |
72 |
+ |
73 |
+ default |
74 |
+} |