add corrected akonadi

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1435 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2009-07-31 20:21:50 +00:00
parent d4721e498c
commit d7cc3e99b2
2 changed files with 95 additions and 0 deletions

View File

@ -0,0 +1,2 @@
DIST kdepim-runtime-4.3.61.tar.lzma 672173 RMD160 fbc3842ace5ba6e4ee09778863035dbff6eab9b1 SHA1 f35d3095b0130fe004989dddf0a14123fa3c6b37 SHA256 68bb7f6e95f6b1e1ddbf007cf276752602453f134588af9b074e2cbfdd93bcdf
EBUILD akonadi-4.3.61.ebuild 2616 RMD160 68202110a9d1f71c78ba2673d1e760649347145b SHA1 6ec9ba6c7d517917185d4e77fe95ac4ed2676da9 SHA256 4f2154cb3e1693bfcb556099393e4452a59bdca615a92b3ae04ce01ffed02d00

View File

@ -0,0 +1,93 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
if [[ ${PV} = *9999* ]]; then
KMNAME="kdepim"
eclass="kde4-meta"
else
KMNAME="kdepim-runtime"
eclass="kde4-base"
fi
inherit ${eclass}
DESCRIPTION="An extensible cross-desktop storage service for PIM data and meta data"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
# add when libmapi becomes available with an ebuild
#exchange
IUSE="debug +semantic-desktop"
# add when libmapi becomes available with an ebuild
#exchange? ( net-libs/libmapi )
DEPEND="
dev-libs/boost
dev-libs/libxml2
dev-libs/libxslt
>=kde-base/kdelibs-${PV}:${SLOT}[kdeprefix=,semantic-desktop?]
>=kde-base/libkdepim-${PV}:${SLOT}[kdeprefix=]
x11-misc/shared-mime-info
"
# @since 4.3 - blocks kdemaildir - no longer provided (it's in akonadi now)
RDEPEND="${DEPEND}
!kdeprefix? (
!kde-base/kdemaildir[-kdeprefix]
!<kde-base/kdepim-kresources-4.2.95[-kdeprefix]
)
kdeprefix? (
!kde-base/kdemaildir:${SLOT}
!<kde-base/kdepim-kresources-4.2.95:${SLOT}[kdeprefix]
)
>=app-office/akonadi-server-1.2.0
"
[[ ${KMNAME} = "kdepim-runtime" ]] && S="${WORKDIR}/${KMNAME}-${PV}"
src_prepare() {
local pref="${S}"
[[ ${KMNAME} != "kdepim-runtime" ]] && pref="${S}/${PN}"
if ! use semantic-desktop; then
sed -i -e "s/add_subdirectory( nepomuktag )//"\
"${pref}"/resources/CMakeLists.txt\
|| die "Failed to disable nepomuktag"
fi
${eclass}_src_prepare
}
src_configure() {
# Set the dbus dirs, otherwise it searches in KDEDIR
mycmakeargs="${mycmakeargs}
-DAKONADI_DBUS_INTERFACES_INSTALL_DIR=/usr/share/dbus-1/interfaces
-DAKONADI_DBUS_SERVICES_INSTALL_DIR=/usr/share/dbus-1/services"
# replace with $(cmake-utils_use_with exchange OpenChange) when libmapi becomes available with an ebuild
mycmakeargs="${mycmakeargs}
-DWITH_LibXslt=ON
-DWITH_OpenChange=OFF
-DWITH_GNOKII=OFF
-DWITH_GLIB2=OFF
-DWITH_OpenSync=OFF
$(cmake-utils_use_with semantic-desktop Nepomuk)
$(cmake-utils_use_with semantic-desktop Soprano)"
${eclass}_src_configure
}
src_test() {
# disable broken tests
sed -i -e '/kcalserializertest/ s/^/#DO_NOT_RUN_TEST /' \
"${S}"/plugins/tests/CMakeLists.txt || \
die "sed to disable kcalserializertest failed."
sed -i -e '/kresmigrationtest/ s/^/#DO_NOT_RUN_TEST /' \
"${S}"/migration/kres/tests/CMakeLists.txt || \
die "sed to disable kresmigrationtest failed."
${eclass}_src_test
}
src_install() {
${eclass}_src_install
# colliding files with nepomuk
rm -rf "${D}"/${KDEDIR}/share/apps/nepomuk/ontologies/n{m,c}o.{desktop,trig}
}