opam-version: "2.0"
maintainer: "francois.bobot@cea.fr"
authors: [
  "Michele Alberti"
  "Thibaud Antignac"
  "Gergö Barany"
  "Patrick Baudin"
  "Lionel Blatter"
  "François Bobot"
  "Richard Bonichon"
  "Quentin Bouillaguet"
  "David Bühler"
  "Zakaria Chihani"
  "Loïc Correnson"
  "Julien Crétin"
  "Pascal Cuoq"
  "Zaynah Dargaye"
  "Jean-Christophe Filliâtre"
  "Philippe Herrmann"
  "Florent Kirchner"
  "Tristan Le Gall"
  "Jean-Christophe Léchenet"
  "Matthieu Lemerre"
  "David Maison"
  "Claude Marché"
  "André Maroneze"
  "Melody Méaulle"
  "Benjamin Monate"
  "Yannick Moy"
  "Anne Pacalet"
  "Valentin Perrelle"
  "Guillaume Petiot"
  "Virgile Prevosto"
  "Armand Puccetti"
  "Muriel Roger"
  "Julien Signoles"
  "Kostyantyn Vorobyov"
  "Boris Yakobowski"
]
homepage: "http://frama-c.com/"
license: "LGPL-2.1-only"
dev-repo: "git+https://github.com/Frama-C/Frama-C-snapshot.git"
doc: ["http://frama-c.com/download/user-manual-Chlorine-20180501.pdf"]
bug-reports: "https://bts.frama-c.com/"
tags: [
  "deductive"
  "program verification"
  "formal specification"
  "automated theorem prover"
  "interactive theorem prover"
  "C"
  "plugins"
  "abstract interpretation"
  "slicing"
  "weakest precondition"
  "ACSL"
  "dataflow analysis"
  "runtime verification"
]

build: [
  ["sh" "-eux" "./run_autoconf_if_needed.sh"]
  [
    "./configure"
    "--prefix"
    prefix
    "--disable-gui"
      {!conf-gtksourceview:installed | !conf-gnomecanvas:installed}
    "--mandir=%{man}%"
  ]
  [make "-j%{jobs}%"]
  [make "-C" "doc" "download"] {with-doc}
]
install: [
  [make "install"]
  [make "-C" "doc" "install"] {with-doc}
]
remove: [
  ["sh" "-eux" "./run_autoconf_if_needed.sh"] # when used in pinned mode,
                                              # the configure *cannot* yet be
                                              # generated
  ["./configure" "--prefix" prefix
                 "--disable-gui" { !conf-gtksourceview:installed |
                                   !conf-gnomecanvas:installed }
]
  [make "uninstall"]
  ["rm" "-rf" doc]
]

depends: [
  "ocaml" {>= "4.02.3" & < "4.08.0"}
  "ocamlgraph" {>= "1.8.8" & < "1.9~"}
  "ocamlfind"
  "zarith"
  "conf-autoconf"
  "lablgtk" {>= "2.18.2"}
  "conf-gtksourceview"
  "conf-gnomecanvas"
  "alt-ergo"
]
depopts: [
  "coq" { build }
  "why3" { build }
  "altgr-ergo" { build }
  "yojson" { build }
]

messages: [
  "Why3 can be used by the WP plug-in for running additional automatic solvers" { !why3:installed }
  "Coq can be used with the WP plug-in for proving interactively proof obligations" { !coq:installed }
  "Alt-Ergo Graphical Interface can be used by the WP plug-in" { !altgr-ergo:installed }
  "Yojson enables kernel option -json-compilation-database" { !yojson:installed }
]

conflicts: [
  "why3-base" { < "0.88" } #for WP plug-in
  "why3-base" { >= "1.0.0" } #for WP plug-in
  "coq"      { < "8.4.6" } #for WP plug-in
  "lablgtk" { < "2.18.2" } #for ocaml >= 4.02.1
  "frama-c-e-acsl" #avoid mixing old releases of E-ACSL, it is already
                   #distributed with this version of Frama-C
  "frama-c-base"   #avoid mixing old releases of Frama-C, now that only the
                   #'frama-c' package exists
]

synopsis: "Platform dedicated to the analysis of source code written in C."
description: """
Frama-C gathers several analysis techniques in a single collaborative
framework, based on analyzers (called "plug-ins") that can build upon the
results computed by other analyzers in the framework.
Thanks to this approach, Frama-C provides sophisticated tools, including:
- an analyzer based on abstract interpretation (Eva plug-in);
- a program proof framework based on weakest precondition calculus (WP plug-in);
- a program slicer (Slicing plug-in);
- a tool for verification of temporal (LTL) properties (Aoraï plug-in);
- a runtime verification tool (E-ACSL plug-in);
- several tools for code base exploration and dependency analysis
  (plug-ins From, Impact, Metrics, Occurrence, Scope, etc.).
These plug-ins communicate between each other via the Frama-C API
and via ACSL (ANSI/ISO C Specification Language) properties."""
extra-files: [
  "run_autoconf_if_needed.sh" "md5=8896537e4468e4228e7b0112f1cfd0ed"
]
url {
  src: "http://frama-c.com/download/frama-c-Chlorine-20180501.tar.gz"
  checksum: "md5=2d61aa200ded2dd360a8310c9a03ac50"
}
