summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2022-09-08 13:51:11 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2022-09-08 14:42:24 +0200
commit2e24cb1e6ecc3192b901e0864ee68bc6ae72425b (patch)
tree6a0945eb41da406c064b2dfef0d2e8539d813302 /kde-apps/akonadi
parentdev-libs/kpublictransport: 22.08.1 version bump (diff)
downloadgentoo-2e24cb1e6ecc3192b901e0864ee68bc6ae72425b.tar.gz
gentoo-2e24cb1e6ecc3192b901e0864ee68bc6ae72425b.tar.bz2
gentoo-2e24cb1e6ecc3192b901e0864ee68bc6ae72425b.zip
kde-apps/akonadi: 22.08.1 version bump
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-apps/akonadi')
-rw-r--r--kde-apps/akonadi/Manifest1
-rw-r--r--kde-apps/akonadi/akonadi-22.08.1.ebuild126
2 files changed, 127 insertions, 0 deletions
diff --git a/kde-apps/akonadi/Manifest b/kde-apps/akonadi/Manifest
index 2a481c8a8ae4..59b4a8e5c483 100644
--- a/kde-apps/akonadi/Manifest
+++ b/kde-apps/akonadi/Manifest
@@ -1,2 +1,3 @@
DIST akonadi-22.04.3.tar.xz 1626632 BLAKE2B 740220eada33b72f6243a11a2a018643835064e8103800ddbc408c8bafadbac936d7d0b56eb295411934f92943b1ee58b3df2a48c311178d53a79b68385cf201 SHA512 e625e8285db0f996dfdb9a5c4c5b2d6d321bd6f54c9d159d7c769038ac594d1fe16812f0004e46f40eba2ad1ba00ae6650857a1d5ea2ae9d01b0bf50880d092f
DIST akonadi-22.08.0.tar.xz 1630904 BLAKE2B bacb6556dc25d0255b310da055930dcc3f3f5942bfa539ad33dfbb8de1a9375bd9bf002fe27ce32107cd580e044fa75ae258a9b30f7548a71d5d07adf5bf48d9 SHA512 1d86c3a3e00551156ee5c040ce77d858ad3e845dc5784dda32f1e8dd234b5c918ab68f08a95004dda4c5e9e162501361a6800d9fd071c055126ffb01969bd351
+DIST akonadi-22.08.1.tar.xz 1631044 BLAKE2B c4fa49ae6e5cd1ebbc40379bdf834b344932c74d1cb96ccbdfe157740fbbaa75900c5d841ec8caab0fd594ded63a8bd9b7103a94e977fe9301227cb8a2b8dcea SHA512 cb98c8c73f09b8d143c7a5fbbada54636f0e3cf394f437e91470075f6d9ab4303894f9658eef4aa415049a30ee2555a90185471cdd2f3922f478ff47f6abc170
diff --git a/kde-apps/akonadi/akonadi-22.08.1.ebuild b/kde-apps/akonadi/akonadi-22.08.1.ebuild
new file mode 100644
index 000000000000..b884a11cd58f
--- /dev/null
+++ b/kde-apps/akonadi/akonadi-22.08.1.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_DESIGNERPLUGIN="true"
+ECM_QTHELP="true"
+ECM_TEST="forceoptional"
+KFMIN=5.96.0
+QTMIN=5.15.5
+VIRTUALDBUS_TEST="true"
+VIRTUALX_REQUIRED="test"
+inherit ecm gear.kde.org readme.gentoo-r1
+
+DESCRIPTION="Storage service for PIM data and libraries for PIM apps"
+HOMEPAGE="https://community.kde.org/KDE_PIM/akonadi"
+
+LICENSE="LGPL-2.1+"
+SLOT="5"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="+kaccounts +mysql postgres sqlite tools xml"
+
+REQUIRED_USE="|| ( mysql postgres sqlite ) test? ( tools )"
+
+# some akonadi tests time out, that probably needs more work as it's ~700 tests
+RESTRICT="test"
+
+COMMON_DEPEND="
+ app-arch/xz-utils
+ >=dev-qt/qtdbus-${QTMIN}:5
+ >=dev-qt/qtgui-${QTMIN}:5
+ >=dev-qt/qtnetwork-${QTMIN}:5
+ >=dev-qt/qtsql-${QTMIN}:5[mysql?,postgres?]
+ >=dev-qt/qtwidgets-${QTMIN}:5
+ >=dev-qt/qtxml-${QTMIN}:5
+ >=kde-frameworks/kconfig-${KFMIN}:5
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5
+ >=kde-frameworks/kcrash-${KFMIN}:5
+ >=kde-frameworks/ki18n-${KFMIN}:5
+ >=kde-frameworks/kiconthemes-${KFMIN}:5
+ >=kde-frameworks/kio-${KFMIN}:5
+ >=kde-frameworks/kitemmodels-${KFMIN}:5
+ >=kde-frameworks/kitemviews-${KFMIN}:5
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5
+ >=kde-frameworks/kwindowsystem-${KFMIN}:5
+ >=kde-frameworks/kxmlgui-${KFMIN}:5
+ kaccounts? (
+ >=kde-apps/kaccounts-integration-20.08.3:5
+ >=net-libs/accounts-qt-1.16
+ )
+ sqlite? (
+ dev-db/sqlite:3
+ >=dev-qt/qtsql-${QTMIN}:5=[sqlite]
+ )
+ xml? ( dev-libs/libxml2 )
+"
+DEPEND="${COMMON_DEPEND}
+ dev-libs/libxslt
+ test? ( sys-apps/dbus )
+"
+RDEPEND="${COMMON_DEPEND}
+ mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql )
+"
+
+PATCHES=( "${FILESDIR}/${PN}-21.03.80-mysql56-crash.patch" )
+
+pkg_setup() {
+ # Set default storage backend in order: MySQL, PostgreSQL, SQLite
+ # reverse driver check to keep the order
+ use sqlite && DRIVER="QSQLITE3"
+ use postgres && DRIVER="QPSQL"
+ use mysql && DRIVER="QMYSQL"
+
+ if use mysql && has_version "${CATEGORY}/${PN}[mysql]" && has_version "dev-db/mariadb"; then
+ ewarn
+ ewarn "Attention: Make sure to read README.gentoo after install."
+ ewarn
+ fi
+
+ if use sqlite || has_version "<${CATEGORY}/${P}[sqlite]"; then
+ ewarn "We strongly recommend you change your Akonadi database backend to"
+ ewarn "either MariaDB/MySQL or PostgreSQL in your user configuration."
+ ewarn "In particular, kde-apps/kmail does not work properly with the sqlite backend."
+ fi
+
+ ecm_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake_use_find_package kaccounts AccountsQt5)
+ $(cmake_use_find_package kaccounts KAccounts)
+ -DAKONADI_BUILD_QSQLITE=$(usex sqlite)
+ -DBUILD_TOOLS=$(usex tools)
+ $(cmake_use_find_package xml LibXml2)
+ )
+
+ ecm_src_configure
+}
+
+src_install() {
+ # Who knows, maybe it accidentally fixes our permission issues
+ cat <<-EOF > "${T}"/akonadiserverrc
+[%General]
+Driver=${DRIVER}
+EOF
+ insinto /usr/share/config/akonadi
+ doins "${T}"/akonadiserverrc
+
+ ecm_src_install
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ ecm_pkg_postinst
+ elog "You can select the storage backend in ~/.config/akonadi/akonadiserverrc."
+ elog "Available drivers are:"
+ use mysql && elog " QMYSQL"
+ use postgres && elog " QPSQL"
+ use sqlite && elog " QSQLITE3"
+ elog "${DRIVER} has been set as your default akonadi storage backend."
+ use mysql && elog
+ use mysql && FORCE_PRINT_ELOG=1 readme.gentoo_print_elog
+}