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

/usr/portage/dev-ml/dune-configurator/dune-configurator-3.0.3-r1.ebuild 2023-10-09 14:52:29.784368358 +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
EAPI=7
4
EAPI=8
5 5

  
6
inherit dune
6
inherit dune multiprocessing
7 7

  
8 8
DESCRIPTION="A composable build system for OCaml"
9 9
HOMEPAGE="https://github.com/ocaml/dune"
10 10
SRC_URI="https://github.com/ocaml/dune/archive/${PV}.tar.gz -> dune-${PV}.tar.gz"
11 11
S="${WORKDIR}/dune-${PV}"
12 12

  
13
LICENSE="MIT"
13
LICENSE="Apache-2.0"
14 14
SLOT="0/${PV}"
15
KEYWORDS="amd64 arm ~arm64 ~ppc ppc64 ~riscv x86"
15
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
16 16
IUSE="+ocamlopt"
17
RESTRICT="test" #test run within dev-ml/dune-private-libs
17
RESTRICT="test"
18 18

  
19
RDEPEND="
20
	~dev-ml/dune-private-libs-${PV}:=[ocamlopt?]
21
	dev-ml/csexp:=[ocamlopt?]
22
	dev-ml/result:=[ocamlopt?]
19
BDEPEND=">=dev-ml/dune-3"
20
DEPEND="
21
	>=dev-ml/csexp-1.5:=[ocamlopt?]
23 22
"
24
DEPEND="${RDEPEND}"
23
RDEPEND="${DEPEND}"
24

  
25
src_prepare() {
26
	default
27

  
28
	# This enables dune-configurator to use the vendored csexp module
29
	sed -i 's/stdune.csexp/dune-configurator.csexp/' \
30
		vendor/csexp/src/dune || die
31
}
25 32

  
26 33
src_configure() {
27
	:
34
	./configure \
35
		--libdir="$(ocamlc -where)" \
36
		--mandir="/usr/share/man" \
37
		|| die
38
}
39

  
40
src_compile() {
41
	dune build -p "${PN}" @install -j $(makeopts_jobs) --profile release || die
28 42
}
Thank you!