···
2
+
maintainer: "yallop@gmail.com"
3
+
homepage: "https://github.com/ocamllabs/ocaml-ctypes"
4
+
doc: "http://ocamllabs.github.io/ocaml-ctypes"
5
+
dev-repo: "git+http://github.com/ocamllabs/ocaml-ctypes.git"
6
+
bug-reports: "http://github.com/ocamllabs/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
+
tags: ["org:ocamllabs" "org:mirage"]
35
+
synopsis: "Combinators for binding to C libraries without writing any C"
37
+
ctypes is a library for binding to C libraries using pure OCaml. The primary
38
+
aim is to make writing C extensions as straightforward as possible.
40
+
The core of ctypes is a set of combinators for describing the structure of C
41
+
types -- numeric types, arrays, pointers, structs, unions and functions. You
42
+
can use these combinators to describe the types of the functions that you want
43
+
to call, then bind directly to those functions -- all without writing or
46
+
To install the optional `ctypes.foreign` interface (which uses `libffi` to
47
+
provide dynamic access to foreign libraries), you will need to also install
48
+
the `ctypes-foreign` optional dependency:
50
+
opam install ctypes ctypes-foreign
52
+
This will make the `ctypes.foreign` ocamlfind subpackage available."""
53
+
authors: "yallop@gmail.com"
55
+
src: "https://github.com/ocamllabs/ocaml-ctypes/archive/0.20.1.tar.gz"
56
+
checksum: "md5=91211baac16cb43134b1d6009b1edf92"
59
+
"mirage-xen" {>= "6.0.0"}