opam-version: "2.0"
maintainer: "simon.cruanes@inria.fr"
authors: "Simon Cruanes"
homepage: "https://github.com/c-cube/ocaml-containers/"
bug-reports: "https://github.com/c-cube/ocaml-containers/issues/"
doc: "http://cedeela.fr/~simon/software/containers/"
tags: ["stdlib" "containers" "iterators" "list" "heap" "queue"]
dev-repo: "git+https://github.com/c-cube/ocaml-containers.git"
build: [
  [
    "./configure"
    "--prefix"
    prefix
    "--%{base-threads:enable}%-thread"
    "--disable-bench"
    "--disable-tests"
    "--%{base-bigarray:enable}%-bigarray"
    "--%{sequence:enable}%-advanced"
    "--%{base-unix:enable}%-unix"
    "--enable-docs"
  ]
  [make "build"]
  [make "test"] {with-test}
  [make "doc"] {with-doc}
]
install: [make "install"]
remove: ["ocamlfind" "remove" "containers"]
depends: [
  "ocaml" {>= "4.00.0" & < "4.08.0"}
  "ocamlfind" {build}
  "base-bytes"
  "result"
  "cppo" {build}
  "ocamlbuild" {build}
  "qtest" {with-test}
]
depopts: [
  "sequence"
  "base-bigarray"
  "base-unix"
  "base-threads"
]
conflicts: [
  "sequence" {< "0.5"}
  "sequence" {>= "1.0"}
  "qtest" {< "2.2"}
  "qcheck"
]
post-messages:
  "
Small release of containers, with some bugfixes and performance improvements.

see https://github.com/c-cube/ocaml-containers/blob/0.18/CHANGELOG.adoc
  "
synopsis:
  "A modular extension of the OCaml standard library with a focus on data structures."
description: """
Containers is an extension of OCaml's standard library (under BSD license)
focused on data structures, combinators and iterators, without dependencies on
unix, str or num. Every module is independent and is prefixed with 'CC' in the
global namespace. Some modules extend the stdlib (e.g. CCList provides safe
map/fold_right/append, and additional functions on lists).

It also features sub-libraries for dealing with strings, helpers for unix,
threads, and S-expressions."""
flags: light-uninstall
url {
  src: "https://github.com/c-cube/ocaml-containers/archive/0.18.tar.gz"
  checksum: "md5=baa6b8ca9eef3f3bd195b95af2f3aac4"
}
