Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/camlp4/
Date: Tue, 31 May 2022 09:11:55
Message-Id: 1653988300.79d7bbb63b9bfb1cfc3d99765774729f8dd9caa9.sam@gentoo
1 commit: 79d7bbb63b9bfb1cfc3d99765774729f8dd9caa9
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 31 09:11:40 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue May 31 09:11:40 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79d7bbb6
7
8 dev-ml/camlp4: add 4.14
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-ml/camlp4/Manifest | 1 +
13 dev-ml/camlp4/camlp4-4.14.ebuild | 53 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 54 insertions(+)
15
16 diff --git a/dev-ml/camlp4/Manifest b/dev-ml/camlp4/Manifest
17 index 2cfdd7888a13..4c5e345871a6 100644
18 --- a/dev-ml/camlp4/Manifest
19 +++ b/dev-ml/camlp4/Manifest
20 @@ -4,3 +4,4 @@ DIST camlp4-4.10_p1.tar.gz 650092 BLAKE2B d7a6221dba5f6ec6963fe35236c29f39b8ae8f
21 DIST camlp4-4.11_p1.tar.gz 650280 BLAKE2B 6fe46b49c1f2b2e5fc87fbbbdba3ccae795c555737495c298456b84f0dca79c750aa6e4ab2c23bbc7ba4724defdfb739e370f468a78658035474d2f3ad255995 SHA512 8e572602c1c465017a234565efa2249c935ba1ad3d399a6b264bfbec345958130a96311c79e437ac995e3ead9ff7b4f2d3fe6aa4a3a82431ae0cc6257a300f4c
22 DIST camlp4-4.12.tar.gz 650428 BLAKE2B 4957d3db73ec82fbac58dd95fa13c48f9f8480a70cd6bded43a00df0a182f9b9e31a43acef8264f9d940776667d10b0a5c46bded59ebf4a645719264628428fc SHA512 0a19bb596e47076a28a6bea62007f1d3b59c4d688075f6b723abaa205c555707feb4ea0624259994a4ba5251fdea9dc61cdc936dc13611b36937e755a4bc9b7b
23 DIST camlp4-4.13.tar.gz 650642 BLAKE2B 5bf70b21f47eefe4631227d0d30fdd08ab965020026d0183fc94b9dbfd1eee45626afbe62bf9507b1a887217cf9245901d40f25cce9430155eb9ec1ddc577554 SHA512 d3307bd11b813540d126719c0afe7e75a7740d0851b272be9bd1a28e8b1ab1ed9a7576109000c8d6cee7ece7f777122aa83917a48147d42ed8f4d72994397819
24 +DIST camlp4-4.14.tar.gz 653205 BLAKE2B 52978c3fc67ddc1ecf8f6e4fa956823bd1bca41f7a317e4a17936ec774171fd566e49140da69930750dceb5519657912cc2490ca725838c27bbe5ec987596d67 SHA512 1f06a5db82f556da8bfb2c7a699acb007173d4e685aa07a8349b1da91a8ac1a460bf9f98ac8f920357961c1da78ccc27814e178d466e270a4f00a1a9f00ea776
25
26 diff --git a/dev-ml/camlp4/camlp4-4.14.ebuild b/dev-ml/camlp4/camlp4-4.14.ebuild
27 new file mode 100644
28 index 000000000000..d6ee3cfc6557
29 --- /dev/null
30 +++ b/dev-ml/camlp4/camlp4-4.14.ebuild
31 @@ -0,0 +1,53 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +MY_PV=${PV/_p/+}
38 +MY_P=${PN}-${MY_PV}
39 +
40 +inherit edo
41 +
42 +DESCRIPTION="System for writing extensible parsers for programming languages"
43 +HOMEPAGE="https://github.com/camlp4/camlp4"
44 +SRC_URI="https://github.com/camlp4/camlp4/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
45 +S="${WORKDIR}"/${P/_p/-}
46 +
47 +LICENSE="LGPL-2-with-linking-exception"
48 +SLOT="0/${PV}"
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
50 +IUSE="+ocamlopt"
51 +
52 +RDEPEND="dev-lang/ocaml:0/$(ver_cut 1-2)[ocamlopt?]"
53 +DEPEND="${RDEPEND}
54 + dev-ml/ocamlbuild[ocamlopt?]
55 + dev-ml/findlib:="
56 +
57 +QA_FLAGS_IGNORED='.*'
58 +
59 +PATCHES=( "${FILESDIR}/reload.patch" )
60 +
61 +src_configure() {
62 + edo ./configure \
63 + --bindir="${EPREFIX}/usr/bin" \
64 + --libdir="$(ocamlc -where)" \
65 + --pkgdir="$(ocamlc -where)"
66 +}
67 +
68 +src_compile() {
69 + # Increase stack limit to 11GiB to avoid stack overflow error.
70 + ulimit -s 11530000
71 +
72 + emake byte
73 + use ocamlopt && emake native
74 +}
75 +
76 +src_install() {
77 + emake DESTDIR="${D}" install install-META
78 + dodoc CHANGES.md README.md
79 +
80 + if has_version ">=dev-ml/findlib-1.9" ; then
81 + # See bug #803275
82 + rm "${ED}/usr/$(get_libdir)/ocaml/camlp4/META" || die
83 + fi
84 +}