opam-version: "2.0"
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: "LGPL-2.1-only"
doc: "http://why3.lri.fr/#documentation"
bug-reports: "https://gforge.inria.fr/tracker/?func=browse&group_id=2990&atid=10293"
dev-repo: "git+https://scm.gforge.inria.fr/anonscm/git/why3/why3.git"
tags: [
  "deductive"
  "program verification"
  "formal specification"
  "automated theorem prover"
  "interactive theorem prover"
]
patches: "gmain-build.patch"

# Jessie3 (frama-c plugin) is *disabled* because it is not ready
build: [
  [
    "./configure"
    "--prefix"
    prefix
    "--disable-frama-c"
    "--disable-ide" {!conf-gtksourceview:installed}
  ]
  [make "-j%{jobs}%" "all" "opt" "byte"]
  [make "doc" "stdlibdoc" "apidoc"] {with-doc}
]
install: [
  [make "install" "install-lib"]
  [make "DOCDIR=%{doc}%/why3" "install-doc"] {with-doc}
]
remove: [
  ["rm" "%{bin}%/why3"]
  ["rm" "-r" "%{lib}%/why3"]
  ["rm" "-r" "%{share}%/why3"]
]

depends: [
  "ocaml" {>= "4.01.0" & < "4.06.0"}
  "ocamlfind"
  "menhir"
  "num"
]
depopts: [
  "lablgtk"
  "conf-gtksourceview"
  "zarith"
  "camlzip"
  "ocamlgraph"
  "coq"
]

conflicts: [
  "lablgtk" {< "2.14.2"}
  "ocamlgraph" {< "1.8.2"}
  "coq" {< "8.4"}
  "coq" {>= "8.6"}
]
synopsis: "Why3 environment for deductive program verification (base)"
description: """
This package is for advanced users only, normal users should use the
full why3 package."""
flags: light-uninstall
extra-files: ["gmain-build.patch" "md5=b56467d7d374b5718fe9038d1d2784ac"]
url {
  src:
    "https://gforge.inria.fr/frs/download.php/file/36133/why3-0.87.2.tar.gz"
  checksum: "md5=9849179d6f02587a8fa3d1b6afa13479"
}
