opam-version: "2.0"
maintainer: "whitequark <whitequark@whitequark.org>"
authors: [ "whitequark <whitequark@whitequark.org>" ]
license: "LGPL-2.1"
homepage: "https://github.com/whitequark/ocaml-inotify"
doc: "http://whitequark.github.io/ocaml-inotify"
bug-reports: "https://github.com/whitequark/ocaml-inotify/issues"
dev-repo: "git://github.com/whitequark/ocaml-inotify.git"
build: [
  ["ocaml" "setup.ml" "-configure" "--%{lwt:enable}%-lwt" "--prefix" prefix]
  ["ocaml" "setup.ml" "-build"]
  [
    "ocaml"
    "setup.ml"
    "-configure"
    "--%{lwt:enable}%-lwt"
    "--prefix"
    prefix
    "--enable-tests"
  ] {with-test}
  ["ocaml" "setup.ml" "-build"] {with-test}
  ["ocaml" "setup.ml" "-test"] {with-test}
]
install: [
  ["ocaml" "setup.ml" "-install"]
]
remove: [
  ["ocamlfind" "remove" "inotify"]
]
depends: [
  "ocaml"
  "base-unix"
  "base-bytes"
  "ocamlfind" {build}
  "fileutils" {with-test}
  "ocamlbuild" {build}
  "ounit" {with-test & >= "2.0.0"}
]
depopts: ["lwt"]
conflicts: [
  "lwt" {with-test & >= "5.0.0"}
]
available: [os = "linux"]
synopsis: "Inotify bindings for ocaml."
flags: light-uninstall
url {
  src: "https://github.com/whitequark/ocaml-inotify/archive/v2.2.tar.gz"
  checksum: "md5=a62de155ec4a1d102bc07fc75a060e08"
}
