Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (56 sloc) 2.04 KB
opam-version: "2.0"
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"
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"}
"base-bytes"
"ocamlfind" {build}
"conf-pkg-config" {build}
"lwt" {with-test & >= "2.4.7" & < "4.0.0"}
"ounit" {with-test}
"ctypes-foreign" {with-test}
]
depopts: [
"ctypes-foreign"
"mirage-xen"
]
tags: ["org:ocamllabs" "org:mirage"]
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/ocamllabs/ocaml-ctypes/archive/0.10.5.tar.gz"
checksum: "md5=67a4e1ba7dcf2dab40ce7cc3b517dc92"
}
You can’t perform that action at this time.