opam-version: "2.0"
maintainer: "rudi.grinberg@gmail.com"
authors: ["Rudi Grinberg"]
license: "MIT"

homepage: "https://github.com/rgrinberg/opium"
bug-reports: "https://github.com/rgrinberg/opium/issues"
dev-repo: "git+https://github.com/rgrinberg/opium.git"
build: [
  [make "opam"]
  [make "check"] {with-test}
]
install: [make "install"]

remove: [
  ["ocamlfind" "remove" "opium"]
  ["ocamlfind" "remove" "opium_kernel"]
]

depends: [
  "ocaml" {>= "4.01.0"}
  "ocamlfind" {build}
  "omake" {build}
  "hmap"
  "cohttp" {>= "0.15.0" & < "0.99"}
  "ezjsonm" {>= "0.4.0"}
  "base64" {>= "2.0.0" & < "3.0.0"}
  "lwt"
  "cmdliner"
  "fieldslib" {< "v0.15"}
  "sexplib" {< "v0.15"}
  "ppx_fields_conv" {< "v0.15"}
  "ppx_deriving"
  "ppx_sexp_conv" {< "v0.15"}
  "re" {>= "1.3.0"}
  "magic-mime"
  "alcotest"
  "cow" {with-test & >= "0.10.0"}
]
synopsis: "Sinatra like web toolkit based on Lwt + Cohttp"
description: """
Opium is a minimalistic library for quickly binding functions
to http routes. Its features include (but not limited to):

* Middleware system for app independent components
* A simple router for matching urls and parsing parameters
* Request/Response pretty printing for easier debugging

Note: This library is still at an early stage so expect breakages
until 1.0"""
flags: light-uninstall
url {
  src: "https://github.com/rgrinberg/opium/archive/v0.15.0.tar.gz"
  checksum: "md5=24ce037546846438ce9bac10e21ec6d6"
}
