diff options
Diffstat (limited to 'app-office/akonadi-server/akonadi-server-1.1.2.ebuild')
-rw-r--r-- | app-office/akonadi-server/akonadi-server-1.1.2.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/app-office/akonadi-server/akonadi-server-1.1.2.ebuild b/app-office/akonadi-server/akonadi-server-1.1.2.ebuild new file mode 100644 index 000000000000..4e626273933e --- /dev/null +++ b/app-office/akonadi-server/akonadi-server-1.1.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/akonadi-server/akonadi-server-1.1.2.ebuild,v 1.4 2009/09/06 01:58:44 jmbsvicetto Exp $ + +EAPI="2" + +inherit cmake-utils + +DESCRIPTION="The server part of Akonadi" +HOMEPAGE="http://pim.kde.org/akonadi" +SRC_URI="http://download.akonadi-project.org/${P/-server/}.tar.bz2" + +LICENSE="LGPL-2.1" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86" +SLOT="0" +IUSE="+mysql" + +RDEPEND=" + dev-libs/boost + >=x11-libs/qt-core-4.5.0:4 + >=x11-libs/qt-dbus-4.5.0:4 + >=x11-libs/qt-sql-4.5.0:4[mysql?] + x11-misc/shared-mime-info +" +DEPEND="${RDEPEND} + dev-libs/libxslt + >=kde-base/automoc-0.9.88 +" + +S="${WORKDIR}/${P/-server/}" + +src_prepare() { + # Don't check for mysql, avoid an automagic dep. + if ! use mysql; then + sed -e '/mysqld/s/find_program/#DONOTWANT &/' \ + -i "${S}"/server/CMakeLists.txt || die 'Sed failed.' + fi +} + +pkg_postinst() { + if ! use mysql; then + echo + ewarn "You have decided to build akonadi-server with mysql USE" + ewarn "flag disabled. Note, that this is the only supported" + ewarn "database backend, hence akonadi-server will not work." + echo + fi +} |