opam-version: "2.0"
maintainer: "Edgar Aroutiounian <edgar.factorial@gmail.com>"
authors: "Edgar Aroutiounian <edgar.factorial@gmail.com>"
homepage: "http://hyegar.com"
bug-reports: "https://github.com/fxfactorial/ocaml-brotli/issues"
license: "BSD-3-Clause"
tags: ["clib:stdc" "clib:brotli"]
dev-repo: "git+https://github.com/fxfactorial/ocaml-brotli.git"
build: [
  ["oasis" "setup" "-setup-update" "dynamic"]
  ["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" "brotli"]
depends: [
  "ocaml" {>= "4.03.0" & < "4.10"}
  "oasis" {build}
  "ocamlfind" {build}
  "ocamlbuild" {build}
]
messages:
  "Note, you'll need to have libbrotli installed: https://github.com/bagder/libbrotli"
post-messages: [
  "Make sure you had libbrotli installed, get it at:https://github.com/bagder/libbrotli"
    {failure}
  "Make sure you have at least gcc 5.4, gcc4 will not understand -std=c++14, -fsanitize-undefined-trap-on-error"
    {failure & os = "linux"}
]
synopsis: "Bindings to Google's Brotli compresion algorithm"
description: """
OCaml Bindings to brotli, Google's compression algorithm for the web
Source: https://github.com/google/brotli/ RFC:
http://www.ietf.org/id/draft-alakuijala-brotli"""
flags: light-uninstall
url {
  src: "https://github.com/fxfactorial/ocaml-brotli/archive/v1.2.2.tar.gz"
  checksum: "md5=26412c8835e49b888d5e4a0693ed6f41"
}
