commit: fb5a184be28b70f4664c1c74f9f6a2e30efe1681 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Sun Jun 8 19:48:10 2025 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Sun Jun 8 19:49:16 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb5a184b
dev-ml/logs: add 0.8.0 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> dev-ml/logs/Manifest | 1 + dev-ml/logs/logs-0.8.0.ebuild | 68 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/dev-ml/logs/Manifest b/dev-ml/logs/Manifest index bc580c5435c6..ff0173999fde 100644 --- a/dev-ml/logs/Manifest +++ b/dev-ml/logs/Manifest @@ -1 +1,2 @@ DIST logs-0.7.0.tbz 18458 BLAKE2B 091d1778166af0b67e17e932a775a73e31e5d167b94b1b378063a7112c21bf1ac935c7e51fe29bcc0121cd5e60ea46ed3c7381f4db5df400b463feedfbe89663 SHA512 657f66eeaf5788947a3ff4b2a179f7e192ad4ce086fc8968286066d4b83af476523b3befce50ee58abf2d9b8c8dc65573ba8ed62f9c5e7933db29a7fb769646a +DIST logs-0.8.0.tbz 19314 BLAKE2B 658f498aef61f42d2291b074fd317ace2db46c1b52c83a5757b3a7c1ed6b710ec20f6d56c5ade4e283b0d5760c43975e05572f935aff447c753be127eadf41b8 SHA512 c34c67b00d6a989a2660204ea70db8521736d6105f15d1ee0ec6287a662798fe5c4d47075c6e7c84f5d5372adb5af5c4c404f79db70d69140af5e0ebbea3b6a5 diff --git a/dev-ml/logs/logs-0.8.0.ebuild b/dev-ml/logs/logs-0.8.0.ebuild new file mode 100644 index 000000000000..9fc6a636aeaa --- /dev/null +++ b/dev-ml/logs/logs-0.8.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-ml/result:=[ocamlopt] + dev-lang/ocaml:=[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 +}
