blob: 2d84dc04597b242b2afe7ee8064540940658ac32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit dune multiprocessing
DESCRIPTION="Collect profiling information"
HOMEPAGE="https://github.com/mirage/mirage-profile"
SRC_URI="https://github.com/mirage/mirage-profile/archive/v${PV}.tar.gz -> mirage-profile-${PV}.tar.gz"
S="${WORKDIR}/mirage-profile-${PV}"
LICENSE="BSD-2"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="ocamlopt unix" # xen
RDEPEND="
dev-ml/cstruct:=
dev-ml/lwt:=
dev-ml/ocplib-endian:=
unix? ( dev-ml/mtime:= )
"
# xen? (
# dev-ml/io-page[xen]
# dev-ml/mirage-xen
# dev-ml/mirage-xen-minios
# dev-ml/xenstore
# )
DEPEND="
${RDEPEND}
dev-ml/cstruct:=[ppx]
"
RESTRICT="test" # https://github.com/mirage/mirage-profile/issues/11
src_compile() {
local pkgs="mirage-profile"
# use xen && pkgs="${pkgs},mirage-profile-xen"
use unix && pkgs="${pkgs},mirage-profile-unix"
dune build -p "${pkgs}" -j $(makeopts_jobs) || die
}
src_install() {
dune_src_install mirage-profile
use unix && dune_src_install mirage-profile-unix
# use xen && dune_src_install mirage-profile-xen
}
|