blob: 2769f9c4605b705ac382e23a04b7dd7a8c82d9b8 (
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
|
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Auto-Generated by cargo-ebuild 0.5.4
EAPI=8
inherit cargo git-r3
DESCRIPTION="Open source Virtual Machine Monitor (VMM) that runs on top of KVM"
HOMEPAGE="https://www.cloudhypervisor.org"
EGIT_REPO_URI="https://github.com/cloud-hypervisor/cloud-hypervisor.git"
LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 MIT MPL-2.0 Unicode-DFS-2016 Unlicense ZLIB"
SLOT="0"
# rust does not use *FLAGS from make.conf, silence portage warning
QA_FLAGS_IGNORED="usr/bin/.*"
src_unpack() {
git-r3_src_unpack
cargo_live_src_unpack
}
src_prepare() {
default
sed -i 's/strip = true/strip = false/' Cargo.toml || die
}
src_configure() {
cargo_gen_config
cargo_src_configure --frozen
}
src_test() {
# Integration tests require root
# https://github.com/cloud-hypervisor/cloud-hypervisor/issues/5388
cargo_src_test --bins
}
src_install() {
cargo_src_install
dodoc -r docs
}
|