diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-07-13 12:26:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-07-13 12:26:41 +0100 |
commit | 482a48c0e1675b1e92663b8b5222bb7261aa7956 (patch) | |
tree | b81e02db1810214fc690a762e3a9c687d0f0c5ab /dev-ml/alcotest | |
parent | 37bccfe5e76c5740c4ef5ba1179e9488d8404075 (diff) |
gentoo auto-resync : 13:07:2024 - 12:26:41
Diffstat (limited to 'dev-ml/alcotest')
-rw-r--r-- | dev-ml/alcotest/Manifest | 4 | ||||
-rw-r--r-- | dev-ml/alcotest/alcotest-1.7.0-r1.ebuild | 45 | ||||
-rw-r--r-- | dev-ml/alcotest/files/alcotest-1.7.0-time_float_unix.patch | 49 | ||||
-rw-r--r-- | dev-ml/alcotest/metadata.xml | 4 |
4 files changed, 101 insertions, 1 deletions
diff --git a/dev-ml/alcotest/Manifest b/dev-ml/alcotest/Manifest index ba8e45d8351e..2e9889197b72 100644 --- a/dev-ml/alcotest/Manifest +++ b/dev-ml/alcotest/Manifest @@ -1,8 +1,10 @@ +AUX alcotest-1.7.0-time_float_unix.patch 1758 BLAKE2B 1a4b36da6fa408eb124ca042cc54115c80fa7c4fb1c740949df4a1d1e2faa9961314e9481b4dbed2107d94822ce3198d078aecef6db7ea1664df6c8cf35ff654 SHA512 259ba6333a4e4257870c7255dc6be07c7bb46f9362916e9b18d23adf649eff240778de83327dacb17bc386aae4acaee97e7ba12c6ac1001978918b3ef2f17da9 AUX unknown_option.processed 149 BLAKE2B ceba6d06805d28310bef8f8b098a83b5e87c7ae412ec597c13b61a157e685bd1c6e8bd74b31296116b24b38e3de7e88267f48dd1bed7bcef1400442ef0dfef6a SHA512 8bcec43869fc2748011f252396546479f7f0a87c97fc5b144fee9199156820129bd10b30c74db6ce2a7d5e3f4087546ac66d85922effe85f45a2bb6c1c523e9a DIST alcotest-1.4.0.tar.gz 279675 BLAKE2B 3cc50ab37a16948ceca9b5e6aa885fa50bbe0722c6132ed4991fb64c568253d9913287d1b9e5547f59a210d6803e2a83565f02950fb12cb91ed9f8e24d7864c1 SHA512 adb73c8b2be6f47cb406bbc49dba7dc86e990a60e2e68302592a24dcc24e11e76e2aa6fc2f003c1e4fdbb79744df6ab601daff9540cd7b0096ac9f9bff18098c DIST alcotest-1.5.0.tar.gz 288227 BLAKE2B 6af28f2516888273903bbb7750ba583778c54447157ece29ad8053323492dddfde9b901699be26c868f1f3835ad89d6f163176033f52ffdccc82fa2609e57b64 SHA512 9f496d1b14a78a9cba5dfde71cbda41d3090d2083bc9895dc9d9f54876b86630079219e678f13f6ffd382deb2a1a298b61b2a222fc65d25d4a242d8c280b4784 DIST alcotest-1.7.0.tar.gz 293433 BLAKE2B 83a9b1bb3a6d9ec09de739e77a6e1085bbca328f5be39f6ab28931a7bc16d223d571917f924598ddcc399910f986df95eb72ae61f28512221d9de6174ffe3988 SHA512 6e29cc39109f5d83a175578f48ff1b48fdf13913b7cdd332823a660c681ab0cd5dec41b10322226102b023d7c74620decf964458926abed56ae835e4e565014e EBUILD alcotest-1.4.0-r1.ebuild 689 BLAKE2B ddbe8a6530a28029dff4e5c3a5125e657683a7397f122c3db00bafee0707d82aa6e016cfd9a1e26cc956ae7463f848d6fc7a3262d45db138c4284ad98c140463 SHA512 2e678ac915d567ab8f7c4de7846cbeecdc77844da8b343ed05f8829011976f732d57fc286c11edd62a24f922e0fd769ce091289d85a638d709f2c9850672a81b EBUILD alcotest-1.5.0-r3.ebuild 941 BLAKE2B c8fd6547fdec1e0f834a09039136f1f1a5d368d1260da23fc1deece5c256241f885145d3e42dc242354e37bc647ee62c5e073733833ecd91681245c0249663ac SHA512 b30f27da81bf0d5a7ca3b3b4e69a86e24fc04bb50db8d5a6d4b84b410aceee78349f69355836f342037976f934358bb73f1b8f470b53b7bfc47524ca59cddbba +EBUILD alcotest-1.7.0-r1.ebuild 1097 BLAKE2B a101b6e330341a4f455d2cc34dd074f7c1ca096b5ae69ab9a1da5ffada4ba8226fa4297928d55636915efba28fb111f01676f8bb526bb696691b9ad2e7b7dd87 SHA512 0b984cf0a0e6aef57070154826858f3d3d8f3f9fc787abd65ee3d34b370db7ddf7ba724b5e069b42fce7e1c9e8f321e8dbfe44c641997a86e1c4ba8a22ced20c EBUILD alcotest-1.7.0.ebuild 780 BLAKE2B 791dfcb90027dca4489f3dd5d5bc8aa170f7f076c07a20f7ddaf303d8864fe7720ed5a34792b55ecb467dcc3b3adec9c98877dcb729c12ba193efcd20943718d SHA512 81ef9bd3ddb5e933029901ba5414ed0bba389c38d935f648de7c69aaf3c8994729b89df143a9b5731efd04f98c9312b1d1b09761e091ac863074dec98ac9c2ab -MISC metadata.xml 313 BLAKE2B 8f2a0fe29ed0694a9f3b13a3c093cec830ed9bdfc482cfcb78019fa7621f5982f4f158fd8d1505dc7972a9fd4386629433f679ed216a006176444bca75313911 SHA512 72de033c1529758f63f093c39f71336490bf8628cdd51f3c0d40fcafa4602d2a877601bd316851db15097747bf1342840f150d390cd093c843767f6785cdb3f2 +MISC metadata.xml 438 BLAKE2B d0888aadaa7f4d98611a78383f54bc73627162059cfdb3d03d279ac707af7784952d148d8e2c17a41a763ccd6de0f5466bf09a79b254f4a33c30e5219183b97c SHA512 6bfb4c69324723a05f9b30151166dae2399826a15811b53ea6b7b8b614d6a34a51c57b13de2e38ed1285d62e87a90ac7e582965faa04bd1265752c9202d90bf1 diff --git a/dev-ml/alcotest/alcotest-1.7.0-r1.ebuild b/dev-ml/alcotest/alcotest-1.7.0-r1.ebuild new file mode 100644 index 000000000000..d4859697c59c --- /dev/null +++ b/dev-ml/alcotest/alcotest-1.7.0-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit dune + +DESCRIPTION="A lightweight and colourful test framework" +HOMEPAGE="https://github.com/mirage/alcotest/" +SRC_URI="https://github.com/mirage/alcotest/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="ISC" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +IUSE="+ocamlopt" + +RDEPEND=" + dev-ml/astring:= + dev-ml/async:=[ocamlopt?] + dev-ml/async_kernel:=[ocamlopt?] + >=dev-ml/async_unix-0.15.0:=[ocamlopt?] + dev-ml/base:=[ocamlopt?] + dev-ml/cmdliner:=[ocamlopt?] + >=dev-ml/core-0.15.0:=[ocamlopt?] + >=dev-ml/core_unix-0.15.0:=[ocamlopt?] + dev-ml/duration:=[ocamlopt?] + dev-ml/fmt:=[ocamlopt?] + dev-ml/lwt:=[ocamlopt?] + dev-ml/mirage-clock:=[ocamlopt?] + dev-ml/re:=[ocamlopt?] + dev-ml/result:=[ocamlopt?] + dev-ml/logs:=[ocamlopt?] + dev-ml/uutf:=[ocamlopt?] + dev-ml/uuidm:=[ocamlopt?] +" +DEPEND="${RDEPEND}" +BDEPEND=">=dev-ml/dune-3.0" + +src_prepare() { + default + + if has_version '>=dev-ml/core_unix-0.16.0' ; then + eapply "${FILESDIR}"/${P}-time_float_unix.patch + fi +} diff --git a/dev-ml/alcotest/files/alcotest-1.7.0-time_float_unix.patch b/dev-ml/alcotest/files/alcotest-1.7.0-time_float_unix.patch new file mode 100644 index 000000000000..cb54fb280a43 --- /dev/null +++ b/dev-ml/alcotest/files/alcotest-1.7.0-time_float_unix.patch @@ -0,0 +1,49 @@ +This fixes the following errors: +Error: The module Time_unix.Span is an alias for module Time_float_unix.Span, which is missing +Error: Unbound module Time_float_unix +--- +diff --git a/src/alcotest-async/alcotest_async.ml b/src/alcotest-async/alcotest_async.ml +index 97ed610..b6a826f 100644 +--- a/src/alcotest-async/alcotest_async.ml ++++ b/src/alcotest-async/alcotest_async.ml +@@ -7,7 +7,7 @@ let run_test timeout name fn args = + | `Timeout -> + Alcotest.fail + (Printf.sprintf "%s timed out after %s" name +- (Time_unix.Span.to_string_hum timeout)) ++ (Time_float_unix.Span.to_string_hum timeout)) + + module Promise = struct + include Deferred +@@ -24,7 +24,7 @@ module V1 = struct + + let test_case_sync n s f = test_case n s (fun x -> Deferred.return (f x)) + +- let test_case ?(timeout = Time_unix.Span.of_sec 2.) name s f = ++ let test_case ?(timeout = Time_float_unix.Span.of_sec 2.) name s f = + test_case name s (run_test timeout name f) + end + +diff --git a/src/alcotest-async/alcotest_async_intf.ml b/src/alcotest-async/alcotest_async_intf.ml +index 27df58c..baa55cd 100644 +--- a/src/alcotest-async/alcotest_async_intf.ml ++++ b/src/alcotest-async/alcotest_async_intf.ml +@@ -2,7 +2,7 @@ module type V1 = sig + include Alcotest_engine.V1.Cli.S with type return = unit Async.Deferred.t + + val test_case : +- ?timeout:Time_unix.Span.t -> ++ ?timeout:Time_float_unix.Span.t -> + string -> + Alcotest.speed_level -> + ('a -> unit Async.Deferred.t) -> +diff --git a/src/alcotest-async/dune b/src/alcotest-async/dune +index 9497c26..52ab50c 100644 +--- a/src/alcotest-async/dune ++++ b/src/alcotest-async/dune +@@ -9,4 +9,4 @@ + async_unix + base + core +- core_unix.time_unix)) ++ core_unix.time_float_unix)) diff --git a/dev-ml/alcotest/metadata.xml b/dev-ml/alcotest/metadata.xml index 33063c514b9c..f6ce5fdda9c8 100644 --- a/dev-ml/alcotest/metadata.xml +++ b/dev-ml/alcotest/metadata.xml @@ -1,6 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> + <maintainer type="person"> + <email>fogti+devel@ytrizja.de</email> + <name>Alain Emilia Anna Zscheile</name> + </maintainer> <maintainer type="project"> <email>ml@gentoo.org</email> <name>ML</name> |