summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2023-09-02 14:36:43 +0200
committerAlfredo Tupone <tupone@gentoo.org>2023-09-02 15:16:34 +0200
commit0d3667055c2d301c3a96eeda0bf16a5f56af1dcd (patch)
tree0c860b3ee4610724f4766ef96fd4f68f65b16856 /dev-ml
parentdev-ml/lambda-term: add 3.3.2 (diff)
downloadgentoo-0d3667055c2d301c3a96eeda0bf16a5f56af1dcd.tar.gz
gentoo-0d3667055c2d301c3a96eeda0bf16a5f56af1dcd.tar.bz2
gentoo-0d3667055c2d301c3a96eeda0bf16a5f56af1dcd.zip
dev-ml/lwt: add 5.7.0
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/lwt/Manifest1
-rw-r--r--dev-ml/lwt/lwt-5.7.0.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-ml/lwt/Manifest b/dev-ml/lwt/Manifest
index 837895055927..e431a404eeae 100644
--- a/dev-ml/lwt/Manifest
+++ b/dev-ml/lwt/Manifest
@@ -1,3 +1,4 @@
DIST lwt-5.3.0.tar.gz 298152 BLAKE2B a39494bf98fcca07bf4601a742f4bfdc1ea2a67e2babbab650c41d2df58296a859520509ddc080af9c4d55be76439b401174720765fb942586d7c866f80cc538 SHA512 9922c19944595b0c07da8e1bbdecb2cc7c5a7edcdc2224215efb819d9c735da8986388a2446bd0762e28533f5d9d386970f07a4f1b0d14255c6743f3a1d16cb6
DIST lwt-5.4.2.tar.gz 304541 BLAKE2B d474b20538af382c6f64072da2caa25e285f431c9b161c9796a44d1c84475f72e50d81baccb22ae908f82594c9dcaac6a874f54fe6332de2550128774d1280fc SHA512 9f46fb2e56dc7bd57a12d5ab4dc68719947a1462f336087a95e991d087bb9b5b8dee2592d0f7d35abc507d9a641dd221c44c949c81d00e26c673a067d94ba3f4
DIST lwt-5.6.1.tar.gz 316067 BLAKE2B a9cf6bc2b57a130a5df8aa745987f9b8516adf0fce040d50d3bfbd6d9f801917ca37d050eb7fd7a210c5b0ae5e5726dd21fc675c2e8ee8670d0475204dbcc3aa SHA512 698875bd3bfcd5baa47eb48e412f442d289f9972421321541860ebe110b9af1949c3fbc253768495726ec547fe4ba25483cd97ff39bc668496fba95b2ed9edd8
+DIST lwt-5.7.0.tar.gz 313632 BLAKE2B e1b401c70b7722b266085c0493ab4e081aeb58cdf0e3569f677ee3b66edb1b4dda9afd115143315562f301a80bf8efbb09ced3f09f641adcac01fe44b3670cdc SHA512 42e629920783428673b99c9d7a639237c9e6b35079b5d907bc67e7ea506acf9edadc48cec580bdcfd2410ed9412bf5e6bcc8b09de2fa7d35ce1490973d05ddd1
diff --git a/dev-ml/lwt/lwt-5.7.0.ebuild b/dev-ml/lwt/lwt-5.7.0.ebuild
new file mode 100644
index 000000000000..843d8f87521b
--- /dev/null
+++ b/dev-ml/lwt/lwt-5.7.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Cooperative light-weight thread library for OCaml"
+SRC_URI="https://github.com/ocsigen/lwt/archive/${PV}.tar.gz -> ${P}.tar.gz"
+HOMEPAGE="http://ocsigen.org/lwt"
+
+SLOT="0/${PV}"
+LICENSE="LGPL-2.1-with-linking-exception"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+IUSE="+ocamlopt"
+
+DEPEND="
+ dev-libs/libev
+ dev-ml/luv:=
+ dev-ml/mmap:=
+ dev-ml/ocplib-endian:=
+ dev-ml/ppx_let:=
+ dev-ml/ppxlib:=
+ dev-ml/react:=
+ dev-ml/result:=
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ dev-ml/cppo
+ dev-ml/findlib
+"
+
+# "domainslib" is unpackaged.
+OCAML_SUBPACKAGES=(
+ lwt
+ lwt_ppx
+ lwt_ppx_let
+ lwt_react
+)
+
+src_prepare() {
+ sed -i "s| seq||" "${S}"/src/core/dune || die
+
+ default
+}
+
+src_compile() {
+ dune-compile ${OCAML_SUBPACKAGES[@]}
+}
+
+src_test() {
+ dune-test ${OCAML_SUBPACKAGES[@]}
+}
+
+src_install() {
+ dune-install ${OCAML_SUBPACKAGES[@]}
+
+ einstalldocs
+}