Skip to content

Commit

Permalink
kde-apps/akonadi: Drop IUSE mysql,postgres,sqlite and akonadiserverrc
Browse files Browse the repository at this point in the history
Moved to kde-apps/akonadi-config. These flags were never ticking build
system arguments to begin with.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
  • Loading branch information
a17r committed Oct 12, 2024
1 parent 34c45e7 commit 8c9a705
Showing 1 changed file with 4 additions and 37 deletions.
41 changes: 4 additions & 37 deletions kde-apps/akonadi/akonadi-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand All @@ -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."
}

0 comments on commit 8c9a705

Please sign in to comment.