/[gentoo-x86]/kde-base/akonadi/akonadi-4.3.3.ebuild
Gentoo

Contents of /kde-base/akonadi/akonadi-4.3.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Jun 21 15:53:21 2010 UTC (9 years, 8 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Drop 4.3.3. Drop hppa keywords per bug #304363.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/kde-base/akonadi/akonadi-4.3.3.ebuild,v 1.6 2010/01/19 02:31:29 jer Exp $
4
5 EAPI="2"
6
7 if [[ ${PV} = *9999* ]]; then
8 KMNAME="kdepim"
9 eclass="kde4-meta"
10 else
11 KMNAME="kdepim-runtime"
12 eclass="kde4-base"
13 fi
14 inherit ${eclass}
15
16 DESCRIPTION="An extensible cross-desktop storage service for PIM data and meta data"
17 KEYWORDS="~alpha amd64 hppa ~ia64 ppc ppc64 ~sparc x86"
18 # add when libmapi becomes available with an ebuild
19 #exchange
20 IUSE="debug +semantic-desktop"
21
22 # add when libmapi becomes available with an ebuild
23 #exchange? ( net-libs/libmapi )
24 DEPEND="
25 dev-libs/boost
26 dev-libs/libxml2
27 dev-libs/libxslt
28 $(add_kdebase_dep kdelibs 'semantic-desktop?')
29 $(add_kdebase_dep kdepimlibs)
30 x11-misc/shared-mime-info
31 "
32 RDEPEND="${DEPEND}
33 >=app-office/akonadi-server-1.2.1
34 "
35
36 # @since 4.3 - blocks kdemaildir - no longer provided (it's in akonadi now)
37 add_blocker kdemaildir
38 add_blocker kdepim-kresources '<4.2.95'
39
40 [[ ${KMNAME} = "kdepim-runtime" ]] && S="${WORKDIR}/${KMNAME}-${PV}"
41
42 src_prepare() {
43 local pref="${S}"
44 [[ ${KMNAME} != "kdepim-runtime" ]] && pref="${S}/${PN}"
45 if ! use semantic-desktop; then
46 sed -i -e "s/add_subdirectory( nepomuktag )//"\
47 "${pref}"/resources/CMakeLists.txt\
48 || die "Failed to disable nepomuktag"
49 fi
50
51 ${eclass}_src_prepare
52 }
53
54 src_configure() {
55 # Set the dbus dirs, otherwise it searches in KDEDIR
56 mycmakeargs="${mycmakeargs}
57 -DAKONADI_DBUS_INTERFACES_INSTALL_DIR=/usr/share/dbus-1/interfaces
58 -DAKONADI_DBUS_SERVICES_INSTALL_DIR=/usr/share/dbus-1/services"
59 # replace with $(cmake-utils_use_with exchange OpenChange) when libmapi becomes available with an ebuild
60 mycmakeargs="${mycmakeargs}
61 -DWITH_LibXslt=ON
62 -DWITH_OpenChange=OFF
63 -DWITH_GNOKII=OFF
64 -DWITH_GLIB2=OFF
65 -DWITH_OpenSync=OFF
66 $(cmake-utils_use_with semantic-desktop Nepomuk)
67 $(cmake-utils_use_with semantic-desktop Soprano)"
68
69 ${eclass}_src_configure
70 }
71
72 src_test() {
73 # disable broken tests
74 sed -i -e '/kcalserializertest/ s/^/#DO_NOT_RUN_TEST /' \
75 "${S}"/plugins/tests/CMakeLists.txt || \
76 die "sed to disable kcalserializertest failed."
77 sed -i -e '/kresmigrationtest/ s/^/#DO_NOT_RUN_TEST /' \
78 "${S}"/migration/kres/tests/CMakeLists.txt || \
79 die "sed to disable kresmigrationtest failed."
80
81 ${eclass}_src_test
82 }
83
84 src_install() {
85 ${eclass}_src_install
86 # colliding files with nepomuk
87 rm -rf "${D}"/${KDEDIR}/share/apps/nepomuk/ontologies/n{m,c}o.{desktop,trig}
88 }

  ViewVC Help
Powered by ViewVC 1.1.20