opam-version: "2.0"
license: "LGPL v2 with OCaml linking exception"
maintainer: "Kate <kit.ty.kate@disroot.org>"
authors: [
  "Gabriel Scherer <gasche.dylc@gmail.com>"
  "Kate <kit.ty.kate@disroot.org>"
]
homepage: "https://github.com/ocsigen/macaque"
dev-repo: "git+https://github.com/ocsigen/macaque.git"
bug-reports: "https://github.com/ocsigen/macaque/issues"
patches: [
  "fix-configure.patch"
]
build: [
  ["./configure" "--prefix" prefix]
  [make]
]
install: [
  [make "install"]
]
remove: [
  ["ocamlfind" "remove" "macaque"]
]
depends: [
  "ocaml"
  "ocamlfind" {build}
  "pgocaml" {< "2.0"}
  "camlp4"
  "ocamlbuild" {build}
]
tags: [
  "SQL"
  "Postgres"
  "PostgreSQL"
  "safe"
  "typed"
  "database"
  "DB"
]
synopsis:
  "Macaque (Macros for Caml Queries) is a DSL for OCaml, wich produce SQL requests from a comprehension syntax. Macaque can build queries by from simpler components, using phantom types used to ensure safety."
flags: light-uninstall
extra-files: ["fix-configure.patch" "md5=7a1e3bda46fc798eefc2db6f852f2650"]
url {
  src: "https://github.com/ocsigen/macaque/archive/0.7.tar.gz"
  checksum: "md5=fa35be694cda6ecc916573f2c43183cc"
}
