Skip to content

Commit

Permalink
temporary fix for yallop/ocaml-ctypes#552
Browse files Browse the repository at this point in the history
  • Loading branch information
trefis committed Nov 21, 2017
1 parent 0d9cccc commit a20dd14
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/ctypes.0.13.0+99/descr
Original file line number Diff line number Diff line change
@@ -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.
39 changes: 39 additions & 0 deletions packages/ctypes.0.13.0+99/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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"
"integers"
"ocamlfind" {build}
"conf-pkg-config" {build}
"lwt" {test}
"ounit" {test}
"ctypes-foreign" {test}
"conf-ncurses" {test}
]
depopts: [
"ctypes-foreign"
"mirage-xen"
]
tags: ["org:ocamllabs" "org:mirage"]
available: [ ocaml-version >= "4.01.0" ]
1 change: 1 addition & 0 deletions packages/ctypes.0.13.0+99/url
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
archive: "https://github.com/yallop/ocaml-ctypes/archive/a270d64201037c995a81d246e28a2d56a4f9acaa.tar.gz"

0 comments on commit a20dd14

Please sign in to comment.