Diff extlib-1.7.8 with a extlib-1.7.9

/usr/portage/dev-ml/extlib/extlib-1.7.9.ebuild 2023-10-09 14:52:29.788368358 +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
EAPI=7
4
EAPI=8
5 5

  
6 6
inherit findlib vcs-clean
7 7

  
8 8
DESCRIPTION="Standard library extensions for O'Caml"
9
HOMEPAGE="https://github.com/ygrek/ocaml-extlib"
10
SRC_URI="https://github.com/ygrek/ocaml-extlib/archive/${PV}.tar.gz -> ${P}.tar.gz"
11
S="${WORKDIR}/ocaml-${P}"
9
HOMEPAGE="https://github.com/ygrek/ocaml-extlib/"
10
SRC_URI="https://github.com/ygrek/ocaml-extlib/archive/${PV}.tar.gz
11
	-> ${P}.tar.gz"
12
S="${WORKDIR}"/ocaml-${P}
12 13

  
13 14
LICENSE="LGPL-2.1"
14 15
SLOT="0/${PV}"
......
22 23

  
23 24
src_prepare() {
24 25
	default
26

  
25 27
	egit_clean
26 28
}
27 29

  
28 30
src_compile() {
29
	cd src || die
31
	cd "${S}"/src || die
32

  
30 33
	emake -j1 all
31
	if use ocamlopt; then
32
		emake opt cmxs
33
	fi
34

  
35
	if use doc; then
36
		emake doc
37
	fi
34

  
35
	use ocamlopt && emake opt cmxs
36
	use doc && emake doc
38 37
}
39 38

  
40 39
src_test() {
......
44 43
src_install() {
45 44
	findlib_src_install
46 45

  
47
	# install documentation
48 46
	dodoc README.md
49 47

  
50
	if use doc; then
51
		dodoc -r src/doc/
52
	fi
48
	use doc && dodoc -r src/doc/
53 49
}
Thank you!