Diff sedlex-3.0 with a sedlex-3.1

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

  
4
EAPI=7
4
EAPI=8
5

  
6
# Using "--for-release-of-packages" skips the regeneration of "unicode.ml" file
7
# (using curl), see "src_compile" and "src_test" and "dune-release".
8
DUNE_PKG_NAME=${PN}
5 9

  
6 10
inherit dune
7 11

  
8 12
DESCRIPTION="An OCaml lexer generator for Unicode"
9
HOMEPAGE="https://github.com/ocaml-community/sedlex"
13
HOMEPAGE="https://github.com/ocaml-community/sedlex/"
10 14
SRC_URI="https://github.com/ocaml-community/${PN}/archive/v${PV}.tar.gz
11
			-> ${P}.tar.gz"
15
	-> ${P}.tar.gz"
12 16

  
13 17
LICENSE="MIT"
14 18
SLOT="0/${PV}"
15 19
KEYWORDS="~amd64 ~x86"
16
IUSE="+ocamlopt"
20
IUSE="+ocamlopt test"
21
RESTRICT="!test? ( test )"
17 22

  
18 23
DEPEND="
19 24
	dev-ml/gen:=
20 25
	>=dev-ml/ppxlib-0.26:=
21
	dev-ml/uchar:=
22 26
"
23 27
RDEPEND="${DEPEND}"
28
BDEPEND="test? ( dev-ml/ppx_expect )"
24 29

  
25 30
src_compile() {
26
	ebegin "Building"
27
	dune build @install --display short --profile release \
28
		--ignore-promoted-rules
29
	eend $? || die
31
	dune-compile ${DUNE_PKG_NAME}
30 32
}
31 33

  
32
dune_src_test() {
33
	ebegin "Testing"
34
	dune runtest --display short --profile release \
35
		--ignore-promoted-rules
36
	eend $? || die
34
src_test() {
35
	dune-test ${DUNE_PKG_NAME}
37 36
}
Thank you!