Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ctypes 0.21.1, ctypes-foreign 0.21.1 #24101

Merged
merged 17 commits into from
Jul 21, 2023
2 changes: 1 addition & 1 deletion packages/binaryen_dsl/binaryen_dsl.0.7/opam
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ depends: [
"ocaml"
"core" {< "v0.15"}
"dune" {>= "2.8"}
"ctypes" {>= "0.14.0"}
"ctypes" {>= "0.14.0" & < "0.21.0"}
"libbinaryen" {< "102"}
]
build: [
Expand Down
49 changes: 49 additions & 0 deletions packages/ctypes-foreign/ctypes-foreign.0.21.1/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
opam-version: "2.0"
synopsis: "Dynamic access to foreign C libraries using Ctypes"
description: """

This installs the `ctypes-foreign` interface which
uses `libffi` to provide dynamic access to foreign libraries."""
maintainer: ["Jeremy Yallop <yallop@gmail.com>"]
authors: ["Jeremy Yallop"]
license: "MIT"
tags: ["org:mirage"]
homepage: "https://github.com/yallop/ocaml-ctypes"
doc: "https://ocamllabs.github.io/ocaml-ctypes/"
bug-reports: "https://github.com/yallop/ocaml-ctypes/issues"
depends: [
"dune" {>= "2.9"}
"ocaml" {>= "4.03.0"}
"integers" {with-test & >= "0.2.2"}
"ctypes" {= version}
"dune-configurator"
"conf-pkg-config"
"lwt" {with-test & >= "2.4.7"}
"ounit2" {with-test}
"conf-ncurses" {with-test}
"stdlib-shims" {with-test}
"conf-fts" {with-test & os != "win32"}
"conf-libffi" {>= "2.0.0"}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/yallop/ocaml-ctypes.git"
url {
src: "https://github.com/yallop/ocaml-ctypes/archive/refs/tags/0.21.1.tar.gz"
checksum: "md5=8b201d932741c5096854e5eb39139b90"
}
58 changes: 58 additions & 0 deletions packages/ctypes/ctypes.0.21.1/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
opam-version: "2.0"
synopsis: "Combinators for binding to C libraries without writing any C"
description: """

ctypes is a library for binding to C libraries using pure OCaml. The primary
aim is to make writing C extensions as straightforward as possible.
The core of ctypes is a set of combinators for describing the structure of C
types -- numeric types, arrays, pointers, structs, unions and functions. You
can use these combinators to describe the types of the functions that you want
to call, then bind directly to those functions -- all without writing or
generating any C!

To install the optional `ctypes-foreign` interface (which uses `libffi` to
provide dynamic access to foreign libraries), you will need to also install
the `ctypes-foreign` package.

opam install ctypes-foreign

This will make the `ctypes-foreign` ocamlfind subpackage available."""
maintainer: ["Jeremy Yallop <yallop@gmail.com>"]
authors: ["Jeremy Yallop"]
license: "MIT"
tags: ["org:mirage"]
homepage: "https://github.com/yallop/ocaml-ctypes"
doc: "https://yallop.github.io/ocaml-ctypes/"
bug-reports: "https://github.com/yallop/ocaml-ctypes/issues"
depends: [
"dune" {>= "2.9"}
"ocaml" {>= "4.03.0"}
"integers"
"dune-configurator"
"bigarray-compat"
"ounit2" {with-test}
"conf-fts" {with-test & os != "win32"}
"conf-pkg-config" {with-test}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/yallop/ocaml-ctypes.git"
url {
src: "https://github.com/yallop/ocaml-ctypes/archive/refs/tags/0.21.1.tar.gz"
checksum: "md5=8b201d932741c5096854e5eb39139b90"
}
2 changes: 1 addition & 1 deletion packages/eigen/eigen.0.1.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build: [
]
depends: [
"ocaml" {>= "4.02"}
"ctypes" {>= "0.14.0"}
"ctypes" {>= "0.14.0" & < "0.21.0"}
"dune" {>= "1.1.0"}
]
available: arch = "x86_32" | arch = "x86_64"
Expand Down
2 changes: 1 addition & 1 deletion packages/eigen/eigen.0.1.1/opam
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build: [
]
depends: [
"ocaml" {>= "4.02"}
"ctypes" {>= "0.14.0"}
"ctypes" {>= "0.14.0" & < "0.21.0"}
"dune" {>= "1.1.0"}
]
available: arch = "x86_32" | arch = "x86_64"
Expand Down
2 changes: 1 addition & 1 deletion packages/eigen/eigen.0.1.2/opam
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build: [
]
depends: [
"ocaml" {>= "4.02"}
"ctypes" {>= "0.14.0"}
"ctypes" {>= "0.14.0" & < "0.21.0"}
"dune" {>= "1.1.0"}
]
available: arch = "x86_32" | arch = "x86_64"
Expand Down
2 changes: 1 addition & 1 deletion packages/eigen/eigen.0.1.3/opam
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build: [
]
depends: [
"ocaml" {>= "4.02"}
"ctypes" {>= "0.14.0"}
"ctypes" {>= "0.14.0" & < "0.21.0"}
"dune" {>= "1.1.0"}
]
available: arch = "x86_32" | arch = "x86_64"
Expand Down
2 changes: 1 addition & 1 deletion packages/hacl-star-raw/hacl-star-raw.0.3.2/opam
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bug-reports: "https://github.com/hacl-star/hacl-star/issues"
depends: [
"ocaml" {>= "4.05.0"}
"ocamlfind" {build}
"ctypes"
"ctypes" {< "0.21.0"}
"ctypes-foreign"
"conf-which" {build}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/hacl-star-raw/hacl-star-raw.0.4.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ bug-reports: "https://github.com/hacl-star/hacl-star/issues"
depends: [
"ocaml" { >= "4.08.0" }
"ocamlfind" {build}
"ctypes" { >= "0.18.0" }
"ctypes" {>= "0.18.0" & < "0.21.0"}
"ctypes-foreign"
"conf-which" {build}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/hacl-star-raw/hacl-star-raw.0.4.1/opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ bug-reports: "https://github.com/hacl-star/hacl-star/issues"
depends: [
"ocaml" { >= "4.08.0" }
"ocamlfind" {build}
"ctypes" { >= "0.18.0" }
"ctypes" {>= "0.18.0" & < "0.21.0"}
"ctypes-foreign"
"conf-which" {build}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/hacl-star-raw/hacl-star-raw.0.4.2/opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ bug-reports: "https://github.com/hacl-star/hacl-star/issues"
depends: [
"ocaml" { >= "4.08.0" }
"ocamlfind" {build}
"ctypes" { >= "0.18.0" }
"ctypes" {>= "0.18.0" & < "0.21.0"}
"ctypes-foreign"
"conf-which" {build}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/hacl-star-raw/hacl-star-raw.0.4.3/opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ bug-reports: "https://github.com/hacl-star/hacl-star/issues"
depends: [
"ocaml" { >= "4.08.0" }
"ocamlfind" {build}
"ctypes" { >= "0.18.0" }
"ctypes" {>= "0.18.0" & < "0.21.0"}
"ctypes-foreign"
"conf-which" {build}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/hacl-star-raw/hacl-star-raw.0.4.4/opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ bug-reports: "https://github.com/hacl-star/hacl-star/issues"
depends: [
"ocaml" { >= "4.08.0" }
"ocamlfind" {build}
"ctypes" { >= "0.18.0" }
"ctypes" {>= "0.18.0" & < "0.21.0"}
"conf-which" {build}
]
conflicts: ["ocaml-option-bytecode-only"]
Expand Down
2 changes: 1 addition & 1 deletion packages/hacl-star-raw/hacl-star-raw.0.4.5/opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ bug-reports: "https://github.com/hacl-star/hacl-star/issues"
depends: [
"ocaml" { >= "4.08.0" }
"ocamlfind" {build}
"ctypes" { >= "0.18.0" }
"ctypes" {>= "0.18.0" & < "0.21.0"}
"conf-which" {build}
]
conflicts: ["ocaml-option-bytecode-only"]
Expand Down
2 changes: 1 addition & 1 deletion packages/hacl-star-raw/hacl-star-raw.0.5.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "1.2"}
"ocamlfind" {build}
"ctypes" {>= "0.18.0"}
"ctypes" {>= "0.18.0" & < "0.21.0"}
"conf-which" {build}
"conf-cmake" {build}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/hacl-star-raw/hacl-star-raw.0.6.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "1.2"}
"ocamlfind" {build}
"ctypes" {>= "0.18.0"}
"ctypes" {>= "0.18.0" & < "0.21.0"}
"conf-which" {build}
"conf-cmake" {build}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/hacl-star-raw/hacl-star-raw.0.6.1/opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "1.2"}
"ocamlfind" {build}
"ctypes" {>= "0.18.0"}
"ctypes" {>= "0.18.0" & < "0.21.0"}
"conf-which" {build}
"conf-cmake" {build}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/hacl-star-raw/hacl-star-raw.0.6.2/opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "1.2"}
"ocamlfind" {build}
"ctypes" {>= "0.18.0"}
"ctypes" {>= "0.18.0" & < "0.21.0"}
"conf-which" {build}
"conf-cmake" {build}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/hacl-star-raw/hacl-star-raw.0.7.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "1.2"}
"ocamlfind" {build}
"ctypes" {>= "0.18.0"}
"ctypes" {>= "0.18.0" & < "0.21.0"}
"conf-which" {build}
"conf-cmake" {build}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/hacl-star-raw/hacl-star-raw.0.7.1/opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "1.2"}
"ocamlfind" {build}
"ctypes" {>= "0.18.0"}
"ctypes" {>= "0.18.0" & < "0.21.0"}
"conf-which" {build}
"conf-cmake" {build}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/libudev/libudev.0.2.1/opam
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ depends: [
"ocamlbuild" {build}
"topkg" {build & >= "0.9.0"}
"conf-libudev"
"ctypes" {>= "0.4.1"}
"ctypes" {>= "0.4.1" & < "0.21.0"}
"ctypes-foreign"
"stdint"
]
Expand Down
2 changes: 1 addition & 1 deletion packages/lz4/lz4.1.1.1/opam
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ depends: [
"base-bigarray"
"ocamlfind" {build}
"ocamlbuild" {build & != "0.9.0"}
"ctypes" {>= "0.4.1"}
"ctypes" {>= "0.4.1" & < "0.21.0"}
"ounit" {with-test}
"conf-liblz4"
]
Expand Down
2 changes: 1 addition & 1 deletion packages/lz4/lz4.1.2.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ depends: [
"ocaml" {>= "4.02"}
"conf-liblz4"
"dune" { >= "2.0" }
"ctypes" {>= "0.4.1"}
"ctypes" {>= "0.4.1" & < "0.21.0"}
"ounit2" {with-test}
"odoc" {with-doc}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/mariadb/mariadb.1.1.5/opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ depends: [
"ocaml" {>= "4.07.0" & < "5.0"}
"ocamlfind" {build}
"ocamlbuild" {build}
"ctypes" {>= "0.7.0"}
"ctypes" {>= "0.7.0" & < "0.21.0"}
"conf-mariadb"
"conf-gcc"
]
Expand Down
2 changes: 1 addition & 1 deletion packages/mariadb/mariadb.1.1.6/opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ depends: [
"ocaml" {>= "4.07.0" & < "5.0"}
"ocamlfind" {build}
"ocamlbuild" {build}
"ctypes" {>= "0.7.0"}
"ctypes" {>= "0.7.0" & < "0.21.0"}
"conf-mariadb"
"conf-gcc"
]
Expand Down
2 changes: 1 addition & 1 deletion packages/memcpy/memcpy.0.2.1/opam
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ install: [[make "install"]]
remove: [["ocamlfind" "remove" "memcpy"]]
depends: [
"ocaml" {>= "4.01.0"}
"ctypes" {>= "0.12.0"}
"ctypes" {>= "0.12.0" & < "0.21.0"}
"ounit" {with-test}
"ocamlfind" {build}
"ocamlbuild" {build}
Expand Down
2 changes: 1 addition & 1 deletion packages/netlink/netlink.0.2.1/opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ remove: [
depends: [
"ocaml" {< "5.0.0"}
"ocamlfind"
"ctypes"
"ctypes" {< "0.21.0"}
"ctypes-foreign"
"ocamlbuild" {build}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/pci/pci.1.0.1/opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ remove: [
]
depends: [
"ocaml" {>= "4.01.0" & < "5.0.0"}
"ctypes" {>= "0.4"}
"ctypes" {>= "0.4" & < "0.21.0"}
"ocamlfind" {build}
# "ounit" {with-test}
"ocamlbuild" {build}
Expand Down
2 changes: 1 addition & 1 deletion packages/tgls/tgls.0.8.4/opam
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ depends: [
"ocamlbuild" {build}
"topkg" {build}
"base-bytes"
"ctypes" {>= "0.4.0"}
"ctypes" {>= "0.4.0" & < "0.21.0"}
"ctypes-foreign"
"tsdl" {with-test}
"result" {with-test}
Expand Down
2 changes: 1 addition & 1 deletion packages/tgls/tgls.0.8.5/opam
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ depends: [
"ocamlbuild" {build}
"topkg" {build}
"base-bytes"
"ctypes" {>= "0.4.0"}
"ctypes" {>= "0.4.0" & < "0.21.0"}
"ctypes-foreign"
"tsdl" {with-test}
"result" {with-test}
Expand Down
2 changes: 1 addition & 1 deletion packages/tgls/tgls.0.8.6/opam
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ depends: [
"ocamlfind" {build}
"ocamlbuild" {build}
"topkg" {build & >= "1.0.3"}
"ctypes" {>= "0.4.0"}
"ctypes" {>= "0.4.0" & < "0.21.0"}
"ctypes-foreign"
"xmlm" {dev}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/tsdl/tsdl.0.9.7/opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ depends: [
"ocamlbuild" {build}
"topkg" {build}
"conf-sdl2"
"ctypes" {>= "0.14.0"}
"ctypes" {>= "0.14.0" & < "0.21.0"}
"ctypes-foreign" ]
build: [[
"ocaml" "pkg/pkg.ml" "build"
Expand Down
2 changes: 1 addition & 1 deletion packages/tsdl/tsdl.0.9.8/opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ depends: [
"ocamlbuild" {build}
"topkg" {build & >= "1.0.1"}
"conf-sdl2"
"ctypes" {>= "0.14.0"}
"ctypes" {>= "0.14.0" & < "0.21.0"}
"ctypes-foreign" ]
build: [[ "ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%" ]]

Expand Down
2 changes: 1 addition & 1 deletion packages/tsdl/tsdl.0.9.9/opam
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ depends: [
"ocamlbuild" {build}
"topkg" {build & >= "1.0.3"}
"conf-sdl2"
"ctypes" {>= "0.14.0"}
"ctypes" {>= "0.14.0" & < "0.21.0"}
"ctypes-foreign"
]
build: ["ocaml" "pkg/pkg.ml" "build" "--dev-pkg" "%{dev}%"]
Expand Down
Loading