blob: 2d5ad0070774bc7f84c4281d42675bc63f903525 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DUNE_PKG_NAME=ctypes
inherit dune
DESCRIPTION="Library for binding to C libraries using pure OCaml"
HOMEPAGE="https://github.com/yallop/ocaml-ctypes/"
SRC_URI="https://github.com/yallop/ocaml-ctypes/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv x86"
IUSE="+ocamlopt test"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-libs/libffi-3.3_rc0:=
dev-ml/integers:=
dev-ml/dune-configurator:=
"
DEPEND="
${RDEPEND}
test? (
dev-ml/ounit2
dev-ml/lwt
)
"
REQUIRED_USE="ocamlopt"
src_install() {
dune-install ctypes ctypes-foreign
}
|