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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Nov 8 23:06:02 2009 UTC (10 years, 3 months ago) by alexxy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Drop KDE 4.3.2
(Portage version: 2.2_rc49/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.2.ebuild,v 1.2 2009/10/17 09:00:15 abcd 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
91 ${eclass}_src_test
92 }
93
94 src_install() {
95 ${eclass}_src_install
96 # colliding files with nepomuk
97 rm -rf "${D}"/${KDEDIR}/share/apps/nepomuk/ontologies/n{m,c}o.{desktop,trig}
98 }

  ViewVC Help
Powered by ViewVC 1.1.20