blob: 16c5e7920872771fc1d54e12c9ee94365fe2af4b (
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
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit cmake-utils git-r3 systemd
DESCRIPTION="NetVirt is an open source network virtualization platform (NVP)"
HOMEPAGE="http://netvirt.org"
EGIT_REPO_URI="https://github.com/netvirt/netvirt.git"
EGIT_SUBMODULES=( '*' '-libconfig' )
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE="gui"
RDEPEND="sys-libs/libcap
dev-libs/libconfig
gui? ( dev-qt/qtgui:4
dev-qt/qtdeclarative:4 )"
DEPEND="${RDEPEND}
dev-util/scons
dev-util/cmake"
src_configure() {
local mycmakeargs=( -DWITH_GUI=$(usex gui) )
cmake-utils_src_configure
}
src_compile() {
cd tapcfg
scons
cd ..
cmake-utils_src_compile
}
src_install() {
cmake-utils_src_install
systemd_newunit "${FILESDIR}"/netvirt-agent.service netvirt-agent.service
newinitd "${FILESDIR}"/netvirt-agent.rc netvirt-agent
}
|