gentoo/dev-ml/ocaml-ctypes/ocaml-ctypes-0.23.0.ebuild
Alfredo Tupone 72f41947d1
dev-ml/ocaml-ctypes: drop extra dev-lang/ocaml
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
2025-09-29 12:14:42 +02:00

32 lines
728 B
Bash

# Copyright 1999-2025 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/bigarray-compat:=
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
}