mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-ml/metrics: add 0.4.0
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
62
dev-ml/metrics/metrics-0.4.0.ebuild
Normal file
62
dev-ml/metrics/metrics-0.4.0.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user