aboutsummaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorAlessandro Barbieri <lssndrbarbieri@gmail.com>2022-05-24 19:08:48 +0200
committerAlessandro Barbieri <lssndrbarbieri@gmail.com>2022-05-24 19:36:40 +0200
commit13231de9a16e936c1c611ee24a70ec06fb8ec31d (patch)
tree26b0f87f8ef3221ee209894d7d12eb2857d79549 /dev-ml
parentdev-ml/dns: add 6.2.2 (diff)
downloadguru-13231de9a16e936c1c611ee24a70ec06fb8ec31d.tar.gz
guru-13231de9a16e936c1c611ee24a70ec06fb8ec31d.tar.bz2
guru-13231de9a16e936c1c611ee24a70ec06fb8ec31d.zip
dev-ml/metrics: add 0.4.0
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/metrics/Manifest1
-rw-r--r--dev-ml/metrics/metrics-0.4.0.ebuild62
2 files changed, 63 insertions, 0 deletions
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
+}