Add songbird 1.9.3.
[overlay.git] / kde-base / kmail / kmail-4.3.1.ebuild
1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/kde-base/kmail/kmail-4.3.1.ebuild,v 1.1 2009/09/01 15:37:02 tampakrap Exp $
4
5 EAPI="2"
6
7 KMNAME="kdepim"
8 inherit kde4-meta
9
10 DESCRIPTION="KMail is the email component of Kontact, the integrated personal information manager of KDE."
11 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
12 IUSE="debug +handbook +semantic-desktop"
13
14 DEPEND="
15         >=kde-base/kdelibs-${PV}:${SLOT}[kdeprefix=,semantic-desktop?]
16         >=kde-base/libkdepim-${PV}:${SLOT}[kdeprefix=]
17         >=kde-base/libkleo-${PV}:${SLOT}[kdeprefix=]
18         >=kde-base/libkpgp-${PV}:${SLOT}[kdeprefix=]
19         >=kde-base/libksieve-${PV}:${SLOT}[kdeprefix=]
20         >=kde-base/mimelib-${PV}:${SLOT}[kdeprefix=]
21 "
22 RDEPEND="${DEPEND}
23         >=kde-base/kmailcvt-${PV}:${SLOT}[kdeprefix=]
24         semantic-desktop? ( >=kde-base/nepomuk-${PV}:${SLOT}[kdeprefix=] )
25 "
26
27 KMEXTRACTONLY="
28         kaddressbook/org.kde.KAddressbook.Core.xml
29         korganizer/org.kde.Korganizer.Calendar.xml
30         libkleo
31         libkpgp
32         libksieve
33         mimelib
34 "
35 KMEXTRA="
36         ksendemail/
37         plugins/kmail/
38 "
39 KMLOADLIBS="libkdepim"
40
41 PATCHES=( "${FILESDIR}/${PN}-4.1.72-fix.patch" "${FILESDIR}/remove-trust-requirement-for-encryption.patch" )
42
43 src_configure() {
44         mycmakeargs="${mycmakeargs}
45                 $(cmake-utils_use_with semantic-desktop Nepomuk)"
46
47         kde4-meta_src_configure
48 }
49
50 src_compile() {
51         # Bug #276377: kontact/ can build before kmail/, causing a dependency not to be built
52         # Upstream as KDE Bug #198807
53         # (setting via MAKEOPTS to trigger a repoman warning)
54         MAKEOPTS="${MAKEOPTS} -j1"
55         kde4-meta_src_compile
56 }
57
58 pkg_postinst() {
59         kde4-meta_pkg_postinst
60
61         if ! has_version kde-base/kdepim-kresources:${SLOT}; then
62                 echo
63                 elog "For groupware functionality, please install kde-base/kdepim-kresources:${SLOT}"
64                 echo
65         fi
66 }