Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-office/akonadi-server: ChangeLog akonadi-server-1.5.3.ebuild akonadi-server-1.5.2.ebuild
Date: Sat, 07 May 2011 10:19:41
Message-Id: 20110507101930.BCF6020054@flycatcher.gentoo.org
1 scarabeus 11/05/07 10:19:30
2
3 Modified: ChangeLog
4 Added: akonadi-server-1.5.3.ebuild
5 Removed: akonadi-server-1.5.2.ebuild
6 Log:
7 Version bum. Drop older. This release fixes annoying copying bug only.
8
9 (Portage version: 2.2.0_alpha31/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.52 app-office/akonadi-server/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/akonadi-server/ChangeLog?rev=1.52&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/akonadi-server/ChangeLog?rev=1.52&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/akonadi-server/ChangeLog?r1=1.51&r2=1.52
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-office/akonadi-server/ChangeLog,v
21 retrieving revision 1.51
22 retrieving revision 1.52
23 diff -u -r1.51 -r1.52
24 --- ChangeLog 7 Apr 2011 13:09:32 -0000 1.51
25 +++ ChangeLog 7 May 2011 10:19:30 -0000 1.52
26 @@ -1,6 +1,12 @@
27 # ChangeLog for app-office/akonadi-server
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-office/akonadi-server/ChangeLog,v 1.51 2011/04/07 13:09:32 scarabeus Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-office/akonadi-server/ChangeLog,v 1.52 2011/05/07 10:19:30 scarabeus Exp $
31 +
32 +*akonadi-server-1.5.3 (07 May 2011)
33 +
34 + 07 May 2011; Tomáš Chvátal <scarabeus@g.o>
35 + -akonadi-server-1.5.2.ebuild, +akonadi-server-1.5.3.ebuild:
36 + Version bum. Drop older. This release fixes annoying copying bug only.
37
38 07 Apr 2011; Tomáš Chvátal <scarabeus@g.o>
39 -files/akonadi-server-1.4.0-remove-sqlite-version-assert.patch,
40
41
42
43 1.1 app-office/akonadi-server/akonadi-server-1.5.3.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/akonadi-server/akonadi-server-1.5.3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/akonadi-server/akonadi-server-1.5.3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: akonadi-server-1.5.3.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-office/akonadi-server/akonadi-server-1.5.3.ebuild,v 1.1 2011/05/07 10:19:30 scarabeus Exp $
53
54 EAPI=4
55
56 inherit cmake-utils
57
58 DESCRIPTION="The server part of Akonadi"
59 HOMEPAGE="http://pim.kde.org/akonadi"
60 SRC_URI="http://download.akonadi-project.org/${P/-server/}.tar.bz2"
61
62 LICENSE="LGPL-2.1"
63 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
64 SLOT="0"
65 IUSE="mysql postgres +sqlite test"
66
67 CDEPEND="
68 dev-libs/boost
69 >=dev-libs/soprano-2.2
70 >=x11-libs/qt-gui-4.5.0:4[dbus]
71 >=x11-libs/qt-sql-4.5.0:4[mysql?,postgres?]
72 >=x11-libs/qt-test-4.5.0:4
73 x11-misc/shared-mime-info
74 "
75 DEPEND="${CDEPEND}
76 dev-libs/libxslt
77 >=dev-util/automoc-0.9.88
78 "
79 RDEPEND="${CDEPEND}
80 postgres? ( dev-db/postgresql-server )
81 "
82
83 REQUIRED_USE="|| ( sqlite mysql postgres )"
84
85 S=${WORKDIR}/${P/-server/}
86
87 pkg_setup() {
88 # Set default storage backend in order: SQLite, MySQL, PostgreSQL
89 if use sqlite; then
90 DRIVER="QSQLITE3"
91 AVAILABLE+=" ${driver}"
92 elif use mysql; then
93 DRIVER="QMYSQL"
94 AVAILABLE+=" ${driver}"
95 elif use postgres; then
96 DRIVER="QPSQL"
97 AVAILABLE+=" ${driver}"
98 fi
99
100 # Notify about driver name change
101 if use sqlite && has_version "<=${CATEGORY}/${PN}-1.4.0[sqlite]"; then
102 ewarn
103 ewarn "SQLite driver name changed from QSQLITE to QSQLITE3."
104 ewarn "Please edit your ~/.config/akonadi/akonadiserverrc."
105 fi
106
107 # Notify about MySQL not being default anymore
108 if ! use mysql && has_version "<=${CATEGORY}/${PN}-1.4.0[mysql]"; then
109 ewarn
110 ewarn "MySQL driver is not enabled by default in Gentoo anymore."
111 ewarn "If you intend to use it, please enable mysql USE flag and reinstall"
112 ewarn "${CATEGORY}/${PN}."
113 ewarn "Otherwise select different driver in your ~/.config/akonadi/akonadiserverrc."
114 ewarn "Available drivers are:${AVAILABLE}"
115 fi
116 }
117
118 src_configure() {
119 local mycmakeargs=(
120 "-DAKONADI_USE_STRIGI_SEARCH=OFF"
121 $(cmake-utils_use test AKONADI_BUILD_TESTS)
122 $(cmake-utils_use sqlite INSTALL_QSQLITE_IN_QT_PREFIX)
123 )
124
125 cmake-utils_src_configure
126 }
127
128 src_install() {
129 # Who knows, maybe it accidentally fixes our permission issues
130 cat <<-EOF > "${T}"/akonadiserverrc
131 [%General]
132 Driver=${DRIVER}
133 EOF
134 insinto /usr/share/config/akonadi
135 doins "${T}"/akonadiserverrc || die "doins failed"
136
137 cmake-utils_src_install
138 }
139
140 pkg_postinst() {
141 echo
142 elog "${DRIVER} has been set as your default akonadi storage backend."
143 elog "You can override it in your ~/.config/akonadi/akonadiserverrc."
144 elog "Available drivers are: ${AVAILABLE}"
145 }