blob: 03089dfd4bf4478d7801786384d0a526a78f3183 (
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
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
KDE_REQUIRED="never"
inherit kde4-base
if [[ ${KDE_BUILD_TYPE} != live ]]; then
KEYWORDS="amd64 x86"
SRC_URI="mirror://kde/unstable/networkmanager-qt/${PV}/src/networkmanager-qt-${PV}.tar.xz -> ${P}.tar.xz"
else
KEYWORDS=""
fi
DESCRIPTION="NetworkManager bindings for Qt"
HOMEPAGE="https://projects.kde.org/projects/extragear/libs/libnm-qt"
LICENSE="LGPL-2"
SLOT="0/1"
IUSE="debug doc modemmanager test"
RDEPEND="
dev-qt/qtcore:4
dev-qt/qtdbus:4
net-misc/mobile-broadband-provider-info
|| (
>=net-misc/networkmanager-0.9.8.4[consolekit]
>=net-misc/networkmanager-0.9.8.4[systemd]
)
modemmanager? ( >=net-libs/libmm-qt-1.0.0 )
"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )
"
S=${WORKDIR}/networkmanager-qt-${PV}
src_configure() {
local mycmakeargs=(
-DBUILD_EXAMPLES=OFF
$(cmake-utils_use_find_package doc Doxygen)
$(cmake-utils_use !modemmanager DISABLE_MODEMMANAGERQT)
$(cmake-utils_use !test DISABLE_TESTING)
)
kde4-base_src_configure
}
src_install() {
if use doc; then
{ cd "${BUILD_DIR}" && doxygen; } || die "Generating documentation failed"
HTML_DOCS=( "${BUILD_DIR}/doc/html/" )
fi
cmake-utils_src_install
}
|