blob: 8db082a436e8f19825fd0a31d02d8ac8d6303267 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepimlibs/kdepimlibs-4.8.5.ebuild,v 1.5 2012/10/13 22:07:59 johu Exp $
EAPI=4
KDE_HANDBOOK="optional"
CPPUNIT_REQUIRED="optional"
KDE_SCM="git"
inherit kde4-base
DESCRIPTION="Common library for KDE PIM apps."
KEYWORDS="amd64 ~arm ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
LICENSE="LGPL-2.1"
IUSE="debug ldap prison semantic-desktop"
# some akonadi tests timeout, that probaly needs more work as its ~700 tests
RESTRICT="test"
DEPEND="
>=app-crypt/gpgme-1.1.6
>=dev-libs/boost-1.35.0-r5
dev-libs/libgpg-error
>=dev-libs/libical-0.43
dev-libs/cyrus-sasl
$(add_kdebase_dep kdelibs 'semantic-desktop=')
prison? ( media-libs/prison )
semantic-desktop? (
>=app-office/akonadi-server-1.7.0
media-libs/phonon
x11-misc/shared-mime-info
)
ldap? ( net-nds/openldap )
"
# boost is not linked to, but headers which include it are installed
# bug #418071
RDEPEND="${DEPEND}"
src_prepare() {
kde4-base_src_prepare
# Disable hardcoded checks
sed -r -e '/find_package\((Akonadi|SharedDesktopOntologies|Soprano|Nepomuk)/{/macro_optional_/!s/find/macro_optional_&/}' \
-e '/macro_log_feature\((Akonadi|SHAREDDESKTOPONTOLOGIES|Soprano|Nepomuk)_FOUND/s/ TRUE / FALSE /' \
-e '/add_subdirectory\((akonadi|mailtransport)/{/macro_optional_/!s/add/macro_optional_&/}' \
-i CMakeLists.txt || die
if ! use semantic-desktop; then
sed -e '/include(SopranoAddOntology)/s/^/#DISABLED /' \
-i CMakeLists.txt || die
# More reliable than -DBUILD_akonadi=OFF
rm -r akonadi mailtransport || die
fi
}
src_configure() {
mycmakeargs=(
$(cmake-utils_use_build handbook doc)
$(cmake-utils_use_with ldap)
$(cmake-utils_use_with semantic-desktop Akonadi)
$(cmake-utils_use_with semantic-desktop SharedDesktopOntologies)
$(cmake-utils_use_with semantic-desktop Soprano)
$(cmake-utils_use_with semantic-desktop Nepomuk)
$(cmake-utils_use !semantic-desktop KALARM_USE_KRESOURCES)
$(cmake-utils_use_with prison)
)
kde4-base_src_configure
}
|