/
opam
71 lines (70 loc) · 1.84 KB
/
opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
opam-version: "2.0"
maintainer: "anil@recoil.org"
authors: [
"Anil Madhavapeddy"
"Stefano Zacchiroli"
"David Sheets"
"Thomas Gazagnaire"
"David Scott"
"Rudi Grinberg"
"Andy Ray"
]
homepage: "https://github.com/mirage/ocaml-cohttp"
bug-reports: "https://github.com/mirage/ocaml-cohttp/issues"
license: "ISC"
tags: ["org:mirage" "org:xapi-project"]
dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git"
build: [
[make "PREFIX=%{prefix}%"]
["ocaml" "setup.ml" "-configure" "--enable-tests"]
{with-test & ocaml:version < "4.06.0"}
["ocaml" "setup.ml" "-build"] {with-test & ocaml:version < "4.06.0"}
["ocaml" "setup.ml" "-test"] {with-test & ocaml:version < "4.06.0"}
["ocaml" "setup.ml" "-doc"] {with-doc}
]
install: [make "PREFIX=%{prefix}%" "install"]
remove: ["ocamlfind" "remove" "cohttp"]
depends: [
"ocaml" {>= "4.01.0" & < "5.0"}
"base-bytes"
"ocamlfind" {build}
"ocamlbuild" {build}
"cmdliner" {build & >= "0.9.4"}
"re"
"uri" {>= "1.9.0" & < "2.0.0"}
"fieldslib"
"sexplib"
"conduit" {>= "0.11.0" & < "0.16.0"}
"ppx_fields_conv"
"ppx_deriving"
"ppx_sexp_conv"
"stringext"
"base64" {>= "2.0.0" & < "3.0.0"}
"magic-mime"
"ounit" {with-test}
"alcotest" {with-test}
]
depopts: [
"async"
"lwt"
"js_of_ocaml"
]
conflicts: [
"async" {< "113.24.00"}
"lwt" {< "2.5.0"}
"lwt" {>= "4.0.0"}
"js_of_ocaml" {< "2.6"}
"js_of_ocaml" {>="3.0"}
]
synopsis: "HTTP(S) library for Lwt, Async and Mirage"
description: """
There are several optional dependencies which activate functionality:
* Lwt: `opam install lwt cohttp`
* Lwt and SSL: `opam install lwt ssl cohttp`
* Async: `opam install async cohttp`
* Async and SSL: `opam install async_ssl cohttp`"""
flags: light-uninstall
url {
src: "https://github.com/mirage/ocaml-cohttp/archive/v0.20.2.tar.gz"
checksum: "md5=30f504f6be979a5a799a6a2f3ee4e443"
}