diff options
author | Maciej Barć <xgqt@gentoo.org> | 2023-04-02 00:54:13 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2023-04-02 00:54:13 +0200 |
commit | dcb89895710ce9e8cdbd858121961170c34afac9 (patch) | |
tree | e0b592e1d017da9929c34950b63c0a74347a9e1f /sci-mathematics | |
parent | sci-mathematics/flocq: bump to 4.1.1 (diff) | |
download | gentoo-dcb89895710ce9e8cdbd858121961170c34afac9.tar.gz gentoo-dcb89895710ce9e8cdbd858121961170c34afac9.tar.bz2 gentoo-dcb89895710ce9e8cdbd858121961170c34afac9.zip |
sci-mathematics/easycrypt: bump to 2022.04_p20230324
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/easycrypt/Manifest | 1 | ||||
-rw-r--r-- | sci-mathematics/easycrypt/easycrypt-2022.04_p20230324.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/sci-mathematics/easycrypt/Manifest b/sci-mathematics/easycrypt/Manifest index b2048b21a4d8..96db3b6cfa3e 100644 --- a/sci-mathematics/easycrypt/Manifest +++ b/sci-mathematics/easycrypt/Manifest @@ -1,3 +1,4 @@ DIST easycrypt-1.0_pre20220303.tar.gz 1193244 BLAKE2B f4d4b0661b7c58d9dd2c344efac45aa4257b46122cef81f98ced05792c1e4dd49d332421f09d0b11a28893096042a98a7415d06e1624aaa59cea0c71f17f4bb8 SHA512 bd9f1638631c9539aea3ee369705fbaafa06d575db395b3d170642af2450b7df735a18fe8f6aa6e8904eae62bdcd30743ab734f7c17c583ece7c146fee1bcf77 DIST easycrypt-2022.04.tar.gz 1277930 BLAKE2B 4bb68325b9894e28dcf33f2b78f63c029375ba4f77d0df06cedff3a26be768827c9fb25f49cc8ecc8a2d341191fb0b9371825979f0f7cd14c69b3ced16ddc32c SHA512 9234de7f28999a6de79a3ecd27d3499ffb15fe651b2a577cf0b49fc73e034bbe1b4d99c2a7aafd3df70d9b4e095d1ae09ed8ff7a7885c020f9e5c990afe9b592 DIST easycrypt-2022.04_p20220505.tar.gz 1279876 BLAKE2B 10ae22e216b8a35973ad7d1dbffe1dba9ce328b67319577cd1a7fad957f08174d1651ee6c1bab8cdf12d8fda20cb85d5a334ad41dfb3e55f9ee8beb8a233a2eb SHA512 b1231e0be787a667c836d970236d47311e490443a66bc0a3834963557b32358ad9db2008e32d427d232f2a94c72afc65bd3330b6db1eb938335791ea997b4013 +DIST easycrypt-2022.04_p20230324.tar.gz 1296898 BLAKE2B 119cb10ad5c2cd50db9f70eb858e2779cae0350b9e5370060b8045f36684a9de87ad746e75c6a7e7fcc7ad93e40bde2164866bb16e67dd2ebc3409657760cbd8 SHA512 917d5ff2fe65a1fd02a19d700cfb77910290746023458b6ed9eb9dc1290faa5469571a3c77510caac8734ad7d2ada6c7fbfc75bb933d0a57e9c303a8cf207026 diff --git a/sci-mathematics/easycrypt/easycrypt-2022.04_p20230324.ebuild b/sci-mathematics/easycrypt/easycrypt-2022.04_p20230324.ebuild new file mode 100644 index 000000000000..8434aa25bbc1 --- /dev/null +++ b/sci-mathematics/easycrypt/easycrypt-2022.04_p20230324.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2023 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}.git" +else + if [[ ${PV} == *_p20230324 ]] ; then + COMMIT=f62625928cc0970c88839c84897d1f6b17437519 + SRC_URI="https://github.com/EasyCrypt/${PN}/archive/${COMMIT}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}"/${PN}-${COMMIT} + else + SRC_URI="https://github.com/EasyCrypt/${PN}/archive/${PV}.tar.gz + -> ${P}.tar.gz" + fi + KEYWORDS="~amd64" +fi + +LICENSE="MIT" +SLOT="0/${PV}" +IUSE="+ocamlopt" + +RDEPEND=" + >=dev-lang/ocaml-4.08.0:=[ocamlopt?] + >=sci-mathematics/why3-1.6:= <sci-mathematics/why3-1.7:= + dev-ml/batteries:= + dev-ml/camlp-streams:= + dev-ml/camlzip:= + dev-ml/dune-build-info:= + dev-ml/dune-site:= + 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 +} |