-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
43 lines (43 loc) · 1.47 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
opam-version: "2.0"
maintainer: "Spiros Eliopoulos <spiros@inhabitedtype.com>"
authors: [ "Spiros Eliopoulos <spiros@inhabitedtype.com>" ]
license: "BSD-3-Clause"
homepage: "https://github.com/inhabitedtype/ocaml-webmachine"
dev-repo: "git+https://github.com/inhabitedtype/ocaml-webmachine.git"
bug-reports: "https://github.com/inhabitedtype/ocaml-webmachine/issues"
build: [
["ocaml" "setup.ml" "-configure" "--prefix" prefix]
["ocaml" "setup.ml" "-build"]
["ocaml" "setup.ml" "-configure" "--enable-tests"] {with-test}
["ocaml" "setup.ml" "-build"] {with-test}
["ocaml" "setup.ml" "-test"] {with-test}
["ocaml" "setup.ml" "-doc"] {with-doc}
]
install: ["ocaml" "setup.ml" "-install"]
remove: [
["ocamlfind" "remove" "webmachine"]
]
depends: [
"ocaml" {>= "4.01" & < "5.0"}
"cohttp" {>= "0.12.0" & < "0.21.0"}
"dispatch" {= "0.2.0"}
"ocamlfind" {build}
"ounit" {with-test & >= "1.0.2"}
"re" {>= "1.3.0"}
"ocamlbuild" {build}
]
synopsis: "A REST toolkit for OCaml"
description: """
OCaml webmachine is a layer on top of cohttp that implements a
state-machine-based HTTP request processor. It's particularly
well-suited for writing RESTful APIs. As the name suggests, this is an
OCaml port of the webmachine project."""
flags: light-uninstall
url {
src:
"https://github.com/inhabitedtype/ocaml-webmachine/archive/0.2.1.tar.gz"
checksum: [
"sha256=3cb248a01ecd19b9955eeaea8bea8f7f4c8180bb155f8fe81ef964d308689e97"
"md5=52ea3d2709629e5deccbc30d224a073d"
]
}