···
2
+
maintainer: "yallop@gmail.com"
3
+
homepage: "https://github.com/yallop/ocaml-ctypes"
4
+
doc: "http://yallop.github.io/ocaml-ctypes"
5
+
dev-repo: "git+http://github.com/yallop/ocaml-ctypes.git"
6
+
bug-reports: "http://github.com/yallop/ocaml-ctypes/issues"
9
+
[make "XEN=%{mirage-xen:enable}%" "libffi.config"]
10
+
{ctypes-foreign:installed}
11
+
["touch" "libffi.config"] {!ctypes-foreign:installed}
12
+
[make "XEN=%{mirage-xen:enable}%" "ctypes-base" "ctypes-stubs"]
13
+
[make "XEN=%{mirage-xen:enable}%" "ctypes-foreign"]
14
+
{ctypes-foreign:installed}
15
+
[make "test"] {with-test}
18
+
[make "install" "XEN=%{mirage-xen:enable}%"]
21
+
"ocaml" {>= "4.03.0"}
22
+
"integers" { >= "0.3.0" }
24
+
"lwt" {with-test & >= "3.2.0"}
25
+
"ctypes-foreign" {with-test}
27
+
"conf-ncurses" {with-test}
34
+
synopsis: "Combinators for binding to C libraries without writing any C"
36
+
ctypes is a library for binding to C libraries using pure OCaml. The primary
37
+
aim is to make writing C extensions as straightforward as possible.
39
+
The core of ctypes is a set of combinators for describing the structure of C
40
+
types -- numeric types, arrays, pointers, structs, unions and functions. You
41
+
can use these combinators to describe the types of the functions that you want
42
+
to call, then bind directly to those functions -- all without writing or
45
+
To install the optional `ctypes.foreign` interface (which uses `libffi` to
46
+
provide dynamic access to foreign libraries), you will need to also install
47
+
the `ctypes-foreign` optional dependency:
49
+
opam install ctypes ctypes-foreign
51
+
This will make the `ctypes.foreign` ocamlfind subpackage available."""
52
+
authors: "yallop@gmail.com"
54
+
src: "https://github.com/ocamllabs/ocaml-ctypes/archive/0.20.2.tar.gz"
55
+
checksum: "md5=cc68949d9cadc57f3682a97348137964"
58
+
"mirage-xen" {>= "6.0.0"}