1 |
commit: fd805dafac9ea98ce4a3e146570d3d451c7aebf5 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 1 21:07:02 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 1 21:07:02 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd805daf |
7 |
|
8 |
dev-ml/uchar: EAPI 8 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
.../{uchar-0.0.2.ebuild => uchar-0.0.2-r1.ebuild} | 19 +++++++++++-------- |
13 |
1 file changed, 11 insertions(+), 8 deletions(-) |
14 |
|
15 |
diff --git a/dev-ml/uchar/uchar-0.0.2.ebuild b/dev-ml/uchar/uchar-0.0.2-r1.ebuild |
16 |
similarity index 73% |
17 |
rename from dev-ml/uchar/uchar-0.0.2.ebuild |
18 |
rename to dev-ml/uchar/uchar-0.0.2-r1.ebuild |
19 |
index b877cb8b70f8..e01cf3ceb62b 100644 |
20 |
--- a/dev-ml/uchar/uchar-0.0.2.ebuild |
21 |
+++ b/dev-ml/uchar/uchar-0.0.2-r1.ebuild |
22 |
@@ -1,9 +1,9 @@ |
23 |
-# Copyright 1999-2022 Gentoo Authors |
24 |
+# Copyright 1999-2023 Gentoo Authors |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
-EAPI=6 |
28 |
+EAPI=8 |
29 |
|
30 |
-inherit findlib |
31 |
+inherit edo findlib |
32 |
|
33 |
DESCRIPTION="Uchar compatibility library" |
34 |
HOMEPAGE="https://github.com/ocaml/uchar" |
35 |
@@ -14,8 +14,9 @@ SLOT="0/${PV}" |
36 |
KEYWORDS="amd64 arm arm64 ~ppc ppc64 ~riscv x86" |
37 |
IUSE="+ocamlopt" |
38 |
|
39 |
-RDEPEND=">=dev-lang/ocaml-4.03:=" |
40 |
-DEPEND="${RDEPEND} dev-ml/ocamlbuild" |
41 |
+RDEPEND=">=dev-lang/ocaml-4.03:=[ocamlopt?]" |
42 |
+DEPEND="${RDEPEND}" |
43 |
+BDEPEND="dev-ml/ocamlbuild" |
44 |
|
45 |
# This is mostly a compat wrapper for older ocaml versions we don't support. No |
46 |
# need to test it, plus it fails when installing for the first time: |
47 |
@@ -23,19 +24,21 @@ DEPEND="${RDEPEND} dev-ml/ocamlbuild" |
48 |
RESTRICT="test" |
49 |
|
50 |
src_compile() { |
51 |
- ocaml pkg/build.ml \ |
52 |
+ edo ocaml pkg/build.ml \ |
53 |
"native=$(usex ocamlopt true false)" \ |
54 |
- "native-dynlink=$(usex ocamlopt true false)" || die |
55 |
+ "native-dynlink=$(usex ocamlopt true false)" |
56 |
} |
57 |
|
58 |
src_test() { |
59 |
- ocamlbuild -X src -use-ocamlfind -pkg uchar test/testpkg.native || die |
60 |
+ edo ocamlbuild -X src -use-ocamlfind -pkg uchar test/testpkg.native |
61 |
} |
62 |
|
63 |
src_install() { |
64 |
# Can't use opam-installer here as it is an opam dep... |
65 |
findlib_src_preinst |
66 |
+ |
67 |
mv _build/pkg/META{.empty,} || die |
68 |
ocamlfind install ${PN} _build/pkg/META || die |
69 |
+ |
70 |
dodoc README.md CHANGES.md |
71 |
} |