|
| 1 | +opam-version: "2.0" |
| 2 | +synopsis: "Combinators for binding to C libraries without writing any C" |
| 3 | +description: """ |
| 4 | + |
| 5 | +ctypes is a library for binding to C libraries using pure OCaml. The primary |
| 6 | +aim is to make writing C extensions as straightforward as possible. |
| 7 | +The core of ctypes is a set of combinators for describing the structure of C |
| 8 | +types -- numeric types, arrays, pointers, structs, unions and functions. You |
| 9 | +can use these combinators to describe the types of the functions that you want |
| 10 | +to call, then bind directly to those functions -- all without writing or |
| 11 | +generating any C! |
| 12 | + |
| 13 | +To install the optional `ctypes-foreign` interface (which uses `libffi` to |
| 14 | +provide dynamic access to foreign libraries), you will need to also install |
| 15 | +the `ctypes-foreign` package. |
| 16 | + |
| 17 | + opam install ctypes-foreign |
| 18 | + |
| 19 | +This will make the `ctypes-foreign` ocamlfind subpackage available.""" |
| 20 | +maintainer: ["Jeremy Yallop < [email protected]>"] |
| 21 | +authors: ["Jeremy Yallop"] |
| 22 | +license: "MIT" |
| 23 | +tags: ["org:mirage"] |
| 24 | +homepage: "https://github.com/yallop/ocaml-ctypes" |
| 25 | +doc: "https://yallop.github.io/ocaml-ctypes/" |
| 26 | +bug-reports: "https://github.com/yallop/ocaml-ctypes/issues" |
| 27 | +depends: [ |
| 28 | + "dune" {>= "2.9"} |
| 29 | + "ocaml" {>= "4.03.0"} |
| 30 | + "integers" |
| 31 | + "dune-configurator" |
| 32 | + "bigarray-compat" |
| 33 | + "ounit2" {with-test} |
| 34 | + "conf-fts" {with-test & os != "win32"} |
| 35 | + "conf-pkg-config" {with-test} |
| 36 | + "odoc" {with-doc} |
| 37 | +] |
| 38 | +build: [ |
| 39 | + ["dune" "subst"] {dev} |
| 40 | + [ |
| 41 | + "dune" |
| 42 | + "build" |
| 43 | + "-p" |
| 44 | + name |
| 45 | + "-j" |
| 46 | + jobs |
| 47 | + "--promote-install-files=false" |
| 48 | + "@install" |
| 49 | + "@runtest" {with-test} |
| 50 | + "@doc" {with-doc} |
| 51 | + ] |
| 52 | + ["dune" "install" "-p" name "--create-install-files" name] |
| 53 | +] |
| 54 | +dev-repo: "git+https://github.com/yallop/ocaml-ctypes.git" |
| 55 | +url { |
| 56 | + src: "https://github.com/yallop/ocaml-ctypes/archive/refs/tags/0.21.1.tar.gz" |
| 57 | + checksum: "md5=8b201d932741c5096854e5eb39139b90" |
| 58 | +} |
0 commit comments