Diff ocaml-ctypes-0.20.1 with a ocaml-ctypes-0.21.1-r2

/usr/portage/dev-ml/ocaml-ctypes/ocaml-ctypes-0.21.1-r2.ebuild 2024-07-02 13:51:44.565851472 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
inherit findlib
6
DUNE_PKG_NAME=ctypes
7
inherit dune
7 8

  
8 9
DESCRIPTION="Library for binding to C libraries using pure OCaml"
9
HOMEPAGE="https://github.com/ocamllabs/ocaml-ctypes/"
10
SRC_URI="https://github.com/ocamllabs/ocaml-ctypes/archive/${PV}.tar.gz -> ${P}.tar.gz"
10
HOMEPAGE="https://github.com/yallop/ocaml-ctypes/"
11
SRC_URI="https://github.com/yallop/ocaml-ctypes/archive/${PV}.tar.gz -> ${P}.tar.gz"
11 12

  
12 13
LICENSE="MIT"
13 14
SLOT="0/${PV}"
14
KEYWORDS="amd64 arm arm64 ~ppc ppc64 ~riscv x86"
15
IUSE="test"
15
KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv x86"
16
IUSE="+ocamlopt test"
16 17
RESTRICT="!test? ( test )"
17 18

  
18 19
RDEPEND="
19
	>=dev-lang/ocaml-4.02:=
20
	>=dev-lang/ocaml-4.03:=
20 21
	>=dev-libs/libffi-3.3_rc0:=
21 22
	dev-ml/bigarray-compat:=
22 23
	dev-ml/integers:=
24
	dev-ml/dune-configurator:=
23 25
"
24 26
DEPEND="${RDEPEND}
25 27
	test? ( dev-ml/ounit2 dev-ml/lwt )"
26 28
REQUIRED_USE="ocamlopt"
27 29

  
28
PATCHES=(
29
	"${FILESDIR}"/${PN}-0.20.0-shuffle.patch
30
	"${FILESDIR}"/${P}-shuffle.patch
31
)
32

  
33
src_prepare() {
34
	sed -e 's/oUnit/ounit2/g' -i Makefile.tests || die
35
	default
36
}
37

  
38
src_compile() {
39
	emake -j1
40
}
41

  
42
src_test() {
43
	emake -j1 test
44
}
45

  
46 30
src_install() {
47
	findlib_src_install
48
	dodoc CHANGES.md README.md
31
	dune-install ctypes ctypes-foreign
49 32
}
Thank you!