From d52be743e38bbaa6cf03e0f3faa3550ffd1dbb95 Mon Sep 17 00:00:00 2001 From: wiz Date: Mon, 14 Feb 2022 09:28:53 +0000 Subject: [PATCH] ocaml-digestif: update to 1.1.0. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### v1.1.0 2021-10-11 Paris (France) - Add Keccak256 module (ethereum padding) (@maxtori, @dinosaure, #118) - Update README.md to include the documentation (@mimoo, @dinosaure, 65a5c12) - Remove deprecated function from `fmt` library (@dinosaure, #121) - **NOTE**: This version lost the support of OCaml 4.03 and OCaml 4.04. ### v1.0.1 2020-02-08 Paris (France) - Fix `esy` support (@dinosaure, #115) - Fix big-endian support (@dinosaure, #113) ### v1.0.0 2020-11-02 Paris (France) - **breaking changes** Upgrade the library with MirageOS 3.9 (new layout of artifacts) Add tests about compilation of unikernels (execution and link) (#105, @dinosaure, @hannesm) - Fix `esy` installation (#104, @dinosaure) - **breaking changes** Better GADT (#103, @dinosaure) As far as I can tell, nobody really use this part of `digestif`. The idea is to provide a GADT which contains the type of the hash. From third-part libraries point-of-view, it's better to _pattern-match_ with such information instead to use a polymorphic variant (as before). - **breaking changes** key used for HMAC is a constant `string` (#101, @dinosaure, @hannesm) The key should not follow the same type as the digest value (`string`, `bytes`, `bigstring`). This update restricts the user to user only constant key (as a `string`). ### v0.9.0 2020-07-10 Paris (France) - Add sha3 implementation (#98), @lyrm, @dinosaure, @hannesm and @cfcs ### v0.8.1 2020-06-15 Paris (France) - Move to `dune.2.6.0` (#97) - Apply `ocamlformat.0.14.2` (#97) - Fix tests according `alcotest.1.0.0` (#95) ### v0.8.0 2019-20-09 Saint Louis (Sénégal) - Fake version to prioritize dune's variants instead of old linking trick - Use `stdlib-shims` to keep compatibility with < ocaml.4.07.0 ### v0.7.3 2019-07-09 Paris (France) - Fix bug about specialization of BLAKE2{B,S} (#85, #86) reported by @samoht, fixed by @dinosaure, reviewed by @hannes and @cfcs --- devel/ocaml-digestif/Makefile | 13 ++++++---- devel/ocaml-digestif/PLIST | 47 +++++++++++++++++++++-------------- devel/ocaml-digestif/distinfo | 8 +++--- 3 files changed, 40 insertions(+), 28 deletions(-) diff --git a/devel/ocaml-digestif/Makefile b/devel/ocaml-digestif/Makefile index d2d363dd9aed..5c29fe22c858 100644 --- a/devel/ocaml-digestif/Makefile +++ b/devel/ocaml-digestif/Makefile @@ -1,19 +1,22 @@ -# $NetBSD: Makefile,v 1.5 2021/03/08 08:12:51 jaapb Exp $ +# $NetBSD: Makefile,v 1.6 2022/02/14 09:28:53 wiz Exp $ -GITHUB_PROJECT= digestif -GITHUB_TAG= v${PKGVERSION_NOREV} -DISTNAME= ${GITHUB_PROJECT}-0.7.2 +DISTNAME= digestif-1.1.0 PKGNAME= ocaml-${DISTNAME} -PKGREVISION= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GITHUB:=mirage/} +GITHUB_PROJECT= digestif +GITHUB_TAG= v${PKGVERSION_NOREV} MAINTAINER= jaapb@NetBSD.org HOMEPAGE= https://github.com/mirage/digestif/ COMMENT= Simple hash algorithms in OCaml LICENSE= mit +DEPENDS+= ocaml-bigarray-compat-[0-9]*:../../devel/ocaml-bigarray-compat +DEPENDS+= ocaml-stdlib-shims-[0-9]*:../../devel/ocaml-stdlib-shims + USE_LANGUAGES= # none +USE_TOOLS+= gmake pkg-config OCAML_USE_DUNE= yes .include "../../mk/ocaml.mk" diff --git a/devel/ocaml-digestif/PLIST b/devel/ocaml-digestif/PLIST index 858786974046..33cd6931a385 100644 --- a/devel/ocaml-digestif/PLIST +++ b/devel/ocaml-digestif/PLIST @@ -1,10 +1,9 @@ -@comment $NetBSD: PLIST,v 1.2 2019/07/01 12:42:16 jaapb Exp $ +@comment $NetBSD: PLIST,v 1.3 2022/02/14 09:28:53 wiz Exp $ ${OCAML_SITELIB}/digestif/META ${OCAML_SITELIB}/digestif/c/.private/digestif_bi.cmi ${OCAML_SITELIB}/digestif/c/.private/digestif_by.cmi ${OCAML_SITELIB}/digestif/c/.private/digestif_conv.cmi ${OCAML_SITELIB}/digestif/c/.private/digestif_eq.cmi -${OCAML_SITELIB}/digestif/c/.private/digestif_hash.cmi ${OCAML_SITELIB}/digestif/c/.private/digestif_native.cmi ${OCAML_SITELIB}/digestif/c/digestif.cmi ${OCAML_SITELIB}/digestif/c/digestif.cmt @@ -26,16 +25,15 @@ ${OCAML_SITELIB}/digestif/c/digestif_conv.ml ${OCAML_SITELIB}/digestif/c/digestif_eq.cmt ${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/c/digestif_eq.cmx ${OCAML_SITELIB}/digestif/c/digestif_eq.ml -${OCAML_SITELIB}/digestif/c/digestif_hash.cmt -${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/c/digestif_hash.cmx -${OCAML_SITELIB}/digestif/c/digestif_hash.ml ${OCAML_SITELIB}/digestif/c/digestif_native.cmt ${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/c/digestif_native.cmx ${OCAML_SITELIB}/digestif/c/digestif_native.ml +${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/c/libdigestif_c_stubs.a ${OCAML_SITELIB}/digestif/digestif.cmi ${OCAML_SITELIB}/digestif/digestif.cmti ${OCAML_SITELIB}/digestif/digestif.mli ${OCAML_SITELIB}/digestif/dune-package +${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/libdigestif_freestanding_stubs.a ${OCAML_SITELIB}/digestif/ocaml/.private/baijiu_blake2b.cmi ${OCAML_SITELIB}/digestif/ocaml/.private/baijiu_blake2s.cmi ${OCAML_SITELIB}/digestif/ocaml/.private/baijiu_md5.cmi @@ -44,13 +42,15 @@ ${OCAML_SITELIB}/digestif/ocaml/.private/baijiu_sha1.cmi ${OCAML_SITELIB}/digestif/ocaml/.private/baijiu_sha224.cmi ${OCAML_SITELIB}/digestif/ocaml/.private/baijiu_sha256.cmi ${OCAML_SITELIB}/digestif/ocaml/.private/baijiu_sha384.cmi +${OCAML_SITELIB}/digestif/ocaml/.private/baijiu_sha3_224.cmi +${OCAML_SITELIB}/digestif/ocaml/.private/baijiu_sha3_384.cmi +${OCAML_SITELIB}/digestif/ocaml/.private/baijiu_sha3_512.cmi ${OCAML_SITELIB}/digestif/ocaml/.private/baijiu_sha512.cmi ${OCAML_SITELIB}/digestif/ocaml/.private/baijiu_whirlpool.cmi ${OCAML_SITELIB}/digestif/ocaml/.private/digestif_bi.cmi ${OCAML_SITELIB}/digestif/ocaml/.private/digestif_by.cmi ${OCAML_SITELIB}/digestif/ocaml/.private/digestif_conv.cmi ${OCAML_SITELIB}/digestif/ocaml/.private/digestif_eq.cmi -${OCAML_SITELIB}/digestif/ocaml/.private/digestif_hash.cmi ${OCAML_SITELIB}/digestif/ocaml/.private/xor.cmi ${OCAML_SITELIB}/digestif/ocaml/baijiu_blake2b.cmt ${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/ocaml/baijiu_blake2b.cmx @@ -58,6 +58,10 @@ ${OCAML_SITELIB}/digestif/ocaml/baijiu_blake2b.ml ${OCAML_SITELIB}/digestif/ocaml/baijiu_blake2s.cmt ${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/ocaml/baijiu_blake2s.cmx ${OCAML_SITELIB}/digestif/ocaml/baijiu_blake2s.ml +${OCAML_SITELIB}/digestif/ocaml/baijiu_keccak_256.cmi +${OCAML_SITELIB}/digestif/ocaml/baijiu_keccak_256.cmt +${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/ocaml/baijiu_keccak_256.cmx +${OCAML_SITELIB}/digestif/ocaml/baijiu_keccak_256.ml ${OCAML_SITELIB}/digestif/ocaml/baijiu_md5.cmt ${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/ocaml/baijiu_md5.cmx ${OCAML_SITELIB}/digestif/ocaml/baijiu_md5.ml @@ -73,9 +77,26 @@ ${OCAML_SITELIB}/digestif/ocaml/baijiu_sha224.ml ${OCAML_SITELIB}/digestif/ocaml/baijiu_sha256.cmt ${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/ocaml/baijiu_sha256.cmx ${OCAML_SITELIB}/digestif/ocaml/baijiu_sha256.ml +${OCAML_SITELIB}/digestif/ocaml/baijiu_sha3.cmi +${OCAML_SITELIB}/digestif/ocaml/baijiu_sha3.cmt +${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/ocaml/baijiu_sha3.cmx +${OCAML_SITELIB}/digestif/ocaml/baijiu_sha3.ml ${OCAML_SITELIB}/digestif/ocaml/baijiu_sha384.cmt ${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/ocaml/baijiu_sha384.cmx ${OCAML_SITELIB}/digestif/ocaml/baijiu_sha384.ml +${OCAML_SITELIB}/digestif/ocaml/baijiu_sha3_224.cmt +${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/ocaml/baijiu_sha3_224.cmx +${OCAML_SITELIB}/digestif/ocaml/baijiu_sha3_224.ml +${OCAML_SITELIB}/digestif/ocaml/baijiu_sha3_256.cmi +${OCAML_SITELIB}/digestif/ocaml/baijiu_sha3_256.cmt +${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/ocaml/baijiu_sha3_256.cmx +${OCAML_SITELIB}/digestif/ocaml/baijiu_sha3_256.ml +${OCAML_SITELIB}/digestif/ocaml/baijiu_sha3_384.cmt +${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/ocaml/baijiu_sha3_384.cmx +${OCAML_SITELIB}/digestif/ocaml/baijiu_sha3_384.ml +${OCAML_SITELIB}/digestif/ocaml/baijiu_sha3_512.cmt +${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/ocaml/baijiu_sha3_512.cmx +${OCAML_SITELIB}/digestif/ocaml/baijiu_sha3_512.ml ${OCAML_SITELIB}/digestif/ocaml/baijiu_sha512.cmt ${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/ocaml/baijiu_sha512.cmx ${OCAML_SITELIB}/digestif/ocaml/baijiu_sha512.ml @@ -98,9 +119,6 @@ ${OCAML_SITELIB}/digestif/ocaml/digestif_conv.ml ${OCAML_SITELIB}/digestif/ocaml/digestif_eq.cmt ${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/ocaml/digestif_eq.cmx ${OCAML_SITELIB}/digestif/ocaml/digestif_eq.ml -${OCAML_SITELIB}/digestif/ocaml/digestif_hash.cmt -${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/ocaml/digestif_hash.cmx -${OCAML_SITELIB}/digestif/ocaml/digestif_hash.ml ${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/ocaml/digestif_ocaml.a ${OCAML_SITELIB}/digestif/ocaml/digestif_ocaml.cma ${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/ocaml/digestif_ocaml.cmxa @@ -109,16 +127,7 @@ ${OCAML_SITELIB}/digestif/ocaml/xor.cmt ${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/ocaml/xor.cmx ${OCAML_SITELIB}/digestif/ocaml/xor.ml ${OCAML_SITELIB}/digestif/opam -${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/rakia/librakia_stubs.a -${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/rakia/rakia.a -${OCAML_SITELIB}/digestif/rakia/rakia.cma -${OCAML_SITELIB}/digestif/rakia/rakia.cmi -${OCAML_SITELIB}/digestif/rakia/rakia.cmt -${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/rakia/rakia.cmx -${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/rakia/rakia.cmxa -${PLIST.ocaml-opt}${OCAML_SITELIB}/digestif/rakia/rakia.cmxs -${OCAML_SITELIB}/digestif/rakia/rakia.ml -${OCAML_SITELIB}/stublibs/dllrakia_stubs.so +${OCAML_SITELIB}/stublibs/dlldigestif_c_stubs.so share/doc/digestif/CHANGES.md share/doc/digestif/LICENSE.md share/doc/digestif/README.md diff --git a/devel/ocaml-digestif/distinfo b/devel/ocaml-digestif/distinfo index a3b497fa40b7..b06cd2b98eb2 100644 --- a/devel/ocaml-digestif/distinfo +++ b/devel/ocaml-digestif/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.4 2021/10/26 10:15:48 nia Exp $ +$NetBSD: distinfo,v 1.5 2022/02/14 09:28:53 wiz Exp $ -BLAKE2s (digestif-0.7.2.tar.gz) = bc3638bea03346c785eade65fcd7a829873521a68a8a3c71afd84ad7c1373e06 -SHA512 (digestif-0.7.2.tar.gz) = 2d7b8e94e36cea214b35769e190b975bdd14d9b294652e8e78444e7c38380924d67f354f42aa85def50aac736773c6e8c9c874d500ab1eb8758ee472cc3755ad -Size (digestif-0.7.2.tar.gz) = 116445 bytes +BLAKE2s (digestif-1.1.0.tar.gz) = 73fe66284fa3a83ffee6b6fedceb9501112811a2663a35c48de87184547ba7c6 +SHA512 (digestif-1.1.0.tar.gz) = bdbaad1772b9f6222a7d17b713c472e73f28d1710e32a4062a94857e5ad5e66b5c140b07507e835537f98c916e6ae6b4cc50fb24ae5792da69e980a0026c6bca +Size (digestif-1.1.0.tar.gz) = 3726359 bytes