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

build: [
  [make "configure-no-tests"]
  [make "build"]
]
remove: [
  ["ocamlfind" "remove" "opium_rock"]
  ["ocamlfind" "remove" "opium"]
]

depends: [
  "ocaml" {>= "4.01.0"}
  "ocamlfind"
  "cohttp" {>= "0.10.0" & < "0.12.0"}
  "oasis"
  "async" {< "v0.15"}
  "core" {< "v0.15"}
  "fieldslib" {< "113.01.00"}
  "sexplib" {< "113.01.00"}
  "humane-re"
  "cow" {>= "0.10.0"}
  "ocamlbuild" {build}
]
dev-repo: "git://github.com/rgrinberg/opium"
install: [make "install"]
synopsis: "Sinatra like web toolkit based on Async + 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.9.1.tar.gz"
  checksum: "md5=f2c37f28545818d343af4a6b8595d19f"
}
