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: Wed, 09 Jun 2021 21:45:32
Message-Id: 1623275111.44fcb8adf6e4de019ed6bb7f3735e0b60ce5df3a.sam@gentoo
1 commit: 44fcb8adf6e4de019ed6bb7f3735e0b60ce5df3a
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 9 21:45:11 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 9 21:45:11 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44fcb8ad
7
8 dev-ml/camlp4: add 4.12
9
10 Bug: https://bugs.gentoo.org/794898
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 dev-ml/camlp4/Manifest | 1 +
14 dev-ml/camlp4/camlp4-4.12.ebuild | 46 ++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 47 insertions(+)
16
17 diff --git a/dev-ml/camlp4/Manifest b/dev-ml/camlp4/Manifest
18 index 7576021844b..05a69dfc98a 100644
19 --- a/dev-ml/camlp4/Manifest
20 +++ b/dev-ml/camlp4/Manifest
21 @@ -2,3 +2,4 @@ DIST camlp4-4.05_p1.tar.gz 647566 BLAKE2B 068c1016a75616811787eb480b61349a329609
22 DIST camlp4-4.09_p1.tar.gz 649702 BLAKE2B 2bf0fd0b4f22d21b9fa7e195a26f4dece56549c56d191480d5c874aac9422d2d4aa41e23e96c078f653f6da6bdbd186583cb02e857741fdb526b53b000b981bb SHA512 71a8eed173013bdea61f7a268c82acaa1f5215aebbf4b638efba137760e849f9fede82f801aa14e5d6cc334d6e67d752988b15a36557b363a8feaf9ba1d1add4
23 DIST camlp4-4.10_p1.tar.gz 650092 BLAKE2B d7a6221dba5f6ec6963fe35236c29f39b8ae8f928618b5a58f72e7b1cc1f50d716b110f9684150716b56784cf703c0d8fcbc1aad32aeab638faca9c1bf2d5b9e SHA512 7ae0e20053a43399daa4ee9b93b6f4dbebc3e17c5ee79d069c4903cdfb2bf1cfc7d6badecf92fcf62e97a5f85f3be6ed82a62eb2a311bf6398b2792eacf763d8
24 DIST camlp4-4.11_p1.tar.gz 650280 BLAKE2B 6fe46b49c1f2b2e5fc87fbbbdba3ccae795c555737495c298456b84f0dca79c750aa6e4ab2c23bbc7ba4724defdfb739e370f468a78658035474d2f3ad255995 SHA512 8e572602c1c465017a234565efa2249c935ba1ad3d399a6b264bfbec345958130a96311c79e437ac995e3ead9ff7b4f2d3fe6aa4a3a82431ae0cc6257a300f4c
25 +DIST camlp4-4.12.tar.gz 650428 BLAKE2B 4957d3db73ec82fbac58dd95fa13c48f9f8480a70cd6bded43a00df0a182f9b9e31a43acef8264f9d940776667d10b0a5c46bded59ebf4a645719264628428fc SHA512 0a19bb596e47076a28a6bea62007f1d3b59c4d688075f6b723abaa205c555707feb4ea0624259994a4ba5251fdea9dc61cdc936dc13611b36937e755a4bc9b7b
26
27 diff --git a/dev-ml/camlp4/camlp4-4.12.ebuild b/dev-ml/camlp4/camlp4-4.12.ebuild
28 new file mode 100644
29 index 00000000000..7def8b41a1d
30 --- /dev/null
31 +++ b/dev-ml/camlp4/camlp4-4.12.ebuild
32 @@ -0,0 +1,46 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +MY_PV=${PV/_p/+}
39 +MY_P=${PN}-${MY_PV}
40 +
41 +DESCRIPTION="System for writing extensible parsers for programming languages"
42 +HOMEPAGE="https://github.com/camlp4/camlp4"
43 +SRC_URI="https://github.com/camlp4/camlp4/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="LGPL-2-with-linking-exception"
46 +SLOT="0/${PV}"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
48 +IUSE="+ocamlopt"
49 +
50 +DEPEND="dev-lang/ocaml:0/4.11[ocamlopt?]"
51 +RDEPEND="${DEPEND}"
52 +DEPEND="${DEPEND}
53 + dev-ml/ocamlbuild"
54 +
55 +QA_FLAGS_IGNORED='.*'
56 +
57 +S=${WORKDIR}/${P/_p/-}
58 +PATCHES=( "${FILESDIR}/reload.patch" )
59 +
60 +src_configure() {
61 + ./configure \
62 + --bindir="${EPREFIX}/usr/bin" \
63 + --libdir="$(ocamlc -where)" \
64 + --pkgdir="$(ocamlc -where)" \
65 + || die
66 +}
67 +
68 +src_compile() {
69 + # Increase stack limit to 11GiB to avoid stack overflow error.
70 + ulimit -s 11530000
71 + emake byte
72 + use ocamlopt && emake native
73 +}
74 +
75 +src_install() {
76 + emake DESTDIR="${D}" install install-META
77 + dodoc CHANGES.md README.md
78 +}