You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/kde-base/kdepimlibs/kdepimlibs-4.7.3.ebuild

70 lines
2.0 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepimlibs/kdepimlibs-4.7.3.ebuild,v 1.1 2011/11/02 20:48:03 alexxy Exp $
EAPI=4
KDE_HANDBOOK="optional"
CPPUNIT_REQUIRED="optional"
KDE_SCM="git"
inherit kde4-base
DESCRIPTION="Common library for KDE PIM apps."
HOMEPAGE="http://www.kde.org/"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
LICENSE="LGPL-2.1"
IUSE="debug ldap semantic-desktop"
# some akonadi tests timeout, that probaly needs more work as its ~700 tests
RESTRICT="test"
COMMON_DEPEND="
>=app-crypt/gpgme-1.1.6
dev-libs/libgpg-error
>=dev-libs/libical-0.43
dev-libs/cyrus-sasl
$(add_kdebase_dep kdelibs 'semantic-desktop=')
semantic-desktop? (
>=app-office/akonadi-server-1.5.80
media-libs/phonon
x11-misc/shared-mime-info
)
ldap? ( net-nds/openldap )
"
DEPEND="${COMMON_DEPEND}
>=dev-libs/boost-1.35.0-r5
"
RDEPEND="${COMMON_DEPEND}"
src_prepare() {
kde4-base_src_prepare
# Disable hardcoded checks
sed -r -e '/find_package\((Akonadi|SharedDesktopOntologies|Soprano|Nepomuk)/{/macro_optional_/!s/find/macro_optional_&/}' \
-e '/macro_log_feature\((Akonadi|SHAREDDESKTOPONTOLOGIES|Soprano|Nepomuk)_FOUND/s/ TRUE / FALSE /' \
-e '/add_subdirectory\((akonadi|mailtransport)/{/macro_optional_/!s/add/macro_optional_&/}' \
-i CMakeLists.txt || die
if ! use semantic-desktop; then
sed -e '/include(SopranoAddOntology)/s/^/#DISABLED /' \
-i CMakeLists.txt || die
# More reliable than -DBUILD_akonadi=OFF
rm -r akonadi mailtransport || die
fi
}
src_configure() {
mycmakeargs=(
$(cmake-utils_use_build handbook doc)
$(cmake-utils_use_with ldap)
$(cmake-utils_use_with semantic-desktop Akonadi)
$(cmake-utils_use_with semantic-desktop SharedDesktopOntologies)
$(cmake-utils_use_with semantic-desktop Soprano)
$(cmake-utils_use_with semantic-desktop Nepomuk)
# $(cmake-utils_use_with prison)
-DWITH_Prison=NO
)
kde4-base_src_configure
}