-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23357 from yallop/ctypes-0.20.2
Add ctypes 0.20.2
- Loading branch information
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
opam-version: "2.0" | ||
maintainer: "[email protected]" | ||
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: "[email protected]" | ||
url { | ||
src: "https://github.com/ocamllabs/ocaml-ctypes/archive/0.20.2.tar.gz" | ||
checksum: "md5=cc68949d9cadc57f3682a97348137964" | ||
} | ||
conflicts: [ | ||
"mirage-xen" {>= "6.0.0"} | ||
] |