# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit optfeature DESCRIPTION="Default Akonadi storage backend configuration" HOMEPAGE="https://userbase.kde.org/Tutorials/Shared_Database#Akonadi" S=${WORKDIR} LICENSE="public-domain" SLOT="0" KEYWORDS="~amd64 ~arm64" IUSE="+mysql postgres sqlite" REQUIRED_USE="|| ( mysql postgres sqlite )" RDEPEND=" ! "${T}"/akonadiserverrc || die [%General] Driver=${DRIVER} EOF insinto /usr/share/config/akonadi doins "${T}"/akonadiserverrc } 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 postgres && elog " QPSQL" elog "${DRIVER} has been set as your default akonadi storage backend." elog optfeature_header "The following optional database backends exist:" optfeature "SQLite backend support" "${CATEGORY}/${PN}[sqlite]" optfeature "MySQL backend support" "${CATEGORY}/${PN}[mysql]" optfeature "PostgreSQL backend support" "${CATEGORY}/${PN}[postgres]" }