this repo has no description
1opam-version: "2.0"
2maintainer: "nbraud"
3homepage: "http://gmplib.org/"
4bug-reports: "https://github.com/ocaml/opam-repository/issues"
5license: "GPL-1.0-or-later"
6build: [
7 ["sh" "-exc" "cc -c $CFLAGS -I/usr/local/include test.c"] {os != "macos" & os != "win32"}
8 [
9 "sh"
10 "-exc"
11 "$(ocamlc -config-var c_compiler) -c $CFLAGS -I/usr/local/include test.c"
12 ] {os = "win32" & os-distribution = "cygwinports"}
13 [
14 "sh"
15 "-exc"
16 "cc -c $CFLAGS -I/opt/homebrew/include -I/opt/local/include -I/usr/local/include test.c"
17 ] {os = "macos"}
18 [
19 "sh"
20 "-exc"
21 "%{host-arch-x86_64:installed?x86_64:}%%{host-arch-x86_32:installed?i686:}%-w64-mingw32-gcc -c $CFLAGS test.c"
22 ] {os = "win32" & os-distribution != "cygwinports"}
23]
24depends: [
25 (("host-arch-x86_32" {os = "win32" & os-distribution != "cygwinports"} & "conf-mingw-w64-gmp-i686" {os = "win32" & os-distribution != "cygwinports"}) |
26 ("host-arch-x86_64" {os = "win32" & os-distribution != "cygwinports"} & "conf-mingw-w64-gmp-x86_64" {os = "win32" & os-distribution != "cygwinports"}))
27]
28depexts: [
29 ["libgmp-dev"] {os-family = "debian"}
30 ["libgmp-dev"] {os-family = "ubuntu"}
31 ["gmp"] {os = "macos" & os-distribution = "homebrew"}
32 ["gmp"] {os-distribution = "macports" & os = "macos"}
33 ["gmp" "gmp-devel"] {os-distribution = "centos"}
34 ["gmp" "gmp-devel"] {os-distribution = "fedora" | os-family = "fedora"}
35 ["gmp" "gmp-devel"] {os-distribution = "ol"}
36 ["gmp"] {os = "openbsd"}
37 ["gmp"] {os = "freebsd"}
38 ["gmp-dev"] {os-distribution = "alpine"}
39 ["gmp-devel"] {os-family = "suse" | os-family = "opensuse"}
40 ["gmp"] {os = "win32" & os-distribution = "cygwinports"}
41 ["gmp"] {os-distribution = "nixos"}
42]
43synopsis: "Virtual package relying on a GMP lib system installation"
44description:
45 "This package can only install if the GMP lib is installed on the system."
46authors: "nbraud"
47flags: conf
48extra-source "test.c" {
49 src:
50 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/conf-gmp/test.c.4"
51 checksum: [
52 "sha256=54a30735f1f271a2531526747e75716f4490dd7bc1546efd6498ccfe3cc4d6fb"
53 "md5=2fd2970c293c36222a6d299ec155823f"
54 ]
55}