Skip to content

Commit 349f378

Browse files
authored
Merge pull request #28935 from bobot/release-flint-0.4.1
[new release] flint (0.4.2)
2 parents 46af979 + 883db19 commit 349f378

File tree

2 files changed

+66
-4
lines changed
  • packages
    • conf-flint/conf-flint.3.0
    • flint/flint.0.4.2

2 files changed

+66
-4
lines changed

packages/conf-flint/conf-flint.3.0/opam

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ homepage: "http://flint.org"
44
bug-reports: "https://github.com/flintlib/flint2.git"
55
license: "LGPL-2.1-only"
66
build: [
7-
["sh" "-exc" "printf \"#include <flint/flint.h>\\n#if __FLINT_VERSION < 3\\n#error \\\"Flint (>= 3.0) is not accessible\\\"\\n#endif\" > test.c"]
7+
["sh" "-exc" "cat <<EOF > test.c
8+
#include <flint/flint.h>
9+
#if __FLINT_VERSION < 3
10+
#error \"Flint (>= 3.0) is not accessible\"
11+
#endif
12+
"]
813
["sh" "-exc" "cc -c $CFLAGS -I/usr/local/include test.c"] {os != "macos" & os != "win32"}
914
[
1015
"sh"
@@ -22,12 +27,13 @@ depexts: [
2227
["libflint-dev"] {os-distribution = "ubuntu" }
2328
["flint"] {os = "macos" & os-distribution = "homebrew"}
2429
["flint"] {os-distribution = "macports" & os = "macos"}
25-
["flint" "flint-devel"] {os-distribution = "centos"}
2630
["flint" "flint-devel"] {os-family = "fedora"}
2731
["flint" "flint-devel"] {os-distribution = "ol"}
28-
["flint-dev"] {os-distribution = "alpine"}
32+
["flint-dev@testing"] {os-distribution = "alpine"}
2933
["flint-devel"] {os-family = "opensuse"}
30-
["libflint-devel"] {os = "win32" & os-distribution = "cygwinports"}
34+
["libflint-devel"] {os = "win32" & os-distribution = "cygwinports" }
35+
["libflint-devel"] {os = "cygwin" & os-distribution = "cygwin" }
36+
["mingw-w64-flint"] {os = "win32" & os-distribution = "msys2" }
3137
["flint"] {os-distribution = "nixos"}
3238
["flint"] {os-distribution = "arch"}
3339
]
@@ -38,6 +44,14 @@ available: [
3844
!(os-family = "suse")
3945
]
4046

47+
x-ci-accept-failures: [
48+
"freebsd-14.3" # unavailable system package 'libflint-dev'
49+
"centos-10" # unavailable system package 'libflint-dev'
50+
"centos-9" # unavailable system package 'libflint-dev'
51+
"cygwin" # unavailable system package 'libflint-dev' 3.*
52+
"cygwinports" # unavailable system package 'libflint-dev' 3.*
53+
]
54+
4155
synopsis: "Virtual package relying on a Flint lib system installation"
4256
description:
4357
"This package can only install if the Flint lib version 3 is installed on the system."

packages/flint/flint.0.4.2/opam

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
opam-version: "2.0"
2+
synopsis: "Stub of the C library Flint3"
3+
maintainer: ["François Bobot"]
4+
authors: ["François Bobot"]
5+
license: "LGPL-2.1-only"
6+
homepage: "https://github.com/bobot/ocaml-flint"
7+
bug-reports: "https://github.com/bobot/ocaml-flint/issues"
8+
depends: [
9+
"dune" {>= "3.7"}
10+
"conf-flint" {>= "3.0"}
11+
"zarith" {>= "1.12"}
12+
"ctypes" {>= "0.20.1"}
13+
"conf-mpfr" {>= "3"}
14+
"dune-site" {with-test}
15+
"ocaml" {>= "4.10"}
16+
"conf-pkg-config" {>= "2"}
17+
"dune-configurator"
18+
"odoc" {with-doc}
19+
]
20+
build: [
21+
["dune" "subst"] {dev}
22+
[
23+
"dune"
24+
"build"
25+
"-p"
26+
name
27+
"-j"
28+
jobs
29+
"@install"
30+
"@runtest" {with-test}
31+
"@doc" {with-doc}
32+
]
33+
]
34+
dev-repo: "git+https://github.com/bobot/ocaml-flint.git"
35+
conflicts: [ "ocaml-option-bytecode-only" ]
36+
messages: [ "Problem with the installation of the external
37+
libraries can be fixed using version 0.3 which
38+
compile them locally" { failure } ]
39+
x-maintenance-intent: ["(latest)"]
40+
url {
41+
src:
42+
"https://github.com/bobot/ocaml-flint/releases/download/0.4.2/flint-0.4.2.tbz"
43+
checksum: [
44+
"sha256=86fe0db578d7e21160528c07ffdc80375e649371e1c5fbc9f50aafd99ca1ddba"
45+
"sha512=8f5d75f40eb1e9b8cc7585da01cbe836d552540d4551080cf986c6faf68e5006621a39c37cf1147d4e71b056ff90f80166eea08e5425d30297e2239188730a4e"
46+
]
47+
}
48+
x-commit-hash: "c75621d4342b7792e21413beabfb8562949a2b2f"

0 commit comments

Comments
 (0)