Skip to content

Commit 234676e

Browse files
Merge pull request #26912 from clebreto/fix-mlgmpidl-homebrew
Use $HOMEBREW_DIR or fallback for macos.
2 parents 7642f16 + 8f78ac6 commit 234676e

File tree

1 file changed

+41
-0
lines changed
  • packages/mlgmpidl/mlgmpidl.1.2.15-1

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
opam-version: "2.0"
2+
authors: ["Bertrand Jeannet" "Nicolas Berthier"]
3+
maintainer: "Nicolas Berthier <[email protected]>"
4+
dev-repo: "git+https://github.com/nberth/mlgmpidl.git"
5+
bug-reports: "https://github.com/nberth/mlgmpidl/issues"
6+
homepage: "https://www.inrialpes.fr/pop-art/people/bjeannet/mlxxxidl-forge/mlgmpidl/"
7+
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
8+
build: [
9+
[ "sed" "-ib" "-e" "s/checkprefix \"\\$cc \\$cflags\" mpfr\\.h/checkprefix \"\\$cc \\$cflags -I\\$gmp_prefix\\/include\" mpfr.h/g" "configure"] {os = "macos" & os-distribution = "homebrew"}
10+
["sh" "-exec" "./configure --absolute-dylibs --mpfr-prefix ${HOMEBREW_PREFIX:-/opt/homebrew}/opt/mpfr --gmp-prefix ${HOMEBREW_PREFIX:-/opt/homebrew}/opt/gmp"] { os = "macos" & os-distribution = "homebrew" }
11+
["sh" "./configure" "--absolute-dylibs" {os = "macos"} ] { !(os = "macos" & os-distribution = "homebrew") }
12+
[make]
13+
]
14+
install: [
15+
[make "install"]
16+
]
17+
depends: [
18+
"ocaml" {>= "3.12.1"}
19+
"ocamlfind" {build & >= "1.5.6"}
20+
"camlidl" {!= "1.10"}
21+
"conf-gmp"
22+
"conf-mpfr"
23+
"conf-perl" {build}
24+
"bigarray-compat"
25+
]
26+
conflicts: [
27+
"mlgmp"
28+
"apron" {= "20140725"}
29+
"apron" {= "20150518"}
30+
]
31+
synopsis: "OCaml interface to the GMP library"
32+
url {
33+
src: "https://github.com/nberth/mlgmpidl/archive/1.2.15.tar.gz"
34+
checksum: [
35+
"sha512=bffa295d7eac0a35ba95b8fefa46f5db02efa1f58e4d6b4da73901de74535523ad263354f2672318361ed0f76029df1ef85f745ce245dc73dddffb9d328dc7a8"
36+
"md5=fba69df33295a427e093cad67114a5d6"
37+
]
38+
}
39+
x-ci-accept-failures: [
40+
"oraclelinux-8" "oraclelinux-9" "alpine-3.19"
41+
]

0 commit comments

Comments
 (0)