Diff dune-2.9.3-r3 with a dune-3.0.3-r1

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

  
4 4
EAPI=8
......
11 11

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

  
18 18
RDEPEND="
19 19
	>=dev-lang/ocaml-4.08:=
20 20
	emacs? ( >=app-editors/emacs-23.1:* )
21 21
"
22
DEPEND="
23
	${RDEPEND}
24
	dev-ml/findlib
25
	test? (
26
		dev-ml/core_bench
27
		dev-ml/ppx_bench
28
		dev-ml/ppx_expect
29
	)
30
"
22
DEPEND="${RDEPEND}"
31 23

  
32 24
QA_FLAGS_IGNORED="usr/bin/dune"
33 25

  
34 26
BYTECOMPFLAGS="-L ${S}/editor-integration/emacs"
35 27
SITEFILE="50${PN}-gentoo.el"
36 28

  
29
src_prepare() {
30
	default
31

  
32
	# This allows `dune --version` to output the correct version
33
	# instead of "n/a"
34
	sed -i "/^(name dune)/a (version ${PV})" dune-project || die
35
}
36

  
37 37
src_configure() {
38
	:
38
	./configure \
39
		--libdir="$(ocamlc -where)" \
40
		--mandir="/usr/share/man" \
41
		|| die
39 42
}
40 43

  
41 44
src_compile() {
......
47 50
}
48 51

  
49 52
src_install() {
50
	default
51
	mv "${ED}"/usr/doc "${ED}"/usr/share/doc/${PF} || die
52
	mv "${ED}"/usr/man "${ED}"/usr/share/man || die
53
	./dune.exe install --destdir="${D}" --prefix=/usr/ \
54
		--libdir=$(ocamlc -where) "${PN}" \
55
		|| die
56

  
57
	dodir /usr/share/doc
58
	mv "${ED}"/usr/doc/dune "${ED}"/usr/share/doc/${PF} || die
59
	rmdir "${ED}"/usr/doc || die
53 60

  
54 61
	if use emacs ; then
55 62
		elisp-install ${PN} editor-integration/emacs/*.el{,c}
Thank you!