this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

conf-gmp: use pkg-config where available

See ocaml#18129 and ocaml#22954

Signed-off-by: Marcello Seri <marcello.seri@gmail.com>

Signed-off-by: Marcello Seri <marcello.seri@gmail.com>

+86
+36
packages/conf-gmp-powm-sec/conf-gmp-powm-sec.4/opam
··· 1 + opam-version: "2.0" 2 + maintainer: "Etienne Millon <etienne@cryptosense.com>" 3 + homepage: "http://gmplib.org/" 4 + bug-reports: "https://github.com/ocaml/opam-repository/issues" 5 + license: "GPL-1.0-or-later" 6 + build: [ 7 + ["sh" "-c" "pkg-config --print-errors --exists gmp || cc -c $CFLAGS -I/usr/local/include test.c"] { 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 + ["sh" "-exc" 14 + "%{host-arch-x86_64:installed?x86_64:}%%{host-arch-x86_32:installed?i686:}%-w64-mingw32-gcc -c $CFLAGS test.c" 15 + ] {os = "win32"} 16 + ] 17 + depends: [ 18 + "conf-gmp" 19 + ("host-arch-x86_32" {os = "win32" & os-distribution != "cygwinports"} | 20 + "host-arch-x86_64" {os = "win32" & os-distribution != "cygwinports"}) 21 + ] 22 + synopsis: 23 + "Virtual package relying on a GMP lib with constant-time modular exponentiation" 24 + description: """ 25 + This package can only install if the GMP lib is installed on the system and 26 + corresponds to a version that has the mpz_powm_sec function.""" 27 + authors: "Etienne Millon <etienne@cryptosense.com>" 28 + flags: conf 29 + extra-source "test.c" { 30 + src: 31 + "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/conf-gmp-powm-sec/test.c.3" 32 + checksum: [ 33 + "sha256=388b3879530257a7e6e59b68208ee2a52de7be30e40eb4d3a54419708fdad490" 34 + "md5=29317f477fa828e18428660ef31064fb" 35 + ] 36 + }
+50
packages/conf-gmp/conf-gmp.5/opam
··· 1 + opam-version: "2.0" 2 + maintainer: "nbraud" 3 + homepage: "http://gmplib.org/" 4 + bug-reports: "https://github.com/ocaml/opam-repository/issues" 5 + license: "GPL-1.0-or-later" 6 + build: [ 7 + ["sh" "-c" "pkg-config --print-errors --exists gmp || cc -c $CFLAGS -I/usr/local/include test.c"] { 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 + "%{host-arch-x86_64:installed?x86_64:}%%{host-arch-x86_32:installed?i686:}%-w64-mingw32-gcc -c $CFLAGS test.c" 17 + ] {os = "win32" & os-distribution != "cygwinports"} 18 + ] 19 + depends: [ 20 + (("host-arch-x86_32" {os = "win32" & os-distribution != "cygwinports"} & "conf-mingw-w64-gmp-i686" {os = "win32" & os-distribution != "cygwinports"}) | 21 + ("host-arch-x86_64" {os = "win32" & os-distribution != "cygwinports"} & "conf-mingw-w64-gmp-x86_64" {os = "win32" & os-distribution != "cygwinports"})) 22 + ] 23 + depexts: [ 24 + ["libgmp-dev"] {os-family = "debian"} 25 + ["libgmp-dev"] {os-family = "ubuntu"} 26 + ["gmp"] {os = "macos" & os-distribution = "homebrew"} 27 + ["gmp"] {os-distribution = "macports" & os = "macos"} 28 + ["gmp" "gmp-devel"] {os-distribution = "centos"} 29 + ["gmp" "gmp-devel"] {os-distribution = "fedora" | os-family = "fedora"} 30 + ["gmp" "gmp-devel"] {os-distribution = "ol"} 31 + ["gmp"] {os = "openbsd"} 32 + ["gmp"] {os = "freebsd"} 33 + ["gmp-dev"] {os-distribution = "alpine"} 34 + ["gmp-devel"] {os-family = "suse" | os-family = "opensuse"} 35 + ["gmp"] {os = "win32" & os-distribution = "cygwinports"} 36 + ["gmp"] {os-distribution = "nixos"} 37 + ] 38 + synopsis: "Virtual package relying on a GMP lib system installation" 39 + description: 40 + "This package can only install if the GMP lib is installed on the system." 41 + authors: "nbraud" 42 + flags: conf 43 + extra-source "test.c" { 44 + src: 45 + "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/conf-gmp/test.c.4" 46 + checksum: [ 47 + "sha256=54a30735f1f271a2531526747e75716f4490dd7bc1546efd6498ccfe3cc4d6fb" 48 + "md5=2fd2970c293c36222a6d299ec155823f" 49 + ] 50 + }