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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Oct 8 13:38:27 2009 UTC (10 years, 6 months ago) by alexxy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
[kde-base] Drop KDE 4.3.0
(Portage version: 2.2_rc44/cvs/Linux x86_64)

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/akonadi/akonadi-4.3.0.ebuild,v 1.2 2009/08/03 23:30:42 wired 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 ~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 >=kde-base/kdelibs-${PV}:${SLOT}[kdeprefix=,semantic-desktop?]
29 >=kde-base/libkdepim-${PV}:${SLOT}[kdeprefix=]
30 x11-misc/shared-mime-info
31 "
32 # @since 4.3 - blocks kdemaildir - no longer provided (it's in akonadi now)
33 RDEPEND="${DEPEND}
34 !kdeprefix? (
35 !kde-base/kdemaildir[-kdeprefix]
36 !~kde-base/kdepim-kresources-4.2.3[-kdeprefix]
37 !~kde-base/kdepim-kresources-4.2.4[-kdeprefix]
38 !<kde-base/kdepim-kresources-4.2.95:4.3[-kdeprefix]
39 )
40 kdeprefix? (
41 !kde-base/kdemaildir:${SLOT}
42 !<kde-base/kdepim-kresources-4.2.95:${SLOT}[kdeprefix]
43 )
44 >=app-office/akonadi-server-1.2.0
45 "
46
47 [[ ${KMNAME} = "kdepim-runtime" ]] && S="${WORKDIR}/${KMNAME}-${PV}"
48
49 src_prepare() {
50 local pref="${S}"
51 [[ ${KMNAME} != "kdepim-runtime" ]] && pref="${S}/${PN}"
52 if ! use semantic-desktop; then
53 sed -i -e "s/add_subdirectory( nepomuktag )//"\
54 "${pref}"/resources/CMakeLists.txt\
55 || die "Failed to disable nepomuktag"
56 fi
57
58 ${eclass}_src_prepare
59 }
60
61 src_configure() {
62 # Set the dbus dirs, otherwise it searches in KDEDIR
63 mycmakeargs="${mycmakeargs}
64 -DAKONADI_DBUS_INTERFACES_INSTALL_DIR=/usr/share/dbus-1/interfaces
65 -DAKONADI_DBUS_SERVICES_INSTALL_DIR=/usr/share/dbus-1/services"
66 # replace with $(cmake-utils_use_with exchange OpenChange) when libmapi becomes available with an ebuild
67 mycmakeargs="${mycmakeargs}
68 -DWITH_LibXslt=ON
69 -DWITH_OpenChange=OFF
70 -DWITH_GNOKII=OFF
71 -DWITH_GLIB2=OFF
72 -DWITH_OpenSync=OFF
73 $(cmake-utils_use_with semantic-desktop Nepomuk)
74 $(cmake-utils_use_with semantic-desktop Soprano)"
75
76 ${eclass}_src_configure
77 }
78
79 src_test() {
80 # disable broken tests
81 sed -i -e '/kcalserializertest/ s/^/#DO_NOT_RUN_TEST /' \
82 "${S}"/plugins/tests/CMakeLists.txt || \
83 die "sed to disable kcalserializertest failed."
84 sed -i -e '/kresmigrationtest/ s/^/#DO_NOT_RUN_TEST /' \
85 "${S}"/migration/kres/tests/CMakeLists.txt || \
86 die "sed to disable kresmigrationtest failed."
87
88 ${eclass}_src_test
89 }
90
91 src_install() {
92 ${eclass}_src_install
93 # colliding files with nepomuk
94 rm -rf "${D}"/${KDEDIR}/share/apps/nepomuk/ontologies/n{m,c}o.{desktop,trig}
95 }

  ViewVC Help
Powered by ViewVC 1.1.20