opam-version: "2.0"
maintainer: "Markus Mottl <markus.mottl@gmail.com>"
authors: [ "Olivier Andrieu <oandrieu@gmail.com>"
           "Markus Mottl <markus.mottl@gmail.com>" ]
license: "GPL-3.0-or-later"
homepage: "http://mmottl.github.io/gsl-ocaml"
dev-repo: "git+https://github.com/mmottl/gsl-ocaml.git"
bug-reports: "https://github.com/mmottl/gsl-ocaml/issues"
build: [
  [
    "ocaml"
    "setup.ml"
    "-configure"
    "--prefix"
    prefix
    "--%{camlp4:enable}%-camlp4"
  ]
  ["ocaml" "setup.ml" "-build"]
  [
    "ocaml"
    "setup.ml"
    "-configure"
    "--enable-tests"
    "--%{camlp4:enable}%-camlp4"
  ] {with-test}
  ["ocaml" "setup.ml" "-build"] {with-test}
  ["ocaml" "setup.ml" "-test"] {with-test}
  ["ocaml" "setup.ml" "-doc"] {with-doc}
]
install: ["ocaml" "setup.ml" "-install"]
remove: [
  ["ocamlfind" "remove" "gsl"]
]
x-ci-accept-failures: ["debian-unstable"]
depends: [
  "ocaml" {>= "3.12"}
  "base-bigarray"
  "ocamlfind" {build & >= "1.3.1"}
  "conf-gsl"
  "ocamlbuild" {build}
]
depopts: [
  "camlp4" {build}
]
synopsis: "GSL - Bindings to the GNU Scientific Library"
description: """
gsl-ocaml branched off from Olivier Andrieu's distribution (ocamlgsl)
and includes bug fixes as well as numerous API improvements."""
flags: light-uninstall
url {
  src:
    "https://github.com/mmottl/gsl-ocaml/releases/download/v1.18.5/gsl-ocaml-1.18.5.tar.gz"
  checksum: "md5=d567a4f62786a64b20f96d339aa02601"
}
