commit: e5b09c78d98268394e1a88a60ef67bf881f722f6
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 23 08:36:44 2026 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Feb 23 08:37:25 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5b09c78
dev-ml/camlp4: add 5.4_p1
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
dev-ml/camlp4/Manifest | 1 +
dev-ml/camlp4/camlp4-5.4_p1.ebuild | 58 ++++++++++++++++++++++++++++++++++++++
2 files changed, 59 insertions(+)
diff --git a/dev-ml/camlp4/Manifest b/dev-ml/camlp4/Manifest
index c32a71e9dd00..807bf30fa7fa 100644
--- a/dev-ml/camlp4/Manifest
+++ b/dev-ml/camlp4/Manifest
@@ -1,2 +1,3 @@
DIST camlp4-4.14_p1.tar.gz 641790 BLAKE2B
3e1054a924956e9c23d43fb4ef00cf99fe09f6d2a5eb4216cb3d5079a439159d36703b6ae268789d73e51e87ed0329531b25c2e846df03c4ae99b1a6403b84c3
SHA512
1853ae0465a1366cf73d7aa9de56c037ef3d4bb5b341fe3eeb39677b5b08bda44316634b93d5d35d917a98dff8eb40da974937f714ab609818e7d25f716de811
DIST camlp4-5.3_p1.tar.gz 653589 BLAKE2B
3fd9b063132a02081f3af79ebc02d6e7788ca60f3776a65b92d29faec1db4016d01b4a5b8556a818a39ab65d3aa4aadc281f5480f12fa36be9ca00f9323c6016
SHA512
30d0a1a52d5e359f16158e10b025e8d05fb7ccf1fa7f45cecd3584e5ba5ba995f85917680904c347437f3bdf6376ade9a666bbef7a337e5f41bc73ec1bb126d8
+DIST camlp4-5.4_p1.tar.gz 653021 BLAKE2B
03cf09a8ba26813ffc9c122dac85e91cc3c8203e74b6b5994b2f975bc999135844d954a6583cf96439d29810609001824d76910a5995bc6b5ab47864beeab07d
SHA512
4eddd761f3c81cfd4fbeec0eac661d572a2779d35f4a332d2d8a3c7ee80aeb0a0269535d7b1a2c708963ac03f9cf325f2fe219c4393823843c16c30c975afcc8
diff --git a/dev-ml/camlp4/camlp4-5.4_p1.ebuild
b/dev-ml/camlp4/camlp4-5.4_p1.ebuild
new file mode 100644
index 000000000000..04b2da202b88
--- /dev/null
+++ b/dev-ml/camlp4/camlp4-5.4_p1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2026 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"
+IUSE="+ocamlopt"
+
+RDEPEND="
+ =dev-lang/ocaml-5.4*:=[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
+}