Gentoo Archives: gentoo-commits

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