opam-version: "2.0"
maintainer: "andreashauptmann@t-online.de"
authors: [ "andreashauptmann@t-online.de" ]
license: "LGPL-2.1-or-later with OCaml-LGPL-linking-exception"
homepage: "https://github.com/fdopen/uwt"
dev-repo: "git+https://github.com/fdopen/uwt.git"
bug-reports: "https://github.com/fdopen/uwt/issues"
tags: ["clib:libuv"]
build: [
  ["omake" "lib"]
  ["omake" "test"] {with-test}
]
install: [["omake" "install"]]
remove: [
  ["ocamlfind" "remove" "uwt"]
]
depends: [
  "ocaml" {>= "4.02.1"}
  "base-unix"
  "base-bigarray"
  "base-threads"
  "base-bytes"
  "conf-libuv" {build & >= "1"}
  "lwt" {>= "2.4.7" & < "4.0.0"}
  "ocamlfind" {build}
  "cppo" {build}
  "omake" {build}
  "ounit" {with-test & >= "2.0"}
  "ppx_deriving" {with-test & >= "2.0"}
  "ppx_import" {with-test & >= "1.0"}
]
depexts: [
  ["pkgconf" "libuv"] {os = "freebsd"}
  ["libuv" "pkg-config"] {os = "macos" & os-distribution = "homebrew"}
]
post-messages: [
  "Could not build uwt. The most common reason for that is a missing or old 'libuv' system package (version 0.x is not supported)." {failure}
]
synopsis: "libuv bindings"
description: """
uwt provides OCaml bindings for libuv.
The main loop of libuv is integrated into lwt,
the light-weight cooperative threads library."""
flags: light-uninstall
url {
  src:
    "https://github.com/fdopen/uwt/releases/download/0.0.2/uwt-0.0.2.tar.gz"
  checksum: "md5=324f509fc7bbafb2ceb86d70d934d30c"
}
