diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2024-06-13 17:46:23 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2024-06-13 18:49:56 +0200 |
commit | 7b2bc0a7c4603697726410f1346cb10c337ebaec (patch) | |
tree | f2d91c3bd876dd8845d0d7a62c985ce67c4b639d /kde-apps/akonadi | |
parent | dev-libs/kpublictransport: 24.05.1 version bump (diff) | |
download | gentoo-7b2bc0a7c4603697726410f1346cb10c337ebaec.tar.gz gentoo-7b2bc0a7c4603697726410f1346cb10c337ebaec.tar.bz2 gentoo-7b2bc0a7c4603697726410f1346cb10c337ebaec.zip |
kde-apps/akonadi: 24.05.1 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.05.1.ebuild | 97 |
2 files changed, 98 insertions, 0 deletions
diff --git a/kde-apps/akonadi/Manifest b/kde-apps/akonadi/Manifest index b8d8707da19e..12e29dabe836 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.05.0.tar.xz 1702500 BLAKE2B 02f710c70d34f474b74d2ab277b82f7a4c45b1c65f31b60ec7faabd99dbf147710e95435a036743fee1998da5fbfbb5c28070f0de47de24f72bd1f45cbf1e0f7 SHA512 e512dcf3d212c6227b031e30567b9f1c13a33222f56ae653f061486f5aa50abbb9d8929b4575470cd529840ff9199ff7811d3b41f29d841f29d4f8d43c3f0ac1 +DIST akonadi-24.05.1.tar.xz 1702864 BLAKE2B 48b339c44b8a3a160a4f9d2266f96f157ae3013bdbbc0b4f28a241a1f78ffce95e1724f4c4d47198cb8ef624dce9a78cf275a212796dc3f31f978c1d10d20b61 SHA512 acd42ec500fc12413811443d7c0b7658d2ca4b516678d98574cbfa5d5cc70a9ac164940cc81fedeaaf64301a67b4fdf477331974b71c85abc42ba750779ef575 diff --git a/kde-apps/akonadi/akonadi-24.05.1.ebuild b/kde-apps/akonadi/akonadi-24.05.1.ebuild new file mode 100644 index 000000000000..2807ad436d2e --- /dev/null +++ b/kde-apps/akonadi/akonadi-24.05.1.ebuild @@ -0,0 +1,97 @@ +# 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.3.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/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." +} |