Skip to content

Commit

Permalink
Merge pull request #23357 from yallop/ctypes-0.20.2
Browse files Browse the repository at this point in the history
Add ctypes 0.20.2
  • Loading branch information
kit-ty-kate authored Mar 21, 2023
2 parents e8e6a5b + d6dce70 commit 74a4b72
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions packages/ctypes/ctypes.0.20.2/opam
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"}
]

0 comments on commit 74a4b72

Please sign in to comment.