diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2024-02-28 09:16:24 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2024-02-28 14:52:08 +0100 |
commit | 1e9f9ce51cb0d827134c25c590a4cb3e92363220 (patch) | |
tree | 29bc4ac8c1b9503616ccfa8ac5f12e0017d167a6 /kde-apps/libkgapi | |
parent | kde-frameworks/qqc2-desktop-style: 6.0.0 version bump (diff) | |
download | gentoo-1e9f9ce51cb0d827134c25c590a4cb3e92363220.tar.gz gentoo-1e9f9ce51cb0d827134c25c590a4cb3e92363220.tar.bz2 gentoo-1e9f9ce51cb0d827134c25c590a4cb3e92363220.zip |
kde-apps/libkgapi: Add IUSE kf6compat
Builds saslplugin only if flag is switched off, otherwise relies on
libkgapi:6 to provide the plugin.
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-apps/libkgapi')
-rw-r--r-- | kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild | 53 | ||||
-rw-r--r-- | kde-apps/libkgapi/metadata.xml | 3 |
2 files changed, 56 insertions, 0 deletions
diff --git a/kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild b/kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild new file mode 100644 index 000000000000..4bb890933a7f --- /dev/null +++ b/kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ECM_QTHELP="true" +ECM_TEST="true" +KFMIN=5.106.0 +QTMIN=5.15.9 +inherit ecm gear.kde.org + +DESCRIPTION="Library for accessing Google calendar and contact resources" +HOMEPAGE="https://api.kde.org/kdepim/libkgapi/html/index.html" + +LICENSE="LGPL-2.1+" +SLOT="5" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +IUSE="kf6compat" + +DEPEND=" + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtnetwork-${QTMIN}:5 + >=dev-qt/qtwidgets-${QTMIN}:5 + >=dev-qt/qtxml-${QTMIN}:5 + >=kde-frameworks/kcalendarcore-${KFMIN}:5 + >=kde-frameworks/kcontacts-${KFMIN}:5 + >=kde-frameworks/kwallet-${KFMIN}:5 + !kf6compat? ( dev-libs/cyrus-sasl:2 ) +" +RDEPEND="${DEPEND} + kf6compat? ( kde-apps/libkgapi:6 ) +" +BDEPEND=">=dev-qt/linguist-tools-${QTMIN}:5" + +src_configure() { + local mycmakeargs=( + -DBUILD_SASL_PLUGIN=$(usex !kf6compat) + ) + ecm_src_configure +} + +src_test() { + local myctestargs=( + # Both fail for multiple distros, see bug #832709 for more discussion + # Revisit at least once Qt 5.15.3 is in wider distribution (in Gentoo at least): + # contacts-contactcreatejobtest, contacts-contactmodifyjobtest + # More failures not specific to Gentoo, bug #852593, KDE-bug #440648: + # calendar-eventcreatejobtest, calendar-eventfetchjobtest, calendar-eventmodifyjobtest + -E "(contacts-contactcreatejobtest|contacts-contactmodifyjobtest|calendar-eventcreatejobtest|calendar-eventfetchjobtest|calendar-eventmodifyjobtest)" + ) + + ecm_src_test +} diff --git a/kde-apps/libkgapi/metadata.xml b/kde-apps/libkgapi/metadata.xml index d925f2439758..c45be7e6598a 100644 --- a/kde-apps/libkgapi/metadata.xml +++ b/kde-apps/libkgapi/metadata.xml @@ -8,4 +8,7 @@ <upstream> <bugs-to>https://bugs.kde.org/</bugs-to> </upstream> + <use> + <flag name="kf6compat">Disable components colliding with KF6, depend on KF6 components instead</flag> + </use> </pkgmetadata> |