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 2023-10-09 14:52:29.796368358 +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=( "${FILESDIR}"/${PN}-0.20.0-shuffle.patch ) |
|
29 | ||
30 |
src_prepare() { |
|
31 |
sed -e 's/oUnit/ounit2/g' -i Makefile.tests || die |
|
32 |
default |
|
33 |
} |
|
34 | ||
35 |
src_compile() { |
|
36 |
emake -j1 |
|
37 |
} |
|
38 | ||
39 |
src_test() { |
|
40 |
emake -j1 test |
|
41 |
} |
|
42 | ||
43 | 30 |
src_install() { |
44 |
findlib_src_install |
|
45 |
dodoc CHANGES.md README.md |
|
31 |
dune-install ctypes ctypes-foreign |
|
46 | 32 |
} |