1 |
commit: d981d84d9ed6c270bde7e53b0f605187fd441a6b |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 24 00:51:31 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 24 01:26:06 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d981d84d |
7 |
|
8 |
dev-ml/ocamlbuild: bump to 0.14.1 |
9 |
|
10 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
11 |
|
12 |
dev-ml/ocamlbuild/Manifest | 1 + |
13 |
dev-ml/ocamlbuild/ocamlbuild-0.14.1.ebuild | 52 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 53 insertions(+) |
15 |
|
16 |
diff --git a/dev-ml/ocamlbuild/Manifest b/dev-ml/ocamlbuild/Manifest |
17 |
index bda5a1b64c33..654742222d98 100644 |
18 |
--- a/dev-ml/ocamlbuild/Manifest |
19 |
+++ b/dev-ml/ocamlbuild/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST ocamlbuild-0.11.0.tar.gz 195297 BLAKE2B 2d653c402edf58035fa6efb65c99c956fe78efc4759f29c8ddab8263310a5d243d25d37d4c1a4f0699f151afb6d4c6df4c1550f95d6e915963b3d86923877225 SHA512 14bc44cc63b6c99e711658a1145247bad8263632fbb4550238cef15e226a76b83e51b83575a7a96f16b96ec321dedd0ef23f36166c354838aec1922f58179efd |
22 |
DIST ocamlbuild-0.14.0.tar.gz 198267 BLAKE2B 355d61ba68e61b9ee18a9fc0fbb9062405f44707b180ca7ad4bfec727ca3d3d2cc08f17be118ca3a4161c7789d975e7f431812e9139d4fde85a1a27ab68c8ac3 SHA512 ae60247396399dfd35644c8c1986ef7679e5a9964df82e3388bfc6dd4c5b88a13d6869a698d14a9ac70dc48e4ce1c003f543c85426d8c862ca31dea37a554b07 |
23 |
+DIST ocamlbuild-0.14.1.tar.gz 199103 BLAKE2B e29d5cf2b333dd45c0aa86cc1fa4ddb160079b8a7badfe6127039d9215d3e6ad655eeacc9410887eadf1d61615025a59ea008254cae5fd65c13eb2afc7937ec8 SHA512 1f5b43215b1d3dc427b9c64e005add9d423ed4bca9686d52c55912df8955647cb2d7d86622d44b41b14c4f0d657b770c27967c541c868eeb7c78e3bd35b827ad |
24 |
|
25 |
diff --git a/dev-ml/ocamlbuild/ocamlbuild-0.14.1.ebuild b/dev-ml/ocamlbuild/ocamlbuild-0.14.1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..d401b427c72a |
28 |
--- /dev/null |
29 |
+++ b/dev-ml/ocamlbuild/ocamlbuild-0.14.1.ebuild |
30 |
@@ -0,0 +1,52 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+DESCRIPTION="Generic build tool with built-in rules for building OCaml library and programs" |
37 |
+HOMEPAGE="https://github.com/ocaml/ocamlbuild" |
38 |
+SRC_URI="https://github.com/ocaml/ocamlbuild/archive/${PV}.tar.gz -> ${P}.tar.gz" |
39 |
+ |
40 |
+LICENSE="LGPL-2.1-with-linking-exception" |
41 |
+SLOT="0/${PV}" |
42 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" |
43 |
+IUSE="+ocamlopt test" |
44 |
+RESTRICT="!test? ( test )" |
45 |
+REQUIRED_USE="test? ( ocamlopt )" |
46 |
+ |
47 |
+RDEPEND=">=dev-lang/ocaml-4.02.3-r1:=[ocamlopt?]" |
48 |
+DEPEND="${RDEPEND} |
49 |
+ dev-ml/findlib" |
50 |
+ |
51 |
+PATCHES=( |
52 |
+ "${FILESDIR}"/${PN}-0.14.0-Disable-tests-failing-with-OCaml-4.08.0.patch |
53 |
+) |
54 |
+ |
55 |
+QA_FLAGS_IGNORED='.*' |
56 |
+src_prepare() { |
57 |
+ sed -i \ |
58 |
+ -e "/package_exists/s:camlp4.macro:xxxxxx:" \ |
59 |
+ -e "/package_exists/s:menhirLib:xxxxxx:" \ |
60 |
+ testsuite/external.ml || die |
61 |
+ default |
62 |
+} |
63 |
+ |
64 |
+src_configure() { |
65 |
+ emake -f configure.make Makefile.config \ |
66 |
+ PREFIX="${EPREFIX}/usr" \ |
67 |
+ BINDIR="${EPREFIX}/usr/bin" \ |
68 |
+ LIBDIR="$(ocamlc -where)" \ |
69 |
+ OCAML_NATIVE=$(usex ocamlopt true false) \ |
70 |
+ OCAML_NATIVE_TOOLS=$(usex ocamlopt true false) \ |
71 |
+ NATDYNLINK=$(usex ocamlopt true false) |
72 |
+} |
73 |
+ |
74 |
+src_compile() { |
75 |
+ emake src/ocamlbuild_config.cmo |
76 |
+ default |
77 |
+} |
78 |
+ |
79 |
+src_install() { |
80 |
+ emake CHECK_IF_PREINSTALLED=false DESTDIR="${D}" install |
81 |
+ dodoc Changes |
82 |
+} |