Diff cmdliner-1.0.4 with a cmdliner-1.1.1

/usr/portage/dev-ml/cmdliner/cmdliner-1.1.1.ebuild 2023-10-09 14:52:29.784368358 +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"
15
IUSE="+ocamlopt test"
16
RESTRICT="!test? ( test )"
14
KEYWORDS="amd64 arm arm64 ~ppc ppc64 ~riscv x86"
15
IUSE="+ocamlopt"
17 16

  
18 17
RDEPEND="
19
	>=dev-lang/ocaml-4:=[ocamlopt?]
18
	>=dev-lang/ocaml-4.08.00:=[ocamlopt?]
20 19
	dev-ml/result:=
21 20
	dev-ml/findlib:=
22 21
"
......
25 24
	dev-ml/ocamlbuild"
26 25

  
27 26
src_compile() {
28
	ocaml pkg/pkg.ml build \
29
		--tests $(usex test true false) \
30
		|| die
31
}
32

  
33
src_test() {
34
	ocaml pkg/pkg.ml test || die
27
	emake build-byte
28
	if use ocamlopt ; then
29
		emake build-native-dynlink
30
		emake build-native
31
	fi
35 32
}
36 33

  
37 34
src_install() {
38 35
	# Can't use opam-installer here as it is an opam dep...
39 36
	findlib_src_preinst
40 37
	local nativelibs=""
41
	use ocamlopt && nativelibs="$(echo _build/src/cmdliner.cm{x,xa,xs} _build/src/cmdliner.a)"
42
	ocamlfind install cmdliner _build/pkg/META \
43
		_build/src/cmdliner.mli _build/src/cmdliner.cm{a,i} ${nativelibs} || die
38
	use ocamlopt && nativelibs="$(echo _build/cmdliner.cm{x,xa,xs} _build/cmdliner.a)"
39
	ocamlfind install cmdliner pkg/META \
40
		_build/cmdliner.mli _build/cmdliner.cm{a,i} ${nativelibs} || die
44 41
	dodoc README.md CHANGES.md
45 42
}
Thank you!