blob: a739078ed845bf9c6bdac855387a8a4d2aa4eaaa (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
KDE_DOXYGEN=true
KDE_TEST=true
KMNAME=kdepimlibs
VIRTUALX_REQUIRED=test
inherit kde5
DESCRIPTION="Common akonadi libraries for PIM apps"
KEYWORDS="~amd64 ~x86"
LICENSE="LGPL-2.1"
IUSE="designer tools"
# some akonadi tests time out, that probably needs more work as it's ~700 tests
RESTRICT="test"
COMMON_DEPEND="
$(add_frameworks_dep kcompletion)
$(add_frameworks_dep kconfig)
$(add_frameworks_dep kconfigwidgets)
$(add_frameworks_dep kcoreaddons)
$(add_frameworks_dep kdbusaddons)
$(add_frameworks_dep kdesignerplugin)
$(add_frameworks_dep kguiaddons)
$(add_frameworks_dep ki18n)
$(add_frameworks_dep kiconthemes)
$(add_frameworks_dep kio)
$(add_frameworks_dep kitemmodels)
$(add_frameworks_dep kitemviews)
$(add_frameworks_dep kwidgetsaddons)
$(add_frameworks_dep kwindowsystem)
$(add_frameworks_dep kxmlgui)
$(add_kdeapps_dep akonadi)
dev-qt/qtdbus:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
dev-qt/qtsql:5
dev-qt/qtxml:5
dev-qt/qtwidgets:5
designer? ( dev-qt/designer:5 )
tools? ( dev-libs/libxml2 )
"
DEPEND="${COMMON_DEPEND}
dev-libs/boost
sys-devel/gettext
"
RDEPEND="${COMMON_DEPEND}
!kde-apps/kdepimlibs
"
REQUIRED_USE="test? ( tools )"
if [[ ${KDE_BUILD_TYPE} = live ]] ; then
S="${WORKDIR}/${P}/akonadi"
else
S="${WORKDIR}/${KMNAME}-${PV}/akonadi"
fi
src_prepare() {
epatch "${FILESDIR}/${PN}-15.11.80-testtools-optional.patch" \
"${FILESDIR}/${PN}-15.12.0-fix-possible-crash.patch"
if ! use tools ; then
sed -e "/add_subdirectory(xml)/ s/^/#DONT/" \
-i src/CMakeLists.txt || die
fi
kde5_src_prepare
}
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_find_package designer Qt5Designer)
$(cmake-utils_use_build tools)
$(cmake-utils_use_build test TESTING)
)
kde5_src_configure
}
|