Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/akonadi/
Date: Sat, 12 Aug 2017 11:59:35
Message-Id: 1502538865.1d7d116476c645aee82bed534ec118a9488934f2.asturm@gentoo
1 commit: 1d7d116476c645aee82bed534ec118a9488934f2
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 12 11:34:49 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 12 11:54:25 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d7d1164
7
8 kde-apps/akonadi: Block >=dev-db/mariadb-10.2 until fixed
9
10 Gentoo-bug: 626464
11 Package-Manager: Portage-2.3.6, Repoman-2.3.3
12
13 kde-apps/akonadi/akonadi-17.04.3-r1.ebuild | 124 +++++++++++++++++++++++++++++
14 1 file changed, 124 insertions(+)
15
16 diff --git a/kde-apps/akonadi/akonadi-17.04.3-r1.ebuild b/kde-apps/akonadi/akonadi-17.04.3-r1.ebuild
17 new file mode 100644
18 index 00000000000..f7c3ff53ff2
19 --- /dev/null
20 +++ b/kde-apps/akonadi/akonadi-17.04.3-r1.ebuild
21 @@ -0,0 +1,124 @@
22 +# Copyright 1999-2017 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +KDE_DESIGNERPLUGIN="true"
28 +KDE_TEST="forceoptional"
29 +VIRTUALDBUS_TEST="true"
30 +VIRTUALX_REQUIRED="test"
31 +inherit kde5
32 +
33 +DESCRIPTION="Storage service for PIM data and libraries for PIM apps"
34 +HOMEPAGE="https://pim.kde.org/akonadi"
35 +KEYWORDS="~amd64 ~arm ~x86"
36 +LICENSE="LGPL-2.1+"
37 +IUSE="+mysql postgres sqlite tools xml"
38 +
39 +REQUIRED_USE="|| ( sqlite mysql postgres ) test? ( tools )"
40 +
41 +# drop qtgui subslot operator when QT_MINIMAL >= 5.7.0
42 +COMMON_DEPEND="
43 + $(add_frameworks_dep kcompletion)
44 + $(add_frameworks_dep kconfig)
45 + $(add_frameworks_dep kconfigwidgets)
46 + $(add_frameworks_dep kcoreaddons)
47 + $(add_frameworks_dep kcrash)
48 + $(add_frameworks_dep kdbusaddons)
49 + $(add_frameworks_dep ki18n)
50 + $(add_frameworks_dep kiconthemes)
51 + $(add_frameworks_dep kio)
52 + $(add_frameworks_dep kitemmodels)
53 + $(add_frameworks_dep kitemviews)
54 + $(add_frameworks_dep kwidgetsaddons)
55 + $(add_frameworks_dep kwindowsystem)
56 + $(add_frameworks_dep kxmlgui)
57 + $(add_qt_dep qtdbus)
58 + $(add_qt_dep qtgui '' '' '5=')
59 + $(add_qt_dep qtnetwork)
60 + $(add_qt_dep qtsql 'mysql?,postgres?')
61 + $(add_qt_dep qtwidgets)
62 + $(add_qt_dep qtxml)
63 + x11-misc/shared-mime-info
64 + sqlite? ( dev-db/sqlite:3 )
65 + xml? ( dev-libs/libxml2 )
66 +"
67 +DEPEND="${COMMON_DEPEND}
68 + dev-libs/boost
69 + dev-libs/libxslt
70 + test? ( sys-apps/dbus )
71 +"
72 +RDEPEND="${COMMON_DEPEND}
73 + !kde-apps/kdepim-l10n
74 + !kde-apps/kdepimlibs
75 + mysql? (
76 + virtual/mysql
77 + !>=dev-db/mariadb-10.2
78 + )
79 + postgres? ( dev-db/postgresql )
80 +"
81 +
82 +# some akonadi tests time out, that probably needs more work as it's ~700 tests
83 +RESTRICT+=" test"
84 +
85 +PATCHES=( "${FILESDIR}/${PN}-17.03.80-mysql56-crash.patch" )
86 +
87 +pkg_setup() {
88 + # Set default storage backend in order: MySQL, SQLite PostgreSQL
89 + # reverse driver check to keep the order
90 + if use postgres; then
91 + DRIVER="QPSQL"
92 + AVAILABLE+=" ${DRIVER}"
93 + fi
94 +
95 + if use sqlite; then
96 + DRIVER="QSQLITE3"
97 + AVAILABLE+=" ${DRIVER}"
98 + fi
99 +
100 + if use mysql; then
101 + DRIVER="QMYSQL"
102 + AVAILABLE+=" ${DRIVER}"
103 + fi
104 +
105 + # Notify about MySQL is recommend by upstream
106 + if use sqlite || has_version "<${CATEGORY}/${P}[sqlite]"; then
107 + ewarn
108 + ewarn "We strongly recommend you change your Akonadi database backend to MySQL in your"
109 + ewarn "user configuration. This is the backend recommended by KDE upstream."
110 + ewarn "In particular, kde-apps/kmail-4.10 does not work properly with the sqlite"
111 + ewarn "backend anymore."
112 + ewarn "You can select the backend in your ~/.config/akonadi/akonadiserverrc."
113 + ewarn "Available drivers are:${AVAILABLE}"
114 + ewarn
115 + fi
116 +}
117 +
118 +src_configure() {
119 + local mycmakeargs=(
120 + -DAKONADI_BUILD_QSQLITE=$(usex sqlite)
121 + -DBUILD_TOOLS=$(usex tools)
122 + $(cmake-utils_use_find_package xml LibXml2)
123 + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
124 + )
125 +
126 + kde5_src_configure
127 +}
128 +
129 +src_install() {
130 + # Who knows, maybe it accidentally fixes our permission issues
131 + cat <<-EOF > "${T}"/akonadiserverrc
132 +[%General]
133 +Driver=${DRIVER}
134 +EOF
135 + insinto /usr/share/config/akonadi
136 + doins "${T}"/akonadiserverrc
137 +
138 + kde5_src_install
139 +}
140 +
141 +pkg_postinst() {
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 +}