···11+opam-version: "2.0"
22+synopsis: "Combinators for binding to C libraries without writing any C"
33+description: """
44+55+ctypes is a library for binding to C libraries using pure OCaml. The primary
66+aim is to make writing C extensions as straightforward as possible.
77+The core of ctypes is a set of combinators for describing the structure of C
88+types -- numeric types, arrays, pointers, structs, unions and functions. You
99+can use these combinators to describe the types of the functions that you want
1010+to call, then bind directly to those functions -- all without writing or
1111+generating any C!
1212+1313+To install the optional `ctypes-foreign` interface (which uses `libffi` to
1414+provide dynamic access to foreign libraries), you will need to also install
1515+the `ctypes-foreign` package.
1616+1717+ opam install ctypes-foreign
1818+1919+This will make the `ctypes-foreign` ocamlfind subpackage available."""
2020+maintainer: ["Jeremy Yallop <yallop@gmail.com>"]
2121+authors: ["Jeremy Yallop"]
2222+license: "MIT"
2323+tags: ["org:mirage"]
2424+homepage: "https://github.com/yallop/ocaml-ctypes"
2525+doc: "https://yallop.github.io/ocaml-ctypes/"
2626+bug-reports: "https://github.com/yallop/ocaml-ctypes/issues"
2727+depends: [
2828+ "dune" {>= "2.9"}
2929+ "ocaml" {>= "4.03.0"}
3030+ "integers"
3131+ "dune-configurator"
3232+ "bigarray-compat"
3333+ "ounit2" {with-test}
3434+ "conf-fts" {with-test & os != "win32"}
3535+ "conf-pkg-config" {with-test}
3636+ "odoc" {with-doc}
3737+]
3838+build: [
3939+ ["dune" "subst"] {dev}
4040+ [
4141+ "dune"
4242+ "build"
4343+ "-p"
4444+ name
4545+ "-j"
4646+ jobs
4747+ "--promote-install-files=false"
4848+ "@install"
4949+ "@runtest" {with-test}
5050+ "@doc" {with-doc}
5151+ ]
5252+ ["dune" "install" "-p" name "--create-install-files" name]
5353+]
5454+dev-repo: "git+https://github.com/yallop/ocaml-ctypes.git"
5555+url {
5656+ src:
5757+ "https://github.com/yallop/ocaml-ctypes/archive/refs/tags/0.23.0.tar.gz"
5858+ checksum: [
5959+ "sha256=cae47d815b27dd4c824a007f1145856044542fe2588d23a443ef4eefec360bf1"
6060+ "md5=b1af973ec9cf7867a63714e92df82f2a"
6161+ ]
6262+}
6363+conflicts: [
6464+ "host-system-msvc"
6565+]