mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-16 02:23:16 -04:00
dev-ml/metrics: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
dev-ml/metrics/Manifest
Normal file
1
dev-ml/metrics/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST metrics-0.2.0.tbz 18159 BLAKE2B d480c9c9bd6600748bbe747ef3a10909cfc3e0d65039eadc28c6bc065d6bc1739833bcd3093ae146630a38168cb27df0484f7d6942a53a51f220a43aeebc22f6 SHA512 3f1a6cfbcc674409a7382446084c11c3646e6b380e4972306334e7fa0e558d256dadfd39f7f3acd32afffe78757f66ecefc1b7960ae366afe09397ba0bbdaf68
|
||||
18
dev-ml/metrics/metadata.xml
Normal file
18
dev-ml/metrics/metadata.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<description>co-maintainers welcome</description>
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">mirage/metrics</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="influx">Influx reporter for the Metrics library</flag>
|
||||
<flag name="lwt">Lwt backend for the Metrics library</flag>
|
||||
<flag name="rusage">Resource usage (getrusage) sources for the Metrics library</flag>
|
||||
<flag name="unix">Unix backend for the Metrics library</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
58
dev-ml/metrics/metrics-0.2.0.ebuild
Normal file
58
dev-ml/metrics/metrics-0.2.0.ebuild
Normal file
@@ -0,0 +1,58 @@
|
||||
# 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"
|
||||
SRC_URI="https://github.com/mirage/metrics/releases/download/${PV}/${P}.tbz"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="influx lwt ocamlopt rusage test unix"
|
||||
|
||||
RDEPEND="
|
||||
dev-ml/fmt
|
||||
influx? (
|
||||
dev-ml/duration
|
||||
dev-ml/lwt
|
||||
)
|
||||
lwt? (
|
||||
dev-ml/lwt
|
||||
dev-ml/logs
|
||||
)
|
||||
rusage? ( dev-ml/logs )
|
||||
unix? (
|
||||
dev-ml/uuidm
|
||||
dev-ml/mtime
|
||||
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 --only-packages "${pkgs}" -j $(makeopts_jobs) --profile release || 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