diff --git a/packages/ctypes/ctypes.0.11.2/descr b/packages/ctypes/ctypes.0.11.2/descr new file mode 100644 index 00000000000..78333e29a0e --- /dev/null +++ b/packages/ctypes/ctypes.0.11.2/descr @@ -0,0 +1,18 @@ +Combinators for binding to C libraries without writing any C. + +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. diff --git a/packages/ctypes/ctypes.0.11.2/findlib b/packages/ctypes/ctypes.0.11.2/findlib new file mode 100644 index 00000000000..16c34dd3ba0 --- /dev/null +++ b/packages/ctypes/ctypes.0.11.2/findlib @@ -0,0 +1 @@ +ctypes diff --git a/packages/ctypes/ctypes.0.11.2/opam b/packages/ctypes/ctypes.0.11.2/opam new file mode 100644 index 00000000000..7966944135b --- /dev/null +++ b/packages/ctypes/ctypes.0.11.2/opam @@ -0,0 +1,37 @@ +opam-version: "1.2" +maintainer: "yallop@gmail.com" +author: "yallop@gmail.com" +homepage: "https://github.com/ocamllabs/ocaml-ctypes" +doc: "http://ocamllabs.github.io/ocaml-ctypes" +dev-repo: "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} +] +build-test: [ + [make "test"] +] +install: [ + [make "install" "XEN=%{mirage-xen:enable}%"] +] +remove: [ + ["ocamlfind" "remove" "ctypes"] +] +depends: [ + "base-bytes" + "ocamlfind" {build} + "conf-pkg-config" {build} + "lwt" {test} + "ounit" {test} + "ctypes-foreign" {test} +] +depopts: [ + "ctypes-foreign" + "mirage-xen" +] +tags: ["org:ocamllabs" "org:mirage"] +available: [ ocaml-version >= "4.01.0" ] diff --git a/packages/ctypes/ctypes.0.11.2/url b/packages/ctypes/ctypes.0.11.2/url new file mode 100644 index 00000000000..b5b550da848 --- /dev/null +++ b/packages/ctypes/ctypes.0.11.2/url @@ -0,0 +1,2 @@ +archive: "https://github.com/ocamllabs/ocaml-ctypes/archive/0.11.2.tar.gz" +checksum: "72055750770278a84965bb81aec68d87"