Skip to content

Commit 74a4b72

Browse files
authored
Merge pull request ocaml#23357 from yallop/ctypes-0.20.2
Add ctypes 0.20.2
2 parents e8e6a5b + d6dce70 commit 74a4b72

File tree

1 file changed

+59
-0
lines changed
  • packages/ctypes/ctypes.0.20.2

1 file changed

+59
-0
lines changed

packages/ctypes/ctypes.0.20.2/opam

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
opam-version: "2.0"
2+
maintainer: "[email protected]"
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"
7+
license: "MIT"
8+
build: [
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}
16+
]
17+
install: [
18+
[make "install" "XEN=%{mirage-xen:enable}%"]
19+
]
20+
depends: [
21+
"ocaml" {>= "4.03.0"}
22+
"integers" { >= "0.3.0" }
23+
"ocamlfind" {build}
24+
"lwt" {with-test & >= "3.2.0"}
25+
"ctypes-foreign" {with-test}
26+
"ounit" {with-test}
27+
"conf-ncurses" {with-test}
28+
"bigarray-compat"
29+
]
30+
depopts: [
31+
"ctypes-foreign"
32+
"mirage-xen"
33+
]
34+
synopsis: "Combinators for binding to C libraries without writing any C"
35+
description: """
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.
38+
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
43+
generating any C!
44+
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:
48+
49+
opam install ctypes ctypes-foreign
50+
51+
This will make the `ctypes.foreign` ocamlfind subpackage available."""
52+
53+
url {
54+
src: "https://github.com/ocamllabs/ocaml-ctypes/archive/0.20.2.tar.gz"
55+
checksum: "md5=cc68949d9cadc57f3682a97348137964"
56+
}
57+
conflicts: [
58+
"mirage-xen" {>= "6.0.0"}
59+
]

0 commit comments

Comments
 (0)