Skip to content

Commit 9f1b40a

Browse files
authored
Merge pull request #24101 from yallop/ctypes-0.21.0
Add ctypes 0.21.1, ctypes-foreign 0.21.1
2 parents 6fe1f5a + c1a245d commit 9f1b40a

File tree

37 files changed

+142
-35
lines changed
  • packages
    • binaryen_dsl/binaryen_dsl.0.7
    • ctypes-foreign/ctypes-foreign.0.21.1
    • ctypes/ctypes.0.21.1
    • eigen
    • hacl-star-raw
      • hacl-star-raw.0.3.2
      • hacl-star-raw.0.4.0
      • hacl-star-raw.0.4.1
      • hacl-star-raw.0.4.2
      • hacl-star-raw.0.4.3
      • hacl-star-raw.0.4.4
      • hacl-star-raw.0.4.5
      • hacl-star-raw.0.5.0
      • hacl-star-raw.0.6.0
      • hacl-star-raw.0.6.1
      • hacl-star-raw.0.6.2
      • hacl-star-raw.0.7.0
      • hacl-star-raw.0.7.1
    • libudev/libudev.0.2.1
    • lz4
    • mariadb
    • memcpy/memcpy.0.2.1
    • netlink/netlink.0.2.1
    • pci/pci.1.0.1
    • tgls
    • tsdl
    • unix-errno
      • unix-errno.0.6.0
      • unix-errno.0.6.1
    • zstd/zstd.0.3

37 files changed

+142
-35
lines changed

