From 1eb36fc5de4b81b7a5c8d4f1aafcc783b8b16c15 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sat, 12 Oct 2024 15:38:51 +0200 Subject: [PATCH] kde-apps/akonadi: Drop IUSE mysql,postgres,sqlite and akonadiserverrc Moved to kde-apps/akonadi-config. These flags were never ticking build system arguments to begin with. Signed-off-by: Andreas Sturmlechner --- kde-apps/akonadi/akonadi-9999.ebuild | 41 +++------------------------- 1 file changed, 4 insertions(+), 37 deletions(-) diff --git a/kde-apps/akonadi/akonadi-9999.ebuild b/kde-apps/akonadi/akonadi-9999.ebuild index acce748709b..b5c930ac736 100644 --- a/kde-apps/akonadi/akonadi-9999.ebuild +++ b/kde-apps/akonadi/akonadi-9999.ebuild @@ -17,16 +17,16 @@ HOMEPAGE="https://community.kde.org/KDE_PIM/akonadi" LICENSE="LGPL-2.1+" SLOT="6" KEYWORDS="" -IUSE="+mysql postgres sqlite tools +webengine xml" +IUSE="tools +webengine xml" -REQUIRED_USE="|| ( mysql postgres sqlite ) test? ( tools )" +REQUIRED_USE="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] + >=dev-qt/qtbase-${QTMIN}:6[dbus,gui,network,sql,widgets,xml] >=kde-frameworks/kconfig-${KFMIN}:6 >=kde-frameworks/kconfigwidgets-${KFMIN}:6 >=kde-frameworks/kcoreaddons-${KFMIN}:6 @@ -47,20 +47,9 @@ DEPEND="${COMMON_DEPEND} test? ( sys-apps/dbus ) " RDEPEND="${COMMON_DEPEND} - mysql? ( virtual/mysql ) - postgres? ( dev-db/postgresql ) + kde-apps/akonadi-config " -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=( -DBUILD_TOOLS=$(usex tools) @@ -71,25 +60,3 @@ src_configure() { 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." -}