opam-version: "2.0"
maintainer: "anil@recoil.org"
tags: [
  "org:mirage"
  "org:xapi-project"
]
build: [make "PREFIX=%{prefix}%"]
remove: [["ocamlfind" "remove" "cohttp"]]
depends: [
  "ocaml"
  "ocamlfind"
  "re"
  "uri" {>= "1.3.8" & < "1.5.0"}
  "ounit"
  "cstruct"
  "ocamlbuild" {build}
]
depopts: ["async" "lwt" "mirage-net"]
conflicts: [
  "async" {> "109.53.02"}
  "async" {< "109.15.00"}
  "lwt" {>= "2.4.7"}
  "lwt" {< "2.4.3"}
  "mirage-net" {< "0.5.0"}
  "mirage-net" {>= "0.9.4"}
]
dev-repo: "git://github.com/mirage/ocaml-cohttp"
install: [make "PREFIX=%{prefix}%" "install"]
synopsis: "HTTP library for Lwt, Async and Mirage"
description: """
If you wish to install the Lwt_unix version, then you will also need the ssl
optional package for this version.  Just do:

`opam install cohttp lwt ssl` to get a fully working HTTP(S) Lwt_unix client."""
flags: light-uninstall
url {
  src:
    "https://github.com/mirage/ocaml-cohttp/archive/ocaml-cohttp-0.9.8.tar.gz"
  checksum: "md5=7ef884266c1f76a20567e5f862dc53ba"
}
