opam-version: "2.0"
maintainer: "coqdev@inria.fr"
authors: "The Coq development team, INRIA, CNRS, and contributors."
homepage: "https://coq.inria.fr/"
bug-reports: "https://github.com/coq/coq/issues"
dev-repo: "git+https://github.com/coq/coq.git"
license: "LGPL-2.1-only"
synopsis: "IDE of the Coq formal proof management system"
description: """
CoqIDE is a graphical user interface for interactive development
of mathematical definitions, executable algorithms, and proofs of theorems
using the Coq proof assistant.
"""

depends: [
  "coq" {= version}
  "ocamlfind" {build}
  "conf-findutils" {build}
  "lablgtk3-sourceview3"
  "conf-adwaita-icon-theme"
]
build: [
  [
    "./configure"
    "-configdir" "%{lib}%/coq/config"
    "-prefix" prefix
    "-mandir" man
    "-docdir" doc
    "-libdir" "%{lib}%/coq"
    "-datadir" "%{share}%/coq"
    "-native-compiler" "yes" {coq-native:installed} "no" {!coq-native:installed}
  ]
  [make "-j%{jobs}%" "coqide-files"]
  [make "-j%{jobs}%" "coqide-opt"]
]
install: [
  make
  "install-ide-bin"
  "install-ide-files"
  "install-ide-info"
  "install-ide-devfiles"
]

extra-files: [
  ["coqide.install" "sha512=3eba9f94c7cc2a4b9b4fc8be549d7e5b3125315360cc85fb1001ba25d2eb5fb174c358ba3295036dda44197ec068e18c0b2f3b341aaa77b73fdb75d1e7d5c27f"]
]

url {
  src: "https://github.com/coq/coq/archive/V8.13.2.tar.gz"
  checksum: "sha256=1e7793d8483f1e939f62df6749f843df967a15d843a4a5acb024904b76e25a14"
}
