From fd4984aaf14f0cec97433f4bd0f48098d1348e2e Mon Sep 17 00:00:00 2001 From: Thomas Bracht Laumann Jespersen Date: Sun, 15 Mar 2026 07:03:00 +0100 Subject: [PATCH] dev-ml/ocaml-ctypes: add 0.24.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Drops dev-ml/bigarray-compat as a dependency. Signed-off-by: Thomas Bracht Laumann Jespersen Part-of: https://codeberg.org/gentoo/gentoo/pulls/360 Merges: https://codeberg.org/gentoo/gentoo/pulls/360 Signed-off-by: Maciej Barć --- dev-ml/ocaml-ctypes/Manifest | 1 + .../ocaml-ctypes/ocaml-ctypes-0.24.0.ebuild | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 dev-ml/ocaml-ctypes/ocaml-ctypes-0.24.0.ebuild diff --git a/dev-ml/ocaml-ctypes/Manifest b/dev-ml/ocaml-ctypes/Manifest index 8f9d52f9e8cfb..4cf79bd178882 100644 --- a/dev-ml/ocaml-ctypes/Manifest +++ b/dev-ml/ocaml-ctypes/Manifest @@ -1 +1,2 @@ DIST ocaml-ctypes-0.23.0.tar.gz 200133 BLAKE2B c079c64584a2293ee0ef3d3a2d08472728ff3891b65773a97c23af0039dd4693b3c909d969ac006c976bad9af8b2743dfa03acddb8ed74f2405e60ef1cdb0f40 SHA512 0c287cd3162d092b37bd6d4b24c196d41c93b792c4aa77938fde60f5dbc7eedde588097493a645af9bffc0ed722eadd0fa90e04b04d5e36e78e6467ae9e4baf8 +DIST ocaml-ctypes-0.24.0.tar.gz 200058 BLAKE2B 1d376c2937195edd0b2a89e0b8e5d58485039c9d546fd668de2562c3b62c42d8be023b171430ced6aacdbe066bfda8013d12be401b75f6d57bc9a792ccac90a5 SHA512 0fa640f00e2960a8ceae3bb9835c5318d3718e748f40adc3f0a50dcb9b38a696de2442f2e75a6ce2356bab7e7eb5edea5486a757e553c17207191a49ceaa307d diff --git a/dev-ml/ocaml-ctypes/ocaml-ctypes-0.24.0.ebuild b/dev-ml/ocaml-ctypes/ocaml-ctypes-0.24.0.ebuild new file mode 100644 index 0000000000000..03e53126e1af1 --- /dev/null +++ b/dev-ml/ocaml-ctypes/ocaml-ctypes-0.24.0.ebuild @@ -0,0 +1,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 +}