-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
70 lines (66 loc) · 2.24 KB
/
opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
opam-version: "2.0"
maintainer: "yallop@gmail.com"
homepage: "https://github.com/yallop/ocaml-ctypes"
doc: "http://yallop.github.io/ocaml-ctypes"
dev-repo: "git+http://github.com/yallop/ocaml-ctypes.git"
bug-reports: "http://github.com/yallop/ocaml-ctypes/issues"
license: "MIT"
build: [
[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 & ocaml:version < "4.06.0"}
]
install: [
[make "install" "XEN=%{mirage-xen:enable}%"]
]
remove: [
["ocamlfind" "remove" "ctypes"]
]
depends: [
"ocaml" {>= "4.01.0" & < "5.2"}
"base-bytes"
"integers" { < "0.3.0" }
"ocamlfind" {build}
"conf-pkg-config" {build}
"lwt" {with-test & >= "2.4.7" & < "4.0.0"}
"ounit" {with-test}
"ctypes-foreign" {with-test}
"conf-ncurses" {with-test}
]
depopts: [
"ctypes-foreign"
"mirage-xen"
]
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` optional dependency:
opam install ctypes ctypes-foreign
This will make the `ctypes.foreign` ocamlfind subpackage available."""
authors: "yallop@gmail.com"
flags: light-uninstall
url {
src: "https://github.com/yallop/ocaml-ctypes/archive/0.12.1.tar.gz"
checksum: [
"sha256=127298c14af89625ebd300c08420e8629df98ebcff016fe6c1d0d106a0542810"
"md5=4dd798e84b93cd97fbd605d023a0a707"
]
}
conflicts: [
"mirage-xen" {>= "6.0.0"}
"base-nnp"
"ocaml-option-nnpchecker"
"host-system-msvc"
]