commit: 5af4e9734d346da9d8cd79d839ed1c9bb9693a26 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Fri Jul 18 19:12:56 2025 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Fri Jul 18 19:13:11 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5af4e973
dev-ml/camlp5: add 8.03.06 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> dev-ml/camlp5/Manifest | 1 + dev-ml/camlp5/camlp5-8.03.06.ebuild | 70 +++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) diff --git a/dev-ml/camlp5/Manifest b/dev-ml/camlp5/Manifest index a2aed16e65f9..310c8de868e9 100644 --- a/dev-ml/camlp5/Manifest +++ b/dev-ml/camlp5/Manifest @@ -1 +1,2 @@ DIST camlp5-8.03.01.tar.gz 1308092 BLAKE2B 1cb69bf407eb40c3646098431a4e6b3e35f78a5ce2880399c2034ce0a50ec5650c86216029a8521af97cbc92bf4be3d8b2180336c0decaddab30822232f1a2da SHA512 144ab15e18673fa485d08cf37c6ba69146db7db4be9e7031e202e0747d922e223396b83881b1d65cf27bedb2115d91e5eb62b5a22e2d57dda838013ebd398ff2 +DIST camlp5-8.03.06.tar.gz 1361806 BLAKE2B e1bdd28a7b7e64f3104d92fcc83ac8929e24dc09af7fd10c96dfba63ee3ebe7669346842e8805f1a039ea8e770c4c9fa853c51cbc38ed107fb933743993e1a4b SHA512 eb4b665e5e3360320a1d87e458385bf521bcb1a0f569637e6f9436aedd027fb264ad4c2b6b60f77aa32ea3c2670827573b6a02acf1ee3258a4734012647803fd diff --git a/dev-ml/camlp5/camlp5-8.03.06.ebuild b/dev-ml/camlp5/camlp5-8.03.06.ebuild new file mode 100644 index 000000000000..37266fea43e6 --- /dev/null +++ b/dev-ml/camlp5/camlp5-8.03.06.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit findlib vcs-clean + +DESCRIPTION="A preprocessor-pretty-printer of ocaml" +HOMEPAGE="https://camlp5.github.io/" +SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="doc +ocamlopt" + +RDEPEND=" + dev-ml/bos:= + dev-ml/camlp-streams:=[ocamlopt?] + dev-ml/fmt:=[ocamlopt?] + dev-ml/fpath:= + dev-ml/logs:=[ocamlopt?] + dev-ml/pcre2-ocaml:=[ocamlopt?] + dev-ml/re:=[ocamlopt?] + dev-ml/rresult:= +" +DEPEND="${RDEPEND}" + +src_prepare() { + egit_clean + default +} + +src_configure() { + ./configure \ + --strict \ + -prefix /usr \ + -bindir /usr/bin \ + -libdir /usr/$(get_libdir)/ocaml \ + -mandir /usr/share/man || die "configure failed" +} + +src_compile() { + ulimit -s 11530000 + emake out + if use ocamlopt; then + emake opt + emake opt.opt + fi +} + +src_test() { + ulimit -s 11530000 + emake bootstrap + if use ocamlopt; then + emake opt + emake opt.opt + fi +} + +src_install() { + emake DESTDIR="${ED}" install + # findlib support + insinto "$(ocamlfind printconf destdir)/${PN}" + doins etc/META + + dodoc -r doc/* + dodoc CHANGES DEVEL ICHANGES README.md UPGRADING MODE +}
