commit: a05f6302d5aaa0a8eb5c42b2d6d3c930d6ba32f1 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Mon Jun 9 19:08:20 2025 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Mon Jun 9 19:08:20 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a05f6302
dev-ml/ocamlbuild: add 0.16.1 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> dev-ml/ocamlbuild/Manifest | 1 + dev-ml/ocamlbuild/ocamlbuild-0.16.1.ebuild | 57 ++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/dev-ml/ocamlbuild/Manifest b/dev-ml/ocamlbuild/Manifest index b7b5a2aa6149..3ac915a2da33 100644 --- a/dev-ml/ocamlbuild/Manifest +++ b/dev-ml/ocamlbuild/Manifest @@ -1 +1,2 @@ DIST ocamlbuild-0.15.0.tar.gz 201971 BLAKE2B 34c35c48d446d9c5297a9eabf6d4f134fbfdf01aad4eff15804ad7ecd9068527a70c2d9820ce3f7dba41aa88dda215e82074ad0c66df048c512afd60884ec7fd SHA512 c8311a9a78491bf759eb27153d6ba4692d27cd935759a145f96a8ba8f3c2e97cef54e7d654ed1c2c07c74f60482a4fef5224e26d0f04450e69cdcb9418c762d3 +DIST ocamlbuild-0.16.1.tar.gz 202416 BLAKE2B ffd0dbe8421e3ec5eabb3e6ee3844c3ad22d77d4eb0d5e34dd7a8be722b78c146fc5762c16047b7050d9ce547815a58cec6091a15e783e157b1d38c2c3787b5f SHA512 e918b9a0081f271e507c7a4f4d5d5a7cdf818ca51c52acec1bac85ddad5f6cad078cb3c568252fbcf5401c2d75323ed8f50fdd881bda1c9632840320408393ae diff --git a/dev-ml/ocamlbuild/ocamlbuild-0.16.1.ebuild b/dev-ml/ocamlbuild/ocamlbuild-0.16.1.ebuild new file mode 100644 index 000000000000..87cc7647f989 --- /dev/null +++ b/dev-ml/ocamlbuild/ocamlbuild-0.16.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Generic build tool with built-in rules for building OCaml library and programs" +HOMEPAGE="https://github.com/ocaml/ocamlbuild" +SRC_URI="https://github.com/ocaml/ocamlbuild/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1-with-linking-exception" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" +IUSE="+ocamlopt" + +RDEPEND=">=dev-lang/ocaml-4.02.3-r1:=[ocamlopt?]" +DEPEND="${RDEPEND} + dev-ml/findlib" + +QA_FLAGS_IGNORED='.*' + +PATCHES=( "${FILESDIR}"/${PN}-0.15.0-test.patch ) + +src_prepare() { + sed -i \ + -e "/package_exists/s:camlp4.macro:xxxxxx:" \ + -e "/package_exists/s:menhirLib:xxxxxx:" \ + testsuite/external.ml || die + default +} + +src_configure() { + emake -f configure.make Makefile.config \ + PREFIX="${EPREFIX}/usr" \ + BINDIR="${EPREFIX}/usr/bin" \ + LIBDIR="$(ocamlc -where)" \ + OCAML_NATIVE=$(usex ocamlopt true false) \ + OCAML_NATIVE_TOOLS=$(usex ocamlopt true false) \ + NATDYNLINK=$(usex ocamlopt true false) +} + +src_compile() { + emake src/ocamlbuild_config.cmo + default +} + +src_install() { + # OCaml generates textrels on 32-bit arches + if use arm || use ppc || use x86 ; then + export QA_TEXTRELS='.*' + fi + emake CHECK_IF_PREINSTALLED=false DESTDIR="${D}" install + dodoc Changes +} + +src_test() { + emake -j1 test +}