opam-version: "2.0"
maintainer: "Christophe Troestler <Christophe.Troestler@umons.ac.be>"
authors: [ "Richard Jones"
           "Christophe Troestler" ]
license: "LGPL-2.1-only with OCaml-LGPL-linking-exception"
homepage: "https://github.com/Chris00/ocaml-csv"
dev-repo: "git+https://github.com/Chris00/ocaml-csv.git"
bug-reports: "https://github.com/Chris00/ocaml-csv/issues"
tags: [ "database" "science"  ]
build: [
  ["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" "csv"]
]
depends: [
  "ocaml"
  "base-bytes"
  "ocamlfind" {build & >= "1.5"}
  "ocamlbuild" {build}
]
synopsis: "A pure OCaml library to read and write CSV files."
description: """
This is a pure OCaml library to read and write CSV files, including
all extensions used by Excel — e.g. quotes, newlines, 8 bit
characters in fields, \\"0 etc. A special representation of rows of CSV
files with a header is provided. The library comes with a handy
command line tool called csvtool for handling CSV files from shell
scripts."""
flags: light-uninstall
extra-files: ["csv.install" "md5=32f2e83491f3337ed73738e2330b40ea"]
url {
  src:
    "https://github.com/Chris00/ocaml-csv/releases/download/1.4/csv-1.4.tar.gz"
  checksum: "md5=b9d2c44ec264312e473c66f2da0c2ef0"
}
