diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2024-04-11 21:38:09 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2024-04-11 22:13:18 +0200 |
commit | a5793c5c5cdfe0b07def5656422166c867067c3c (patch) | |
tree | ec1093f3a6ec1f87f2501777fd8303e14e3dcf0e /kde-apps/akonadi | |
parent | dev-libs/kpublictransport: 24.02.2 version bump (diff) | |
download | gentoo-a5793c5c5cdfe0b07def5656422166c867067c3c.tar.gz gentoo-a5793c5c5cdfe0b07def5656422166c867067c3c.tar.bz2 gentoo-a5793c5c5cdfe0b07def5656422166c867067c3c.zip |
kde-apps/akonadi: 24.02.2 version bump
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-apps/akonadi')
-rw-r--r-- | kde-apps/akonadi/Manifest | 1 | ||||
-rw-r--r-- | kde-apps/akonadi/akonadi-24.02.2.ebuild | 98 |
2 files changed, 99 insertions, 0 deletions
diff --git a/kde-apps/akonadi/Manifest b/kde-apps/akonadi/Manifest index 4e17f42eaf38..9f2a29c47048 100644 --- a/kde-apps/akonadi/Manifest +++ b/kde-apps/akonadi/Manifest @@ -1,2 +1,3 @@ DIST akonadi-23.08.5.tar.xz 1662512 BLAKE2B 4e52e2b09e7f0376f7d63fdb590ba0372eb515b7f033d97d8fb76e1e85f9b598775936828d8c9b524807824d88cc9de93ea0efc445009e96f361f754ccd96d44 SHA512 3c1e851b519d8808b7be95b980d362eb525ec61ed06122be3795ba6b6a831aa80c77d799608686a49716a98a8bb9300e70f1c82cfe1de061cdc0af5ad9f30247 DIST akonadi-24.02.1.tar.xz 1690484 BLAKE2B 1f69b3e37440d923051fd1883991b5891314137975bda4e7a948d11bb827bc8b739381c19e9ecbc3aaa996882ae5a3cab4b26ebdf07b6d42cccee609008bc3e4 SHA512 cbdfa2ab5eac4fc0ef951c9fcb21cfdca5a1b0508454c6a89fcb53d66784a4005a2413d2599b82d318dc4f16b53ce7436cd57cc428db071d47e9dcd3ac36c3b8 +DIST akonadi-24.02.2.tar.xz 1691460 BLAKE2B 5926fb3c83cc717da21f3c8e484d0526d9e0cb44df88b9b79d975e193804fafab135b3a4a30ae6de9775ebfdccdf701fb1b187426d94c2befec0fee67dd0f4dc SHA512 ca59ba8d69f24296c8ae8f991310df0a5a96f5712924cc1bb6e35c6031d0209d65a91b45fa5c3509c4bc2c0242fc53afe5df69600c9152bec999239798b06067 diff --git a/kde-apps/akonadi/akonadi-24.02.2.ebuild b/kde-apps/akonadi/akonadi-24.02.2.ebuild new file mode 100644 index 000000000000..89843e028957 --- /dev/null +++ b/kde-apps/akonadi/akonadi-24.02.2.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2024 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=6.0.0 +QTMIN=6.6.2 +VIRTUALDBUS_TEST="true" +inherit ecm gear.kde.org + +DESCRIPTION="Storage service for PIM data and libraries for PIM apps" +HOMEPAGE="https://community.kde.org/KDE_PIM/akonadi" + +LICENSE="LGPL-2.1+" +SLOT="6" +KEYWORDS="~amd64" +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/qtbase-${QTMIN}:6[dbus,gui,mysql?,network,postgres?,sql,sqlite?,widgets,xml] + >=kde-frameworks/kconfig-${KFMIN}:6 + >=kde-frameworks/kconfigwidgets-${KFMIN}:6 + >=kde-frameworks/kcoreaddons-${KFMIN}:6 + >=kde-frameworks/kcrash-${KFMIN}:6 + >=kde-frameworks/ki18n-${KFMIN}:6 + >=kde-frameworks/kiconthemes-${KFMIN}:6 + >=kde-frameworks/kio-${KFMIN}:6 + >=kde-frameworks/kitemmodels-${KFMIN}:6 + >=kde-frameworks/kwidgetsaddons-${KFMIN}:6 + >=kde-frameworks/kxmlgui-${KFMIN}:6 + kaccounts? ( + kde-apps/kaccounts-integration:6 + >=net-libs/accounts-qt-1.16_p20220803[qt6] + ) + 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="QSQLITE" + use postgres && DRIVER="QPSQL" + use mysql && DRIVER="QMYSQL" + + ecm_pkg_setup +} + +src_configure() { + local mycmakeargs=( + $(cmake_use_find_package kaccounts AccountsQt6) + $(cmake_use_find_package kaccounts KAccounts6) + -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 +} + +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 " QSQLITE" + elog "${DRIVER} has been set as your default akonadi storage backend." +} |