gentoo/dev-ml/lwt/lwt-5.9.2.ebuild
Alfredo Tupone a38f770260
dev-ml/lwt: add 5.9.2
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
2025-08-31 21:26:41 +02:00

57 lines
1.0 KiB
Bash

# Copyright 1999-2025 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"
HOMEPAGE="http://ocsigen.org/lwt"
SRC_URI="https://github.com/ocsigen/lwt/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2.1-with-linking-exception"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
IUSE="+ocamlopt test"
RESTRICT="!test? ( test )"
DEPEND="
dev-libs/libev
dev-ml/luv:=[ocamlopt?]
dev-ml/mmap:=[ocamlopt?]
dev-ml/ocplib-endian:=[ocamlopt?]
dev-ml/ppx_let:=[ocamlopt?]
>=dev-ml/ppxlib-0.36:=[ocamlopt?]
dev-ml/react:=
dev-ml/result:=[ocamlopt?]
"
RDEPEND="${DEPEND}"
BDEPEND="
dev-ml/cppo
>=dev-ml/dune-3.15
dev-ml/findlib
test? ( dev-ml/ppx_here )
"
# "domainslib" is unpackaged.
OCAML_SUBPACKAGES=(
lwt
lwt_ppx
lwt_react
lwt_retry
)
src_compile() {
dune-compile ${OCAML_SUBPACKAGES[@]}
}
src_test() {
dune-test ${OCAML_SUBPACKAGES[@]}
}
src_install() {
dune-install ${OCAML_SUBPACKAGES[@]}
einstalldocs
}