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

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

depends: [
  "ocaml" {>= "4.01.0"}
  "ocamlfind"
  "cohttp" {< "0.12.0"}
  "oasis"
  "async" {< "v0.15"}
  "core" {< "v0.15"}
  "fieldslib" {< "113.01.00"}
  "sexplib" {< "113.01.00"}
  "cow"
  "pcre"
  "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 PCRE based router for matching url routes
* 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.3.2.tar.gz"
  checksum: "md5=5a6794ae162de709e8724d164aca122a"
}
