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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Dec 10 18:55:49 2009 UTC (10 years, 1 month ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Drop KDE SC-4.3.1.
(Portage version: 2.2_rc58/cvs/Linux i686, RepoMan options: --force)

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

  ViewVC Help
Powered by ViewVC 1.1.20