Skip to content

Commit e0b3b1b

Browse files
authored
Merge pull request #28855 from yallop/ctypes-0.24.0
Add ctypes 0.24.0
2 parents a1b2e27 + eacd818 commit e0b3b1b

File tree

2 files changed

+117
-0
lines changed
  • packages
    • ctypes-foreign/ctypes-foreign.0.24.0
    • ctypes/ctypes.0.24.0

2 files changed

+117
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
opam-version: "2.0"
2+
synopsis: "Dynamic access to foreign C libraries using Ctypes"
3+
description: """
4+
5+
This installs the `ctypes-foreign` interface which
6+
uses `libffi` to provide dynamic access to foreign libraries."""
7+
maintainer: ["Jeremy Yallop <yallop@gmail.com>"]
8+
authors: ["Jeremy Yallop"]
9+
license: "MIT"
10+
tags: ["org:mirage"]
11+
homepage: "https://github.com/yallop/ocaml-ctypes"
12+
doc: "https://yallop.github.io/ocaml-ctypes/"
13+
bug-reports: "https://github.com/yallop/ocaml-ctypes/issues"
14+
depends: [
15+
"dune" {>= "3.9"}
16+
"ocaml" {>= "4.07.0"}
17+
"integers" {with-test & >= "0.2.2"}
18+
"ctypes" {= version}
19+
"dune-configurator"
20+
"conf-pkg-config"
21+
"lwt" {with-test & >= "2.4.7"}
22+
"ounit2" {with-test}
23+
"conf-ncurses" {with-test}
24+
"conf-fts" {with-test & os != "win32"}
25+
"conf-libffi" {>= "2.0.0"}
26+
"odoc" {with-doc}
27+
]
28+
build: [
29+
["dune" "subst"] {dev}
30+
[
31+
"dune"
32+
"build"
33+
"-p"
34+
name
35+
"-j"
36+
jobs
37+
"--promote-install-files=false"
38+
"@install"
39+
"@runtest" {with-test}
40+
"@doc" {with-doc}
41+
]
42+
["dune" "install" "-p" name "--create-install-files" name]
43+
]
44+
dev-repo: "git+https://github.com/yallop/ocaml-ctypes.git"
45+
url {
46+
src:
47+
"https://github.com/yallop/ocaml-ctypes/archive/refs/tags/0.24.0.tar.gz"
48+
checksum: [
49+
"sha256=249c5604c8554659761a7282db4ad200aa8c0fdc408cdb53102bd70feeb51955"
50+
"md5=064316aaf508a9db203f114bb8401dee"
51+
]
52+
}

packages/ctypes/ctypes.0.24.0/opam

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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 <yallop@gmail.com>"]
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" {>= "3.9"}
29+
"ocaml" {>= "4.07.0"}
30+
"integers"
31+
"dune-configurator"
32+
"ounit2" {with-test}
33+
"conf-fts" {with-test & os != "win32"}
34+
"conf-pkg-config" {with-test}
35+
"odoc" {with-doc}
36+
]
37+
build: [
38+
["dune" "subst"] {dev}
39+
[
40+
"dune"
41+
"build"
42+
"-p"
43+
name
44+
"-j"
45+
jobs
46+
"--promote-install-files=false"
47+
"@install"
48+
"@runtest" {with-test}
49+
"@doc" {with-doc}
50+
]
51+
["dune" "install" "-p" name "--create-install-files" name]
52+
]
53+
dev-repo: "git+https://github.com/yallop/ocaml-ctypes.git"
54+
url {
55+
src:
56+
"https://github.com/yallop/ocaml-ctypes/archive/refs/tags/0.24.0.tar.gz"
57+
checksum: [
58+
"sha256=249c5604c8554659761a7282db4ad200aa8c0fdc408cdb53102bd70feeb51955"
59+
"md5=064316aaf508a9db203f114bb8401dee"
60+
]
61+
}
62+
conflicts: [
63+
"host-system-msvc"
64+
]
65+
x-maintenance-intent: ["(any).(any).(latest)"]

0 commit comments

Comments
 (0)