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" {>= "2.4.3"}
  "cstruct" {>= "0.7.0"}
  "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.2.tar.gz"
  checksum: "md5=abf6eb7d8d44211dd64c5a632b78c336"
}
