opam-version: "1.2"
maintainer: "guillaume.melquiond@inria.fr"
authors: [
  "François Bobot"
  "Jean-Christophe Filliâtre"
  "Claude Marché"
  "Guillaume Melquiond"
  "Andrei Paskevich"
]

homepage: "http://why3.lri.fr/"
license: "GNU Lesser General Public License version 2.1"
doc: "http://why3.lri.fr/doc/"
bug-reports: "https://gitlab.inria.fr/why3/why3/issues"
dev-repo: "https://gitlab.inria.fr/why3/why3.git"

tags: [
  "deductive"
  "program verification"
  "formal specification"
  "automated theorem prover"
  "interactive theorem prover"
]
available: [ ocaml-version >= "4.02.3" ]

build: [
  ["sh" "-eux" "./run_autoconf_if_needed.sh"] # when used in pinned mode,
                                              # the configure *cannot* yet be
                                              # generated
  ["./configure"
   "--prefix" prefix
   "--disable-frama-c"
   "--disable-coq-libs"
   "--disable-js-of-ocaml"
   "--disable-ide"]
  [make "-j%{jobs}%" "all" "opt" "byte"]
]

install: [make "install" "install-lib"]

remove: [
  ["rm" "%{bin}%/why3"]
  ["rm" "-r" "%{lib}%/why3"]
  ["rm" "-r" "%{share}%/why3"]
]

flags: [ light-uninstall ]

build-doc: [
  [make "doc" "stdlibdoc" "apidoc"]
  [make "DOCDIR=%{doc}%/why3" "install-doc"]
]

depends: [
  "ocamlfind" {build}
  "menhir" {>= "20151112"}
  "num"
]

depopts: [
  "zarith"
  "camlzip"
  "ocamlgraph"
]

conflicts: [
  "why3-base"
  "ocamlgraph" {< "1.8.2"}
]
