opam-version: "2.0"
maintainer: "Markus Mottl <markus.mottl@gmail.com>"
authors: [
  "Alain Frisch <alain.frisch@lexifi.com>"
  "Markus Mottl <markus.mottl@gmail.com>"
  "Petter Urkedal <paurkedal@gmail.com>"
]
license: "LGPL-2.1-or-later with OCaml-LGPL-linking-exception"
homepage: "https://mmottl.github.io/postgresql-ocaml"
doc: "https://mmottl.github.io/postgresql-ocaml/api"
dev-repo: "git+https://github.com/mmottl/postgresql-ocaml.git"
bug-reports: "https://github.com/mmottl/postgresql-ocaml/issues"

build: [
  ["dune" "subst"] {pinned}
  ["dune" "build" "-p" name "-j" jobs]
]

depends: [
  "ocaml" {>= "4.05"}
  "dune" {>= "1.4.0"}
  "dune-configurator"
  "base" {build & < "v0.15"}
  "stdio" {build & < "v0.15"}
  "base-bytes"
]

depexts: [
  ["libpq-dev"] {os-family = "debian"}
  ["database/postgresql96-client"] {os-distribution = "freebsd"}
  ["database/postgresql96-client"] {os-distribution = "openbsd"}
  ["postgresql-devel"] {os-distribution = "centos"}
  ["postgresql-devel"] {os-distribution = "rhel"}
  ["postgresql-devel"] {os-distribution = "fedora"}
  ["postgresql-devel"] {os-distribution = "opensuse"}
  ["postgresql-dev"] {os-distribution = "alpine"}
  ["postgresql"] {os = "macos" & os-distribution = "homebrew"}
  ["postgresql96"] {os = "macos" & os-distribution = "macports"}
]
synopsis: "Bindings to the PostgreSQL library"

description: """
Postgresql offers library functions for accessing PostgreSQL databases."""
url {
  src:
    "https://github.com/mmottl/postgresql-ocaml/releases/download/4.4.2/postgresql-4.4.2.tbz"
  checksum: "md5=a33ddf73b99ea63a916134e5f0debbb4"
}
