public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:master commit in: dev-ml/metrics/
@ 2022-05-24 17:53 Haelwenn Monnier
  0 siblings, 0 replies; only message in thread
From: Haelwenn Monnier @ 2022-05-24 17:53 UTC (permalink / raw
  To: gentoo-commits

commit:     13231de9a16e936c1c611ee24a70ec06fb8ec31d
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue May 24 17:08:48 2022 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Tue May 24 17:36:40 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=13231de9

dev-ml/metrics: add 0.4.0

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 dev-ml/metrics/Manifest             |  1 +
 dev-ml/metrics/metrics-0.4.0.ebuild | 62 +++++++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/dev-ml/metrics/Manifest b/dev-ml/metrics/Manifest
index 1e0e9fa6c..6a06380d6 100644
--- a/dev-ml/metrics/Manifest
+++ b/dev-ml/metrics/Manifest
@@ -1 +1,2 @@
 DIST metrics-0.2.0.tbz 18159 BLAKE2B d480c9c9bd6600748bbe747ef3a10909cfc3e0d65039eadc28c6bc065d6bc1739833bcd3093ae146630a38168cb27df0484f7d6942a53a51f220a43aeebc22f6 SHA512 3f1a6cfbcc674409a7382446084c11c3646e6b380e4972306334e7fa0e558d256dadfd39f7f3acd32afffe78757f66ecefc1b7960ae366afe09397ba0bbdaf68
+DIST metrics-0.4.0.tbz 20551 BLAKE2B 30fb4d08164759f7d84590793917b04d70ce1403d64b5dd3aab2168710e61f5dfe643d0574ee10fcd3c1a659325cf16d8e0482651246e2da0c2dd28b67cae172 SHA512 00b271b74b7081b2fe202f402c9be6fef70da7241ee82a82b7a52329aad7c1d73c0eb7ee579a20a08c0e54f546351104dd822052624654ecbfc1c33d067656fa

diff --git a/dev-ml/metrics/metrics-0.4.0.ebuild b/dev-ml/metrics/metrics-0.4.0.ebuild
new file mode 100644
index 000000000..38c6d5aa7
--- /dev/null
+++ b/dev-ml/metrics/metrics-0.4.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+DESCRIPTION="Infrastructure to collect metrics from OCaml applications"
+HOMEPAGE="
+	https://github.com/mirage/metrics
+	https://opam.ocaml.org/packages/metrics/
+"
+SRC_URI="https://github.com/mirage/metrics/releases/download/v${PV}/${P}.tbz"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="influx lwt ocamlopt rusage test unix"
+
+RDEPEND="
+	>=dev-ml/fmt-0.8.7
+	influx? (
+		dev-ml/duration
+		>=dev-ml/lwt-2.4.7
+	)
+	lwt? (
+		>=dev-ml/lwt-2.4.7:=
+		dev-ml/logs
+	)
+	rusage? ( dev-ml/logs )
+	unix? (
+		>=dev-ml/uuidm-0.9.6:=
+		>=dev-ml/mtime-1.0.0:=
+		>=dev-ml/lwt-2.4.7:=
+		sci-visualization/gnuplot
+	)
+"
+DEPEND="
+	${RDEPEND}
+	test? ( dev-ml/alcotest )
+"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="test? ( lwt unix )"
+
+src_compile() {
+	local pkgs="metrics"
+	for u in influx lwt unix rusage ; do
+		if use ${u} ; then
+			pkgs="${pkgs},metrics-${u}"
+		fi
+	done
+	dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+	dune_src_install metrics
+	use influx && dune_src_install metrics-influx
+	use lwt && dune_src_install metrics-lwt
+	use rusage && dune_src_install metrics-rusage
+	use unix && dune_src_install metrics-unix
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-24 17:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-24 17:53 [gentoo-commits] repo/proj/guru:master commit in: dev-ml/metrics/ Haelwenn Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox