From d6dce703a354e712b072afe6833b3c76125983be Mon Sep 17 00:00:00 2001 From: Jeremy Yallop Date: Sat, 18 Feb 2023 14:28:17 +0000 Subject: [PATCH] Add ctypes 0.20.2 --- packages/ctypes/ctypes.0.20.2/opam | 59 ++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 packages/ctypes/ctypes.0.20.2/opam diff --git a/packages/ctypes/ctypes.0.20.2/opam b/packages/ctypes/ctypes.0.20.2/opam new file mode 100644 index 00000000000..275424a6e78 --- /dev/null +++ b/packages/ctypes/ctypes.0.20.2/opam @@ -0,0 +1,59 @@ +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} +] +install: [ + [make "install" "XEN=%{mirage-xen:enable}%"] +] +depends: [ + "ocaml" {>= "4.03.0"} + "integers" { >= "0.3.0" } + "ocamlfind" {build} + "lwt" {with-test & >= "3.2.0"} + "ctypes-foreign" {with-test} + "ounit" {with-test} + "conf-ncurses" {with-test} + "bigarray-compat" +] +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" +url { + src: "https://github.com/ocamllabs/ocaml-ctypes/archive/0.20.2.tar.gz" + checksum: "md5=cc68949d9cadc57f3682a97348137964" +} +conflicts: [ + "mirage-xen" {>= "6.0.0"} +]