packages/binaryen_dsl/binaryen_dsl.0.7/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ depends: [
1515
"ocaml"
1616
"core" {< "v0.15"}
1717
"dune" {>= "2.8"}
18-
"ctypes" {>= "0.14.0"}
18+
"ctypes" {>= "0.14.0" & < "0.21.0"}
1919
"libbinaryen" {< "102"}
2020
]
2121
build: [
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
opam-version: "2.0"
2+
synopsis: "Dynamic access to foreign C libraries using Ctypes"
3+
description: """
4+
5+
This installs the `ctypes-foreign` interface which
6+
uses `libffi` to provide dynamic access to foreign libraries."""
7+
maintainer: ["Jeremy Yallop <yallop@gmail.com>"]
8+
authors: ["Jeremy Yallop"]
9+
license: "MIT"
10+
tags: ["org:mirage"]
11+
homepage: "https://github.com/yallop/ocaml-ctypes"
12+
doc: "https://ocamllabs.github.io/ocaml-ctypes/"
13+
bug-reports: "https://github.com/yallop/ocaml-ctypes/issues"
14+
depends: [
15+
"dune" {>= "2.9"}
16+
"ocaml" {>= "4.03.0"}
17+
"integers" {with-test & >= "0.2.2"}
18+
"ctypes" {= version}
19+
"dune-configurator"
20+
"conf-pkg-config"
21+
"lwt" {with-test & >= "2.4.7"}
22+
"ounit2" {with-test}
23+
"conf-ncurses" {with-test}
24+
"stdlib-shims" {with-test}
25+
"conf-fts" {with-test & os != "win32"}
26+
"conf-libffi" {>= "2.0.0"}
27+
"odoc" {with-doc}
28+
]
29+
build: [
30+
["dune" "subst"] {dev}
31+
[
32+
"dune"
33+
"build"
34+
"-p"
35+
name
36+
"-j"
37+
jobs
38+
"--promote-install-files=false"
39+
"@install"
40+
"@runtest" {with-test}
41+
"@doc" {with-doc}
42+
]
43+
["dune" "install" "-p" name "--create-install-files" name]
44+
]
45+
dev-repo: "git+https://github.com/yallop/ocaml-ctypes.git"
46+
url {
47+
src: "https://github.com/yallop/ocaml-ctypes/archive/refs/tags/0.21.1.tar.gz"
48+
checksum: "md5=8b201d932741c5096854e5eb39139b90"
49+
}

packages/ctypes/ctypes.0.21.1/opam

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
opam-version: "2.0"
2+
synopsis: "Combinators for binding to C libraries without writing any C"
3+
description: """
4+
5+
ctypes is a library for binding to C libraries using pure OCaml. The primary
6+
aim is to make writing C extensions as straightforward as possible.
7+
The core of ctypes is a set of combinators for describing the structure of C
8+
types -- numeric types, arrays, pointers, structs, unions and functions. You
9+
can use these combinators to describe the types of the functions that you want
10+
to call, then bind directly to those functions -- all without writing or
11+
generating any C!
12+
13+
To install the optional `ctypes-foreign` interface (which uses `libffi` to
14+
provide dynamic access to foreign libraries), you will need to also install
15+
the `ctypes-foreign` package.
16+
17+
opam install ctypes-foreign
18+
19+
This will make the `ctypes-foreign` ocamlfind subpackage available."""
20+
maintainer: ["Jeremy Yallop <yallop@gmail.com>"]
21+
authors: ["Jeremy Yallop"]
22+
license: "MIT"
23+
tags: ["org:mirage"]
24+
homepage: "https://github.com/yallop/ocaml-ctypes"
25+
doc: "https://yallop.github.io/ocaml-ctypes/"
26+
bug-reports: "https://github.com/yallop/ocaml-ctypes/issues"
27+
depends: [
28+
"dune" {>= "2.9"}
29+
"ocaml" {>= "4.03.0"}
30+
"integers"
31+
"dune-configurator"
32+
"bigarray-compat"
33+
"ounit2" {with-test}
34+
"conf-fts" {with-test & os != "win32"}
35+
"conf-pkg-config" {with-test}
36+
"odoc" {with-doc}
37+
]
38+
build: [
39+
["dune" "subst"] {dev}
40+
[
41+
"dune"
42+
"build"
43+
"-p"
44+
name
45+
"-j"
46+
jobs
47+
"--promote-install-files=false"
48+
"@install"
49+
"@runtest" {with-test}
50+
"@doc" {with-doc}
51+
]
52+
["dune" "install" "-p" name "--create-install-files" name]
53+
]
54+
dev-repo: "git+https://github.com/yallop/ocaml-ctypes.git"
55+
url {
56+
src: "https://github.com/yallop/ocaml-ctypes/archive/refs/tags/0.21.1.tar.gz"
57+
checksum: "md5=8b201d932741c5096854e5eb39139b90"
58+
}

packages/eigen/eigen.0.1.0/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build: [
1212
]
1313
depends: [
1414
"ocaml" {>= "4.02"}
15-
"ctypes" {>= "0.14.0"}
15+
"ctypes" {>= "0.14.0" & < "0.21.0"}
1616
"dune" {>= "1.1.0"}
1717
]
1818
available: arch = "x86_32" | arch = "x86_64"

packages/eigen/eigen.0.1.1/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build: [
1212
]
1313
depends: [
1414
"ocaml" {>= "4.02"}
15-
"ctypes" {>= "0.14.0"}
15+
"ctypes" {>= "0.14.0" & < "0.21.0"}
1616
"dune" {>= "1.1.0"}
1717
]
1818
available: arch = "x86_32" | arch = "x86_64"

packages/eigen/eigen.0.1.2/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build: [
1212
]
1313
depends: [
1414
"ocaml" {>= "4.02"}
15-
"ctypes" {>= "0.14.0"}
15+
"ctypes" {>= "0.14.0" & < "0.21.0"}
1616
"dune" {>= "1.1.0"}
1717
]
1818
available: arch = "x86_32" | arch = "x86_64"

packages/eigen/eigen.0.1.3/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build: [
1212
]
1313
depends: [
1414
"ocaml" {>= "4.02"}
15-
"ctypes" {>= "0.14.0"}
15+
"ctypes" {>= "0.14.0" & < "0.21.0"}
1616
"dune" {>= "1.1.0"}
1717
]
1818
available: arch = "x86_32" | arch = "x86_64"

packages/hacl-star-raw/hacl-star-raw.0.3.2/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ bug-reports: "https://github.com/hacl-star/hacl-star/issues"
1313
depends: [
1414
"ocaml" {>= "4.05.0"}
1515
"ocamlfind" {build}
16-
"ctypes"
16+
"ctypes" {< "0.21.0"}
1717
"ctypes-foreign"
1818
"conf-which" {build}
1919
]

packages/hacl-star-raw/hacl-star-raw.0.4.0/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bug-reports: "https://github.com/hacl-star/hacl-star/issues"
1414
depends: [
1515
"ocaml" { >= "4.08.0" }
1616
"ocamlfind" {build}
17-
"ctypes" { >= "0.18.0" }
17+
"ctypes" {>= "0.18.0" & < "0.21.0"}
1818
"ctypes-foreign"
1919
"conf-which" {build}
2020
]

packages/hacl-star-raw/hacl-star-raw.0.4.1/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bug-reports: "https://github.com/hacl-star/hacl-star/issues"
1414
depends: [
1515
"ocaml" { >= "4.08.0" }
1616
"ocamlfind" {build}
17-
"ctypes" { >= "0.18.0" }
17+
"ctypes" {>= "0.18.0" & < "0.21.0"}
1818
"ctypes-foreign"
1919
"conf-which" {build}
2020
]

0 commit comments

Comments
 (0)