dev-ml/lwt - 5.9.2 (gentoo)

Search

Package Information

Description:
Cooperative light-weight thread library for OCaml
Homepage:
http://ocsigen.org/lwt
License:
LGPL-2.1-with-linking-exception

Ebuild Details

Version EAPI Keywords Slot
5.9.2 8 ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 0/5.9.2
View Raw Ebuild
# 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
}

USE Flags

ocamlopt
Default: Enabled (+)

Dependencies

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

	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?]

BDEPEND

	dev-ml/cppo
	>=dev-ml/dune-3.15
	dev-ml/findlib
	test? ( dev-ml/ppx_here )

Manifest for 5.9.2

Type File Size Source URLs
DIST lwt-5.9.2.tar.gz 311751 bytes https://github.com/ocsigen/lwt/archive/5.9.2.tar.gz