summaryrefslogtreecommitdiff
blob: d0e322be802ebbac8d84e94cc1e4b9614dc95471 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim-kresources/kdepim-kresources-3.5.10.ebuild,v 1.9 2009/10/12 05:37:45 abcd Exp $

EAPI="2"
KMNAME=kdepim
KMMODULE=kresources
inherit kde-meta eutils

SRC_URI="${SRC_URI}
	mirror://gentoo/kdepim-3.5-patchset-06.tar.bz2"

DESCRIPTION="KDE PIM groupware plugin collection"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE=""
DEPEND=">=kde-base/libkmime-${PV}:${SLOT}
	>=kde-base/libkcal-${PV}:${SLOT}
	>=kde-base/libkpimexchange-${PV}:${SLOT}
	>=kde-base/libkdepim-${PV}:${SLOT}
	>=kde-apps/kaddressbook-${PV}:${SLOT}
	>=kde-base/kode-${PV}:${SLOT}
	>=kde-apps/ktnef-${PV}:${SLOT}
	dev-libs/libical
	>=app-crypt/gpgme-1.0.2"
RDEPEND="${DEPEND}"

# Tests fail due to a missing file (kde-features_parser.custom.h) which
# is not in the kdepim tarball.
RESTRICT="test"

KMCOPYLIB="
	libkmime libkmime
	libkcal libkcal
	libkpimexchange libkpimexchange
	libkdepim libkdepim
	libkabinterfaces kaddressbook/interfaces/"

KMEXTRACTONLY="
	korganizer/
	libkpimexchange/configure.in.in
	libkdepim/
	kmail/kmailicalIface.h
	libkpimexchange/
	libemailfunctions/
	libkmime/kmime_util.h"

KMCOMPILEONLY="
	knotes/
	libkcal/
	kaddressbook/common/"

PATCHES=( "${WORKDIR}/patches/kdepim-kresources-3.5_use-installed-kode.diff"
	"${FILESDIR}/${KMNAME}_${KMMODULE}-r897910.patch"
	"${FILESDIR}/${KMNAME}_korganizer-r893152.patch" )

src_configure() {
	export DO_NOT_COMPILE="knotes libkcal"
	kde-meta_src_configure
}

src_compile() {
	cd knotes/; make libknotesresources.la || die
	cd "${S}"/libkcal/libical/src/libical ; emake ical.h
	kde-meta_src_compile
}