opam-version: "2.0"
maintainer: "Nicolas Ojeda Bar <n.oje.bar@gmail.com>"
authors: "Nicolas Ojeda Bar <n.oje.bar@gmail.com>"
homepage: "https://www.github.com/nojb/ocaml-macaroons"
dev-repo: "git+https://www.github.com/nojb/ocaml-macaroons.git"
bug-reports: "https://www.github.com/nojb/ocaml-macaroons/issues"
license: "MIT"
build: [
  [make "macaroons"]
  [make "sodium_macaroons"] {sodium:installed}
  [make "doc"] {with-doc}
]
install: [
  [make "install"] {!sodium:installed}
  [make "install_sodium"] {sodium:installed}
]
remove: ["ocamlfind" "remove" "macaroons"]
depends: [
  "ocaml" {>= "4.01.0"}
  "hex"
  "base64" {>= "2.0.0" & < "3.0.0"}
  "ocamlfind" {build}
  "ocamlbuild" {build}
]
depopts: "sodium"
synopsis: "Macaroons for OCaml"
description: """
This is a minimal reimplementation of libmacaroons
(https://github.com/rescrv/libmacaroons) in OCaml.

It consists of two findlib libraries: `macaroons` and `macaroons.sodium`.  The
first provides a functor over the required cryptographic operations, while the
second uses libsodium for crypto, and is only installed if the OPAM package
`sodium` is installed.

See the paper http://research.google.com/pubs/pub41892.html to learn about
Macaroons."""
flags: light-uninstall
url {
  src: "https://github.com/nojb/ocaml-macaroons/archive/v0.1.0.tar.gz"
  checksum: "md5=6816ced35f687944f58e1a0d27bc888c"
}
