commit:     08b92681505398613f6d276094e2fb8e71f7bf15
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 29 17:40:12 2025 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Mar 29 17:40:12 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08b92681

dev-ml/camlp4: add 5.3_p1

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ml/camlp4/Manifest             |  1 +
 dev-ml/camlp4/camlp4-5.3_p1.ebuild | 58 ++++++++++++++++++++++++++++++++++++++
 profiles/package.mask              |  4 ---
 3 files changed, 59 insertions(+), 4 deletions(-)

diff --git a/dev-ml/camlp4/Manifest b/dev-ml/camlp4/Manifest
index 4f3667862fe4..61d0b88e0dcd 100644
--- a/dev-ml/camlp4/Manifest
+++ b/dev-ml/camlp4/Manifest
@@ -5,3 +5,4 @@ DIST camlp4-4.12.tar.gz 650428 BLAKE2B 
4957d3db73ec82fbac58dd95fa13c48f9f8480a70
 DIST camlp4-4.13.tar.gz 650642 BLAKE2B 
5bf70b21f47eefe4631227d0d30fdd08ab965020026d0183fc94b9dbfd1eee45626afbe62bf9507b1a887217cf9245901d40f25cce9430155eb9ec1ddc577554
 SHA512 
d3307bd11b813540d126719c0afe7e75a7740d0851b272be9bd1a28e8b1ab1ed9a7576109000c8d6cee7ece7f777122aa83917a48147d42ed8f4d72994397819
 DIST camlp4-4.14_p1.tar.gz 641790 BLAKE2B 
3e1054a924956e9c23d43fb4ef00cf99fe09f6d2a5eb4216cb3d5079a439159d36703b6ae268789d73e51e87ed0329531b25c2e846df03c4ae99b1a6403b84c3
 SHA512 
1853ae0465a1366cf73d7aa9de56c037ef3d4bb5b341fe3eeb39677b5b08bda44316634b93d5d35d917a98dff8eb40da974937f714ab609818e7d25f716de811
 DIST camlp4-5.2_p1.tar.gz 653548 BLAKE2B 
27002802bbf0d0a67d5c2c967fa54d72087c9b08020d290ec081545ef4d4c7bea794ab8ea74608d63ed4a51b58fe44a1ac921d4de9f66f754a7b3d931e5ed818
 SHA512 
7034cf32575b6a7dc0406fea3c354068598195aa84a75e8576ea1219c38e4bffdc048c936d440bab235aea76510972a174bffba13f4f94f531b80fb4d80ca4ad
+DIST camlp4-5.3_p1.tar.gz 653589 BLAKE2B 
3fd9b063132a02081f3af79ebc02d6e7788ca60f3776a65b92d29faec1db4016d01b4a5b8556a818a39ab65d3aa4aadc281f5480f12fa36be9ca00f9323c6016
 SHA512 
30d0a1a52d5e359f16158e10b025e8d05fb7ccf1fa7f45cecd3584e5ba5ba995f85917680904c347437f3bdf6376ade9a666bbef7a337e5f41bc73ec1bb126d8

diff --git a/dev-ml/camlp4/camlp4-5.3_p1.ebuild 
b/dev-ml/camlp4/camlp4-5.3_p1.ebuild
new file mode 100644
index 000000000000..3d5de5addce9
--- /dev/null
+++ b/dev-ml/camlp4/camlp4-5.3_p1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PV=${PV/_p/+}
+MY_P=${PN}-${MY_PV}
+
+inherit edo
+
+DESCRIPTION="System for writing extensible parsers for programming languages"
+HOMEPAGE="https://github.com/camlp4/camlp4";
+SRC_URI="https://github.com/camlp4/camlp4/archive/${MY_PV}.tar.gz
+       -> ${P}.tar.gz"
+S="${WORKDIR}"/${P/_p/-}
+
+LICENSE="LGPL-2-with-linking-exception"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="+ocamlopt"
+
+RDEPEND="
+       =dev-lang/ocaml-5.3*:=[ocamlopt?]
+       dev-ml/camlp-streams:=[ocamlopt?]
+"
+DEPEND="
+       ${RDEPEND}
+       dev-ml/ocamlbuild[ocamlopt?]
+       dev-ml/findlib:=
+"
+
+QA_FLAGS_IGNORED='.*'
+
+PATCHES=( "${FILESDIR}/reload.patch" )
+
+src_configure() {
+       edo ./configure                             \
+               --bindir="${EPREFIX}/usr/bin"           \
+               --libdir="$(ocamlc -where)"             \
+               --pkgdir="$(ocamlc -where)"
+}
+
+src_compile() {
+       # Increase stack limit to 11GiB to avoid stack overflow error.
+       ulimit -s 11530000
+
+       emake byte
+       use ocamlopt && emake native
+}
+
+src_install() {
+       # OCaml generates textrels on 32-bit arches
+       if use arm || use ppc || use x86 ; then
+               export QA_TEXTRELS='.*'
+       fi
+       emake DESTDIR="${D}" install install-META
+       dodoc CHANGES.md README.md
+}

diff --git a/profiles/package.mask b/profiles/package.mask
index 37c0972e2c1d..03d49361722f 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -509,10 +509,6 @@ app-emulation/virtualbox-kvm
 # The symbol versioning "fix" breaks anything built with 3.0.0.
 =dev-libs/libassuan-3.0.1
 
-# Alfredo Tupone <[email protected]> (2024-06-09)
-# Not ready for testing
->=dev-ml/camlp4-5
-
 # Sam James <[email protected]> (2024-03-28)
 # Newer 5.4.x releases were signed by a potentially compromised upstream 
maintainer.
 # There is no evidence that these releases contain malicious code, but masked

Reply via email to