Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-ml/mirage-profile/
Date: Sun, 03 Apr 2022 23:49:48
Message-Id: 1649029568.2af0b71b5b88f92fe10289f6d75e2628e5c60daa.Alessandro-Barbieri@gentoo
1 commit: 2af0b71b5b88f92fe10289f6d75e2628e5c60daa
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sun Apr 3 07:55:42 2022 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sun Apr 3 23:46:08 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2af0b71b
7
8 dev-ml/mirage-profile: initial import
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 dev-ml/mirage-profile/Manifest | 1 +
13 dev-ml/mirage-profile/metadata.xml | 14 ++++++++
14 .../mirage-profile/mirage-profile-0.9.0-r2.ebuild | 39 ++++++++++++++++++++++
15 3 files changed, 54 insertions(+)
16
17 diff --git a/dev-ml/mirage-profile/Manifest b/dev-ml/mirage-profile/Manifest
18 new file mode 100644
19 index 000000000..0add7acf4
20 --- /dev/null
21 +++ b/dev-ml/mirage-profile/Manifest
22 @@ -0,0 +1 @@
23 +DIST mirage-profile-0.9.0.tar.gz 11633 BLAKE2B d55b73be2df42230666577be11e1c9138cadc8e1d895a1b58cec342adfac165c76a405298cd24d2d21e6caad12b9593599ba4c62c459e51cf9be58409edfb425 SHA512 9a1ba91cfe1454aa85a6f1f72c934d413a8bc4f4793689f309abeca9be22c66c3c3213e8d360ea62813c019e064573cb250d835656c6302429b8e7cbdb39fa2c
24
25 diff --git a/dev-ml/mirage-profile/metadata.xml b/dev-ml/mirage-profile/metadata.xml
26 new file mode 100644
27 index 000000000..7f44c78f2
28 --- /dev/null
29 +++ b/dev-ml/mirage-profile/metadata.xml
30 @@ -0,0 +1,14 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <maintainer type="person">
35 + <email>lssndrbarbieri@×××××.com</email>
36 + <name>Alessandro Barbieri</name>
37 + </maintainer>
38 + <upstream>
39 + <remote-id type="github">mirage/mirage-profile</remote-id>
40 + </upstream>
41 + <use>
42 + <flag name="xen">Adds a Xen MirageOS backend collector</flag>
43 + </use>
44 +</pkgmetadata>
45
46 diff --git a/dev-ml/mirage-profile/mirage-profile-0.9.0-r2.ebuild b/dev-ml/mirage-profile/mirage-profile-0.9.0-r2.ebuild
47 new file mode 100644
48 index 000000000..b5f8080af
49 --- /dev/null
50 +++ b/dev-ml/mirage-profile/mirage-profile-0.9.0-r2.ebuild
51 @@ -0,0 +1,39 @@
52 +# Copyright 1999-2022 Gentoo Authors
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=8
56 +
57 +inherit dune multiprocessing
58 +
59 +DESCRIPTION="Collect profiling information"
60 +HOMEPAGE="https://github.com/mirage/mirage-profile"
61 +SRC_URI="https://github.com/mirage/mirage-profile/archive/v${PV}.tar.gz -> mirage-profile-${PV}.tar.gz"
62 +S="${WORKDIR}/mirage-profile-${PV}"
63 +
64 +LICENSE="BSD-2"
65 +SLOT="0/${PV}"
66 +KEYWORDS="~amd64"
67 +IUSE="ocamlopt xen"
68 +
69 +RDEPEND="
70 + dev-ml/mtime
71 + dev-ml/io-page
72 + dev-ml/ocplib-endian
73 +
74 + xen? (
75 + dev-ml/mirage-xen
76 + dev-ml/xenstore
77 + )
78 +"
79 +DEPEND="${RDEPEND}"
80 +
81 +src_compile() {
82 + local pkgs="mirage-profile-unix,mirage-profile"
83 + use xen && pkgs="${pkgs},mirage-profile-xen"
84 + dune build --only-packages "${pkgs}" -j $(makeopts_jobs) --profile release || die
85 +}
86 +
87 +src_install() {
88 + dune_src_install mirage-profile mirage-profile-unix
89 + use xen && dune_src_install mirage-profile-xen
90 +}