Skip to content

Commit

Permalink
Merge pull request #18333 from tbrk/sundialsml-3.1.1p1
Browse files Browse the repository at this point in the history
Sundials/ML: fix build under OCaml 4.12.0
  • Loading branch information
mseri authored Mar 17, 2021
2 parents 475e1f9 + 57de69c commit 4f50776
Show file tree
Hide file tree
Showing 11 changed files with 128 additions and 93 deletions.
1 change: 1 addition & 0 deletions packages/conf-sundials/conf-sundials.1/files/test.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <sundials/sundials_config.h>
36 changes: 36 additions & 0 deletions packages/conf-sundials/conf-sundials.1/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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
12 changes: 3 additions & 9 deletions packages/sundialsml/sundialsml.2.5.0p0/opam
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
opam-version: "2.0"
name: "sundialsml"
maintainer: "tim@tbrk.org"
authors: [
"Timothy Bourke <tim@tbrk.org>"
"Jun Inoue <Jun.Lambda@gmail.com>"
"Marc Pouzet <Marc.Pouzet@ens.fr>"
]
homepage: "http://inria-parkas.github.io/sundialsml/"
bug-reports: "https://github.com/inria-parkas/sundialsml/issues"
doc: "http://inria-parkas.github.io/sundialsml/"
tags: [
"numerical"
Expand All @@ -20,27 +20,22 @@ build: [
[make "tests.opt.log"] {with-test}
[make "doc"] {with-doc}
]
remove: [["ocamlfind" "remove" "sundialsml"]]
depends: [
"ocaml" {>= "3.12.1"}
"base-bigarray"
"ocamlfind"
"conf-sundials" {build}
]
depopts: [
"mpi"
]
depexts: [
["libsundials-serial-dev"] {os-family = "debian"}
["sundials"] {os = "macos" & os-distribution = "homebrew"}
["sundials"] {os = "macos" & os-distribution = "macports"}
]
dev-repo: "git://github.com/inria-parkas/sundialsml"
install: [
[make "install-findlib"]
[make "install-doc"] {with-doc}
]
synopsis:
"Sundials/ML is an interface to the Sundials suite of numerical solvers."
"Sundials/ML is an interface to the Sundials suite of numerical solvers"
description: """
Sundials is a collection of five numerical solvers: CVODE, CVODES, IDA,
IDAS, and KINSOL. This interface provides access to all features of the
Expand Down Expand Up @@ -70,7 +65,6 @@ The OCaml documentation contains extensive cross-links to the original
documentation. OCaml versions of the standard examples usually have an
overhead of about 50% compared to the original C versions, and almost never
more than 100%."""
flags: light-uninstall
url {
src: "https://github.com/inria-parkas/sundialsml/archive/v2.5.0p0.zip"
checksum: "md5=ee0c22de275b1f26cab4ecfb08315c02"
Expand Down
12 changes: 3 additions & 9 deletions packages/sundialsml/sundialsml.2.5.0p1/opam
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
opam-version: "2.0"
name: "sundialsml"
maintainer: "tim@tbrk.org"
authors: [
"Timothy Bourke <tim@tbrk.org>"
"Jun Inoue <Jun.Lambda@gmail.com>"
"Marc Pouzet <Marc.Pouzet@ens.fr>"
]
homepage: "http://inria-parkas.github.io/sundialsml/"
bug-reports: "https://github.com/inria-parkas/sundialsml/issues"
doc: "http://inria-parkas.github.io/sundialsml/"
tags: [
"numerical"
Expand All @@ -20,27 +20,22 @@ build: [
[make "tests.opt.log"] {with-test}
[make "doc"] {with-doc}
]
remove: [["ocamlfind" "remove" "sundialsml"]]
depends: [
"ocaml" {>= "3.12.1"}
"base-bigarray"
"ocamlfind"
"conf-sundials" {build}
]
depopts: [
"mpi"
]
depexts: [
["libsundials-serial-dev"] {os-family = "debian"}
["sundials"] {os = "macos" & os-distribution = "homebrew"}
["sundials"] {os = "macos" & os-distribution = "macports"}
]
dev-repo: "git://github.com/inria-parkas/sundialsml"
install: [
[make "install-findlib"]
[make "install-doc"] {with-doc}
]
synopsis:
"Sundials/ML is an interface to the Sundials suite of numerical solvers."
"Sundials/ML is an interface to the Sundials suite of numerical solvers"
description: """
Sundials is a collection of five numerical solvers: CVODE, CVODES, IDA,
IDAS, and KINSOL. This interface provides access to all features of the
Expand Down Expand Up @@ -70,7 +65,6 @@ The OCaml documentation contains extensive cross-links to the original
documentation. OCaml versions of the standard examples usually have an
overhead of about 50% compared to the original C versions, and almost never
more than 100%."""
flags: light-uninstall
url {
src: "https://github.com/inria-parkas/sundialsml/archive/v2.5.0p1.zip"
checksum: "md5=04454bd6b5278bcc65e8fe410dd33f1e"
Expand Down
12 changes: 3 additions & 9 deletions packages/sundialsml/sundialsml.2.5.0p2/opam
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
opam-version: "2.0"
name: "sundialsml"
maintainer: "tim@tbrk.org"
authors: [
"Timothy Bourke <tim@tbrk.org>"
"Jun Inoue <Jun.Lambda@gmail.com>"
"Marc Pouzet <Marc.Pouzet@ens.fr>"
]
homepage: "http://inria-parkas.github.io/sundialsml/"
bug-reports: "https://github.com/inria-parkas/sundialsml/issues"
doc: "http://inria-parkas.github.io/sundialsml/"
tags: [
"numerical"
Expand All @@ -20,27 +20,22 @@ build: [
[make "tests.opt.log"] {with-test}
[make "doc"] {with-doc}
]
remove: [["ocamlfind" "remove" "sundialsml"]]
depends: [
"ocaml" {>= "3.12.1"}
"base-bigarray"
"ocamlfind"
"conf-sundials" {build}
]
depopts: [
"mpi"
]
depexts: [
["libsundials-serial-dev"] {os-family = "debian"}
["homebrew/science/sundials"] {os = "macos" & os-distribution = "homebrew"}
["sundials"] {os = "macos" & os-distribution = "macports"}
]
dev-repo: "git://github.com/inria-parkas/sundialsml"
install: [
[make "install-findlib"]
[make "install-doc"] {with-doc}
]
synopsis:
"Sundials/ML is an interface to the Sundials suite of numerical solvers."
"Sundials/ML is an interface to the Sundials suite of numerical solvers"
description: """
Sundials is a collection of five numerical solvers: CVODE, CVODES, IDA,
IDAS, and KINSOL. This interface provides access to all features of the
Expand Down Expand Up @@ -70,7 +65,6 @@ The OCaml documentation contains extensive cross-links to the original
documentation. OCaml versions of the standard examples usually have an
overhead of about 50% compared to the original C versions, and almost never
more than 100%."""
flags: light-uninstall
url {
src: "https://github.com/inria-parkas/sundialsml/archive/v2.5.0p2.zip"
checksum: "md5=479095cc1cd4d9988cfe2e4848496b98"
Expand Down
14 changes: 2 additions & 12 deletions packages/sundialsml/sundialsml.2.6.2p0/opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
opam-version: "2.0"
name: "sundialsml"
maintainer: "tim@tbrk.org"
authors: [
"Timothy Bourke <tim@tbrk.org>"
Expand Down Expand Up @@ -30,26 +29,18 @@ install: [
[make "install-findlib"]
[make "install-doc"] {with-doc}
]
remove: [["ocamlfind" "remove" "sundialsml"]]
depends: [
"ocaml" {>= "3.12.1"}
"base-bigarray"
"ocamlfind"
"conf-sundials" {build}
]
depopts: [
"mpi"
]
depexts: [
["libsundials-serial-dev"] {os-family = "debian"}
["lapack-devel" "sundials-devel"] {os-distribution = "fedora"}
["epel-release" "lapack-devel" "sundials-devel"]
{os-distribution = "centos"}
["homebrew/science/sundials"] {os = "macos" & os-distribution = "homebrew"}
["sundials"] {os = "macos" & os-distribution = "macports"}
]
dev-repo: "git://github.com/inria-parkas/sundialsml"
synopsis:
"Sundials/ML is an interface to the Sundials suite of numerical solvers."
"Sundials/ML is an interface to the Sundials suite of numerical solvers"
description: """
Sundials is a collection of six numerical solvers: CVODE, CVODES, IDA, IDAS,
ARKODE, and KINSOL. This interface provides access to all features of the
Expand Down Expand Up @@ -79,7 +70,6 @@ The OCaml documentation contains extensive cross-links to the original
documentation. OCaml versions of the standard examples usually have an
overhead of about 30% compared to the original C versions, and almost never
more than 50%."""
flags: light-uninstall
url {
src: "https://github.com/inria-parkas/sundialsml/archive/v2.6.2p0.zip"
checksum: "md5=91985c269fb326d758bef9db044a433a"
Expand Down
14 changes: 2 additions & 12 deletions packages/sundialsml/sundialsml.2.6.2p1/opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
opam-version: "2.0"
name: "sundialsml"
maintainer: "tim@tbrk.org"
authors: [
"Timothy Bourke <tim@tbrk.org>"
Expand Down Expand Up @@ -30,26 +29,18 @@ install: [
[make "install-findlib"]
[make "install-doc"] {with-doc}
]
remove: [["ocamlfind" "remove" "sundialsml"]]
depends: [
"ocaml" {>= "3.12.1"}
"base-bigarray"
"ocamlfind"
"conf-sundials" {build}
]
depopts: [
"mpi"
]
depexts: [
["libsundials-serial-dev"] {os-family = "debian"}
["lapack-devel" "sundials-devel"] {os-distribution = "fedora"}
["epel-release" "lapack-devel" "sundials-devel"]
{os-distribution = "centos"}
["homebrew/science/sundials"] {os = "macos" & os-distribution = "homebrew"}
["sundials"] {os = "macos" & os-distribution = "macports"}
]
dev-repo: "git://github.com/inria-parkas/sundialsml"
synopsis:
"Sundials/ML is an interface to the Sundials suite of numerical solvers."
"Sundials/ML is an interface to the Sundials suite of numerical solvers"
description: """
Sundials is a collection of six numerical solvers: CVODE, CVODES, IDA, IDAS,
ARKODE, and KINSOL. This interface provides access to all features of the
Expand Down Expand Up @@ -79,7 +70,6 @@ The OCaml documentation contains extensive cross-links to the original
documentation. OCaml versions of the standard examples usually have an
overhead of about 30% compared to the original C versions, and almost never
more than 50%."""
flags: light-uninstall
url {
src: "https://github.com/inria-parkas/sundialsml/archive/v2.6.2p1.zip"
checksum: "md5=71fd10d67a87969d9fda2cbc188124f4"
Expand Down
14 changes: 2 additions & 12 deletions packages/sundialsml/sundialsml.2.7.0p0/opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
opam-version: "2.0"
name: "sundialsml"
maintainer: "tim@tbrk.org"
authors: [
"Timothy Bourke <tim@tbrk.org>"
Expand Down Expand Up @@ -30,26 +29,18 @@ install: [
[make "install-findlib"]
[make "install-doc"] {with-doc}
]
remove: [["ocamlfind" "remove" "sundialsml"]]
depends: [
"ocaml" {>= "3.12.1"}
"base-bigarray"
"ocamlfind"
"conf-sundials" {build}
]
depopts: [
"mpi"
]
depexts: [
["libsundials-serial-dev"] {os-family = "debian"}
["lapack-devel" "sundials-devel"] {os-distribution = "fedora"}
["epel-release" "lapack-devel" "sundials-devel"]
{os-distribution = "centos"}
["homebrew/science/sundials"] {os = "macos" & os-distribution = "homebrew"}
["sundials"] {os = "macos" & os-distribution = "macports"}
]
dev-repo: "git://github.com/inria-parkas/sundialsml"
synopsis:
"Sundials/ML is an interface to the Sundials suite of numerical solvers."
"Sundials/ML is an interface to the Sundials suite of numerical solvers"
description: """
Sundials is a collection of six numerical solvers: CVODE, CVODES, IDA, IDAS,
ARKODE, and KINSOL. This interface provides access to all features of the
Expand Down Expand Up @@ -79,7 +70,6 @@ The OCaml documentation contains extensive cross-links to the original
documentation. OCaml versions of the standard examples usually have an
overhead of about 30% compared to the original C versions, and almost never
more than 50%."""
flags: light-uninstall
url {
src: "https://github.com/inria-parkas/sundialsml/archive/v2.7.0p0.zip"
checksum: "md5=bf22a8235c5ba25e4c3e5428ca876dbb"
Expand Down
15 changes: 1 addition & 14 deletions packages/sundialsml/sundialsml.3.1.1p0-1/opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
opam-version: "2.0"
name: "sundialsml"
maintainer: "tim@tbrk.org"
authors: [
"Timothy Bourke <tim@tbrk.org>"
Expand Down Expand Up @@ -34,23 +33,11 @@ depends: [
"ocaml" {>= "4.02.3"}
"base-bigarray"
"ocamlfind" {build}
"conf-sundials" {build}
]
depopts: [
"mpi"
]
depexts: [
["libsundials-dev"] {os-family = "debian"}
["lapack-devel" "sundials-devel"] {os-distribution = "fedora"}
[
"epel-release"
"lapack-devel"
"suitesparse-devel"
"SuperLUMT-devel"
"sundials-devel"
] {os-distribution = "centos"}
["sundials"] {os = "macos" & os-distribution = "homebrew"}
["sundials"] {os = "macos" & os-distribution = "macports"}
]
synopsis: "Interface to the Sundials suite of numerical solvers"
description: """
Sundials is a collection of six numerical solvers: CVODE, CVODES, IDA, IDAS,
Expand Down
17 changes: 1 addition & 16 deletions packages/sundialsml/sundialsml.3.1.1p0/opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
opam-version: "2.0"
name: "sundialsml"
maintainer: "tim@tbrk.org"
authors: [
"Timothy Bourke <tim@tbrk.org>"
Expand Down Expand Up @@ -30,28 +29,15 @@ install: [
[make "install-findlib"]
[make "install-doc"] {with-doc}
]
remove: [["ocamlfind" "remove" "sundialsml"]]
depends: [
"ocaml" {>= "4.02.3"}
"base-bigarray"
"ocamlfind" {build}
"conf-sundials" {build}
]
depopts: [
"mpi"
]
depexts: [
["libsundials-serial-dev"] {os-family = "debian"}
["lapack-devel" "sundials-devel"] {os-distribution = "fedora"}
[
"epel-release"
"lapack-devel"
"suitesparse-devel"
"SuperLUMT-devel"
"sundials-devel"
] {os-distribution = "centos"}
["sundials"] {os = "macos" & os-distribution = "homebrew"}
["sundials"] {os = "macos" & os-distribution = "macports"}
]
synopsis: "Interface to the Sundials suite of numerical solvers"
description: """
Sundials is a collection of six numerical solvers: CVODE, CVODES, IDA, IDAS,
Expand Down Expand Up @@ -82,7 +68,6 @@ The detailed OCaml documentation contains cross-links to the original
documentation. OCaml versions of the standard examples usually have an
overhead of about 30% compared to the original C versions, and only rarely
more than 50%."""
flags: light-uninstall
url {
src: "https://github.com/inria-parkas/sundialsml/archive/v3.1.1p0.zip"
checksum: "md5=0c35080ac75baf6ce1cd9e5056f5e639"
Expand Down
Loading

0 comments on commit 4f50776

Please sign in to comment.