Diff uutf-1.0.2 with a uutf-1.0.3

/usr/portage/dev-ml/uutf/uutf-1.0.3.ebuild 2023-10-09 14:52:29.808368358 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=7
......
11 11

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

  
19 19
RDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]
20 20
	dev-ml/uchar:=
21
	utftrip? ( dev-ml/cmdliner:= )"
22
DEPEND="${RDEPEND}
23
	dev-ml/ocamlbuild
21
	utftrip? ( dev-ml/cmdliner:=[ocamlopt?] )"
22
DEPEND="${RDEPEND}"
23
BDEPEND="dev-ml/ocamlbuild
24 24
	dev-ml/topkg
25
	test? ( dev-ml/cmdliner )"
25
	test? ( dev-ml/cmdliner[ocamlopt?] )"
26

  
27
DOCS=( CHANGES.md README.md )
26 28

  
27 29
src_compile() {
28 30
	ocaml pkg/pkg.ml build \
29 31
		--with-cmdliner "$(usex utftrip true false)" \
32
		--tests "$(usex test true false)" \
30 33
		|| die
31 34
}
32 35

  
33 36
src_test() {
34 37
	if use ocamlopt ; then
35
		ocamlbuild -use-ocamlfind tests.otarget || die
36 38
		pushd _build/test || die
37 39
		./test.native || die
38 40
		# Rebuild to avoid mismatches between installed files, bug #604674
......
50 52
	findlib_src_preinst
51 53
	local nativelibs=""
52 54

  
53
	use ocamlopt && nativelibs="$(echo _build/src/uutf.cm{x,xa,xs} _build/src/uutf.a)"
55
	use ocamlopt &&
56
		nativelibs="$(echo _build/src/uutf.cm{x,xa,xs} _build/src/uutf.a)"
54 57
	ocamlfind install uutf _build/pkg/META _build/src/uutf.mli _build/src/uutf.cm{a,i} ${nativelibs} || die
58
	use utftrip &&
59
		newbin _build/test/utftrip.$(usex ocamlopt native byte) utftrip
55 60

  
56
	use utftrip && newbin _build/test/utftrip.$(usex ocamlopt native byte) utftrip
57
	dodoc CHANGES.md README.md
58

  
61
	einstalldocs
59 62
	if use doc ; then
60 63
		docinto html
61 64
		dodoc -r doc/*
Thank you!