commit: 783cfdbe0b88afc51668e6c51d8427d1979ea75e Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Sun Aug 24 12:51:43 2025 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Sun Aug 24 12:51:43 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=783cfdbe
dev-ml/logs: add 0.9.0 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> dev-ml/logs/Manifest | 1 + dev-ml/logs/logs-0.9.0.ebuild | 68 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/dev-ml/logs/Manifest b/dev-ml/logs/Manifest index ff0173999fde..986eca47db96 100644 --- a/dev-ml/logs/Manifest +++ b/dev-ml/logs/Manifest @@ -1,2 +1,3 @@ DIST logs-0.7.0.tbz 18458 BLAKE2B 091d1778166af0b67e17e932a775a73e31e5d167b94b1b378063a7112c21bf1ac935c7e51fe29bcc0121cd5e60ea46ed3c7381f4db5df400b463feedfbe89663 SHA512 657f66eeaf5788947a3ff4b2a179f7e192ad4ce086fc8968286066d4b83af476523b3befce50ee58abf2d9b8c8dc65573ba8ed62f9c5e7933db29a7fb769646a DIST logs-0.8.0.tbz 19314 BLAKE2B 658f498aef61f42d2291b074fd317ace2db46c1b52c83a5757b3a7c1ed6b710ec20f6d56c5ade4e283b0d5760c43975e05572f935aff447c753be127eadf41b8 SHA512 c34c67b00d6a989a2660204ea70db8521736d6105f15d1ee0ec6287a662798fe5c4d47075c6e7c84f5d5372adb5af5c4c404f79db70d69140af5e0ebbea3b6a5 +DIST logs-0.9.0.tbz 19795 BLAKE2B c45086fa59a3b6bb332e7da6615278a0f1bcb687f080aa0503c751b40ac0d5a2c8de0314c908496f6704c9b93bf13e92674d3fab6ed8c653136174e8c9a9aa58 SHA512 b75fb28e83f33461b06b5c9b60972c4a9a9a1599d637b4a0c7b1e86a87f34fe5361e817cb31f42ad7e7cbb822473b28fab9f58a02870eb189ebe88dae8e045ff diff --git a/dev-ml/logs/logs-0.9.0.ebuild b/dev-ml/logs/logs-0.9.0.ebuild new file mode 100644 index 000000000000..7bb7d3947a27 --- /dev/null +++ b/dev-ml/logs/logs-0.9.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit findlib + +DESCRIPTION="Logging infrastructure for OCaml" +HOMEPAGE="https://erratique.ch/software/logs https://github.com/dbuenzli/logs" +SRC_URI="https://erratique.ch/software/logs/releases/${P}.tbz" + +LICENSE="ISC" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" +IUSE="+fmt cli +lwt test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-lang/ocaml-4.14 + dev-ml/result:=[ocamlopt] + fmt? ( dev-ml/fmt:= ) + cli? ( dev-ml/cmdliner:=[ocamlopt] ) + lwt? ( dev-ml/lwt:= ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-ml/findlib + dev-ml/ocamlbuild + dev-ml/opam-installer + dev-ml/topkg + test? ( <=dev-ml/mtime-1.4.0 ) +" + +src_prepare() { + default + sed -i \ + -e "/test\/test_fmt/d" \ + -e "/test\/test_formatter/d" \ + -e "/test\/tool/d" \ + -e "/test\/test_lwt/d" \ + pkg/pkg.ml \ + || die +} + +src_compile() { + ocaml pkg/pkg.ml build \ + --with-js_of_ocaml-compiler false \ + --with-fmt $(usex fmt true false) \ + --with-cmdliner $(usex cli true false) \ + --with-lwt $(usex lwt true false) \ + --tests $(usex test true false) \ + --with-base-threads true \ + || die +} + +src_test() { + ocaml pkg/pkg.ml test || die +} + +src_install() { + opam-installer -i \ + --prefix="${ED}/usr" \ + --libdir="${D}/$(ocamlc -where)" \ + --docdir="${ED}/usr/share/doc/${PF}" \ + ${PN}.install || die + + einstalldocs +}
