opam-version: "2.0"
maintainer: "dave@recoil.org"
authors: [ "David Scott" ]
license: "ISC"
homepage: "https://github.com/mirage/ocaml-launchd"
dev-repo: "git+https://github.com/mirage/ocaml-launchd.git"
bug-reports: "https://github.com/mirage/ocaml-launchd/issues"

build: [
  [make "PREFIX=%{prefix}%"]
  ["ocaml" "setup.ml" "-doc"] {with-doc}
]
install: [make "PREFIX=%{prefix}%" "install"]

remove: [["ocamlfind" "remove" "launchd"]]

depends: [
  "ocaml"
  "result"
  "lwt"
  "cstruct"
  "ocamlfind" {build}
  "ocamlbuild" {build}
]
available: os = "macos"
synopsis: "Bindings for the launchd socket activation API"
description: """
Launchd on OS X takes care of binding and listening on sockets for you
and can launch your program on demand. The API bindings are needed to
receive the listening sockets from launchd."""
flags: light-uninstall
url {
  src: "https://github.com/mirage/ocaml-launchd/archive/v1.1.tar.gz"
  checksum: "md5=892493ce4a6570fd4a221bd8e8115efa"
}
