opam-version: "2.0"
maintainer: "thomas.braibant@gmail.com"
authors: "Xavier Leroy"
homepage: "https://forge.ocamlcore.org/projects/zarith"
build: [
  ["./configure"]
  [make]
]
remove: [["ocamlfind" "remove" "zarith"]]
depends: [
  "ocaml" {< "4.03.0"}
  "conf-gmp"
  "ocamlfind"
]
patches: ["install_fix.patch"]
depexts: ["perl"] {os-distribution = "alpine"}
install: [make "install"]
synopsis:
  "Implements arithmetic and logical operations over arbitrary-precision integers"
description: """
The Zarith library implements arithmetic and logical operations over
arbitrary-precision integers. It uses GMP to efficiently implement
arithmetic over big integers. Small integers are represented as Caml
unboxed integers, for speed and space economy."""
flags: light-uninstall
extra-files: ["install_fix.patch" "md5=b48bb873c56ca0d53bb4ea689cd02887"]
url {
  src: "https://download.ocamlcore.org/zarith/Zarith/1.2/zarith-1.2.tgz"
  checksum: "md5=077c927f337f8a19b55fa086ed35eab1"
}
