opam-version: "2.0"
maintainer: "Dario Teixeira <dario.teixeira@nleyten.com>"
authors: ["Dario Teixeira <dario.teixeira@nleyten.com>"]
homepage: "http://ocaml-bitcoin.forge.ocamlcore.org/"
bug-reports: "https://github.com/darioteixeira/ocaml-bitcoin/issues"
dev-repo: "git+https://github.com/darioteixeira/ocaml-bitcoin.git"
license: "LGPL-2.1-only with OCaml-LGPL-linking-exception"
build: [
  ["./configure" "--prefix" prefix
                 "--docdir" "%{doc}%/bitcoin"
                 "--%{ocsigenserver:enable}%-ocsigen"
                 "--%{ocamlnet:enable}%-ocamlnet"
                 "--%{cohttp:enable}%-cohttp"
                 "--%{ocurl:enable}%-ocurl"
  ]
  [make]
  [make "doc"]
]
install: [[make "install"]]
remove: [["ocamlfind" "remove" "bitcoin"]]
depends: [
  "ocaml"
  "yojson"
  "cryptokit"
  "ocamlbuild" {build}
]
depopts: [
  "ocsigenserver"
  "ocamlnet"
  "cohttp"
  "ocurl"
]
conflicts: [
  "ocamlnet" {< "4.0.0"}
  "cohttp" {>= "0.99.0"}
  "lwt" {>= "4.0.0"}
]
synopsis:
  "Library offering an OCaml interface to the official Bitcoin client API"
flags: light-uninstall
url {
  src: "https://github.com/darioteixeira/ocaml-bitcoin/archive/v2.0.tar.gz"
  checksum: "md5=3e9f640e64edac79a7d080f0f384800e"
}
