···
+
maintainer: "yallop@gmail.com"
+
homepage: "https://github.com/ocamllabs/ocaml-ctypes"
+
doc: "http://ocamllabs.github.io/ocaml-ctypes"
+
dev-repo: "git+http://github.com/ocamllabs/ocaml-ctypes.git"
+
bug-reports: "http://github.com/ocamllabs/ocaml-ctypes/issues"
+
[make "XEN=%{mirage-xen:enable}%" "libffi.config"]
+
{ctypes-foreign:installed}
+
["touch" "libffi.config"] {!ctypes-foreign:installed}
+
[make "XEN=%{mirage-xen:enable}%" "ctypes-base" "ctypes-stubs"]
+
[make "XEN=%{mirage-xen:enable}%" "ctypes-foreign"]
+
{ctypes-foreign:installed}
+
[make "test"] {with-test}
+
[make "install" "XEN=%{mirage-xen:enable}%"]
+
"integers" { >= "0.3.0" }
+
"lwt" {with-test & >= "3.2.0"}
+
"ctypes-foreign" {with-test}
+
"conf-ncurses" {with-test}
+
tags: ["org:ocamllabs" "org:mirage"]
+
synopsis: "Combinators for binding to C libraries without writing any C"
+
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
+
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` optional dependency:
+
opam install ctypes ctypes-foreign
+
This will make the `ctypes.foreign` ocamlfind subpackage available."""
+
authors: "yallop@gmail.com"
+
src: "https://github.com/ocamllabs/ocaml-ctypes/archive/0.20.1.tar.gz"
+
checksum: "md5=91211baac16cb43134b1d6009b1edf92"
+
"mirage-xen" {>= "6.0.0"}