opam-version: "2.0"
maintainer: "jeremie@dimino.org"
build: [
  [
    "./configure"
    "--prefix"
    prefix
    "--%{conf-libev:enable}%-libev"
    "--%{react:enable}%-react"
    "--%{ssl:enable}%-ssl"
    "--%{base-unix:enable}%-unix"
    "--%{base-unix+base-threads:enable}%-extra"
    "--%{base-threads:enable}%-preemptive"
    "--%{lablgtk:enable}%-glib"
    "--%{ppx_tools:enable}%-ppx"
  ]
  [make "build"]
]
remove: [["ocamlfind" "remove" "lwt"]]
depends: [
  "ocaml" {< "4.03.0"}
  "ocamlfind" {>= "1.5.0"}
  "camlp4"
  ("base-no-ppx" | "ppx_tools")
  "ocamlbuild" {build}
  "conf-ncurses" {build}
]
depopts: [
  "base-threads"
  "base-unix"
  "conf-libev"
  "ssl"
  "react"
  "lablgtk"
]
conflicts: [
  "ocaml-variants" {= "4.02.1+BER"}
  "react" {< "1.0.0"}
  "ssl" {>= "0.5.0"}
]
patches: "patch-ocsigen-lwt-101.diff" {os = "macos"}
dev-repo: "git://github.com/ocsigen/lwt"
install: [make "install"]
synopsis: "A cooperative threads library for OCaml"
description: """
This library is part of the Ocsigen project. See:

http://ocsigen.org/lwt"""
flags: light-uninstall
extra-files: [
  "patch-ocsigen-lwt-101.diff" "md5=cd2fcb708c9c91cc8ad80c9440fdbe43"
]
url {
  src: "https://github.com/ocsigen/lwt/archive/2.4.6.tar.gz"
  checksum: "md5=46d7efc6326628cca3f4a28628920176"
}
