dev-ml/lwt - 5.9.1 (gentoo)

Search

Install

Install this version:

emerge -a =dev-ml/lwt-5.9.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-ml/lwt-5.9.1

Or alternatively:

emerge --autounmask-write -a =dev-ml/lwt-5.9.1

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.1 8 ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 0/5.9.1
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:=[ocamlopt?]
	dev-ml/react:=
	dev-ml/result:=[ocamlopt?]
"
RDEPEND="${DEPEND}"
BDEPEND="
	dev-ml/cppo
	dev-ml/findlib
	test? ( dev-ml/ppx_here )
"

# "domainslib" is unpackaged.
OCAML_SUBPACKAGES=(
	lwt
	lwt_ppx
	lwt_react
	lwt_retry
)

src_prepare() {
	sed -i "s| seq||" "${S}"/src/core/dune || die
	if has_version ">=dev-ml/ppxlib-0.36.0"; then
		eapply "${FILESDIR}"/${P}-ppxlib.patch
	fi
	default
}

src_compile() {
	dune-compile ${OCAML_SUBPACKAGES[@]}
}

src_test() {
	dune-test ${OCAML_SUBPACKAGES[@]}
}

src_install() {
	dune-install ${OCAML_SUBPACKAGES[@]}

	einstalldocs
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-ml/lwt | euse -E <flag> -p dev-ml/lwt | euse -D <flag> -p dev-ml/lwt

Global/Standard Flags

ocamlopt
Default: Enabled (+)

Inherited Eclasses

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:=[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:=[ocamlopt?]
	dev-ml/react:=
	dev-ml/result:=[ocamlopt?]

BDEPEND

	dev-ml/cppo
	dev-ml/findlib
	test? ( dev-ml/ppx_here )

Manifest for 5.9.1

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