From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SkEYA-0003W0-Kr for garchives@archives.gentoo.org; Thu, 28 Jun 2012 13:14:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8061BE01C5; Thu, 28 Jun 2012 13:14:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 43351E01C5 for ; Thu, 28 Jun 2012 13:14:14 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5906B1B4050 for ; Thu, 28 Jun 2012 13:14:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 16CEEE5432 for ; Thu, 28 Jun 2012 13:14:12 +0000 (UTC) From: "Andreas Hüttel" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Hüttel" Message-ID: <1340889220.392b33bf7f35d9e5f419c2343a49e961832d44fd.dilfridge@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: app-office/akonadi-server/ X-VCS-Repository: proj/kde X-VCS-Files: app-office/akonadi-server/akonadi-server-1.7.90.ebuild X-VCS-Directories: app-office/akonadi-server/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas Hüttel X-VCS-Revision: 392b33bf7f35d9e5f419c2343a49e961832d44fd X-VCS-Branch: master Date: Thu, 28 Jun 2012 13:14:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 716e146f-4fd3-423c-b4b2-3fac3683e225 X-Archives-Hash: 3c420b4b3d0e20083b5b430a6c201e85 commit: 392b33bf7f35d9e5f419c2343a49e961832d44fd Author: Andreas K. Huettel akhuettel de> AuthorDate: Thu Jun 28 13:13:11 2012 +0000 Commit: Andreas H=C3=BCttel gentoo org> CommitDate: Thu Jun 28 13:13:40 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/kde.git;a=3Dc= ommit;h=3D392b33bf [app-office/akonadi-server] Bump (Portage version: 2.2.0_alpha114/git/Linux x86_64, unsigned Manifest comm= it) --- .../akonadi-server/akonadi-server-1.7.90.ebuild | 104 ++++++++++++++= ++++++ 1 files changed, 104 insertions(+), 0 deletions(-) diff --git a/app-office/akonadi-server/akonadi-server-1.7.90.ebuild b/app= -office/akonadi-server/akonadi-server-1.7.90.ebuild new file mode 100644 index 0000000..23b1598 --- /dev/null +++ b/app-office/akonadi-server/akonadi-server-1.7.90.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/akonadi-server/akonadi-ser= ver-1.7.2.ebuild,v 1.5 2012/06/07 21:22:12 ranger Exp $ + +EAPI=3D4 + +inherit cmake-utils + +DESCRIPTION=3D"The server part of Akonadi" +HOMEPAGE=3D"http://pim.kde.org/akonadi" +SRC_URI=3D"mirror://kde/stable/${PN/-server/}/src/${P/-server/}.tar.bz2" + +LICENSE=3D"LGPL-2.1" +KEYWORDS=3D"~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +SLOT=3D"0" +IUSE=3D"mysql postgres +sqlite test" + +CDEPEND=3D" + dev-libs/boost + >=3Ddev-libs/soprano-2.6.51 + >=3Dx11-libs/qt-gui-4.5.0:4[dbus] + >=3Dx11-libs/qt-sql-4.5.0:4[mysql?,postgres?] + >=3Dx11-libs/qt-test-4.5.0:4 + x11-misc/shared-mime-info +" +DEPEND=3D"${CDEPEND} + dev-libs/libxslt + >=3Ddev-util/automoc-0.9.88 +" +RDEPEND=3D"${CDEPEND} + postgres? ( dev-db/postgresql-server ) +" + +REQUIRED_USE=3D"|| ( sqlite mysql postgres )" + +S=3D${WORKDIR}/${P/-server/} + +RESTRICT=3Dtest +# bug 401139 + +pkg_setup() { + # Set default storage backend in order: SQLite, MySQL, PostgreSQL + # reverse driver check to keep the order + if use postgres; then + DRIVER=3D"QPSQL" + AVAILABLE+=3D" ${DRIVER}" + fi + + if use mysql; then + DRIVER=3D"QMYSQL" + AVAILABLE+=3D" ${DRIVER}" + fi + + if use sqlite; then + DRIVER=3D"QSQLITE3" + AVAILABLE+=3D" ${DRIVER}" + fi + + # Notify about driver name change + if use sqlite && has_version "<=3D${CATEGORY}/${PN}-1.4.0[sqlite]"; the= n + ewarn + ewarn "SQLite driver name changed from QSQLITE to QSQLITE3." + ewarn "Please edit your ~/.config/akonadi/akonadiserverrc." + fi + + # Notify about MySQL not being default anymore + if ! use mysql && has_version "<=3D${CATEGORY}/${PN}-1.4.0[mysql]"; the= n + ewarn + ewarn "MySQL driver is not enabled by default in Gentoo anymore." + ewarn "If you intend to use it, please enable mysql USE flag and reins= tall" + ewarn "${CATEGORY}/${PN}." + ewarn "Otherwise select different driver in your ~/.config/akonadi/ako= nadiserverrc." + ewarn "Available drivers are:${AVAILABLE}" + fi +} + +src_configure() { + local mycmakeargs=3D( + -DAKONADI_USE_STRIGI_SEARCH=3DOFF + $(cmake-utils_use test AKONADI_BUILD_TESTS) + $(cmake-utils_use sqlite AKONADI_BUILD_QSQLITE) + ) + + cmake-utils_src_configure +} + +src_install() { + # Who knows, maybe it accidentally fixes our permission issues + cat <<-EOF > "${T}"/akonadiserverrc +[%General] +Driver=3D${DRIVER} +EOF + insinto /usr/share/config/akonadi + doins "${T}"/akonadiserverrc + + cmake-utils_src_install +} + +pkg_postinst() { + echo + elog "${DRIVER} has been set as your default akonadi storage backend." + elog "You can override it in your ~/.config/akonadi/akonadiserverrc." + elog "Available drivers are: ${AVAILABLE}" +}