Diff cudf-0.9-r2 with a cudf-0.10

/usr/portage/dev-ml/cudf/cudf-0.10.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
5 5

  
6
inherit toolchain-funcs
6
inherit dune toolchain-funcs
7 7

  
8
MYP=${PN}-v${PV}
8 9
DESCRIPTION="Library to parse, pretty print, and evaluate CUDF documents"
9 10
HOMEPAGE="http://www.mancoosi.org/cudf/"
10
SRC_URI="https://gforge.inria.fr/frs/download.php/file/36602/${P}.tar.gz"
11
SRC_URI="https://gitlab.com/irill/${PN}/-/archive/v${PV}/${MYP}.tar.bz2"
11 12

  
12 13
LICENSE="LGPL-3"
13 14
SLOT="0/${PV}"
......
31 32
"
32 33
BDEPEND="virtual/pkgconfig"
33 34

  
34
PATCHES=( "${FILESDIR}/ounit2.patch" )
35

  
36 35
QA_FLAGS_IGNORED='.*'
37 36

  
37
S="${WORKDIR}"/${MYP}
38

  
38 39
src_prepare() {
39 40
	default
40 41

  
......
57 58
}
58 59

  
59 60
src_compile() {
60
	emake OCAMLBUILD="ocamlbuild -classic-display" -j1 all
61
	emake OCAMLBUILD="ocamlbuild -classic-display" c-lib
61
	dune_src_compile
62
	emake c-lib
62 63
	if use ocamlopt ; then
63
		emake OCAMLBUILD="ocamlbuild -classic-display" -j1 opt
64
		emake OCAMLBUILD="ocamlbuild -classic-display" c-lib-opt
64
		emake c-lib-opt
65 65
	fi
66 66
}
67 67

  
68 68
src_test() {
69
	emake OCAMLBUILD="ocamlbuild -classic-display" test
70
	emake OCAMLBUILD="ocamlbuild -classic-display" c-lib-test
69
	dune_src_test
70
	emake c-lib-test
71 71
}
72 72

  
73 73
src_install() {
74
	emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install
75
	dodoc BUGS ChangeLog README TODO
74
	dune_src_install
75
	mv "${ED}"/usr/share/doc/${PF}/{cudf/README,} || die
76
	rmdir "${ED}"/usr/share/doc/${PF}/cudf || die
77
	emake DESTDIR="${ED}" -C c-lib/ LIBDIR="/usr/$(get_libdir)" -e install
78
	dodoc BUGS ChangeLog
76 79
}
Thank you!