Skip to content

Commit

Permalink
kde-apps/akonadi-config: Switch default to QSQLITE (IUSE sqlite)
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/936102
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
  • Loading branch information
a17r committed Nov 9, 2024
1 parent 1eb36fc commit c053739
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kde-apps/akonadi-config/akonadi-config-0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ S=${WORKDIR}
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="+mysql postgres sqlite"
IUSE="mysql postgres +sqlite"

REQUIRED_USE="|| ( mysql postgres sqlite )"

Expand Down Expand Up @@ -42,11 +42,11 @@ pkg_pretend() {
}

pkg_setup() {
# Set default storage backend in order: MySQL, SQLite, PostgreSQL
# Set default storage backend in order: SQLite, MySQL, PostgreSQL
# reverse driver check to keep the order
use postgres && DRIVER="QPSQL"
use sqlite && DRIVER="QSQLITE"
use mysql && DRIVER="QMYSQL"
use sqlite && DRIVER="QSQLITE"
}

src_unpack() { :; }
Expand All @@ -66,8 +66,8 @@ src_install() {
pkg_postinst() {
elog "You can select the storage backend in ~/.config/akonadi/akonadiserverrc."
elog "Available drivers (by enabled USE flags) are:"
use mysql && elog " QMYSQL"
use sqlite && elog " QSQLITE"
use mysql && elog " QMYSQL"
use postgres && elog " QPSQL"
elog "${DRIVER} has been set as your default akonadi storage backend."
elog
Expand Down

0 comments on commit c053739

Please sign in to comment.