opam-version: "2.0"
maintainer: "https://github.com/ocaml/opam-repository/issues"
homepage: "https://computing.llnl.gov/projects/sundials"
bug-reports: "https://github.com/ocaml/opam-repository/issues"
authors: "Sundials dev team"
license: "BSD-3-Clause"
build: ["cc" "-E" "test.c"]
depexts: [
  ["libsundials-dev"] {(os-family = "debian" | os-family = "ubuntu") & os-distribution != "debian" & os-distribution != "ubuntu"}
  ["libsundials-dev"] {os-distribution = "debian" & os-version >= "10"}
  ["libsundials-dev"] {os-distribution = "ubuntu" & os-version >= "18.04"}
  ["libsundials-serial-dev"] {os-distribution = "debian" & os-version < "10"}
  ["libsundials-serial-dev"] {os-distribution = "ubuntu" & os-version < "18.04"}
  ["sundials-devel"] {os-distribution = "fedora"}
  ["epel-release" "sundials-devel"] {os-distribution = "centos"}
  ["sundials-devel"] {os-distribution = "rhel"}
  ["sundials-devel"] {os-distribution = "ol"}
  ["sundials-devel"] {os-family = "suse"}
  ["sundials"] {os-family = "arch"}
  ["sci-libs/sundials"] {os-family = "gentoo"}
  ["sundials"] {os = "macos" & os-distribution = "homebrew"}
  ["sundials"] {os = "macos" & os-distribution = "macports"}
  ["sundials"] {os = "freebsd"}
  ["sundials"] {os = "openbsd"}
  ["sundials"] {os = "netbsd"}
]
x-ci-accept-failures: [
  "alpine-3.12" # package not available by default
]
extra-files: [
  ["test.c" "md5=00a7c58d130f4aabfec5fe37aff9907e"]
]
synopsis: "Virtual package relying on sundials"
description:
  "This package can only install if the sundials library is installed on the system."
flags: conf
