aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2023-11-19 21:04:54 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2023-11-28 00:21:35 +0100
commite3ec38051602aaac57f8fd473f99dcdb4a60a199 (patch)
tree45725dc5a65f00fddc0640b1af323dc217527a1c /kde-frameworks/baloo
parentkde-frameworks/baloo: add 9999 (diff)
downloadkde-e3ec38051602aaac57f8fd473f99dcdb4a60a199.tar.gz
kde-e3ec38051602aaac57f8fd473f99dcdb4a60a199.tar.bz2
kde-e3ec38051602aaac57f8fd473f99dcdb4a60a199.zip
kde-frameworks/baloo: Add IUSE=kf6compat
Disables -DBUILD_INDEXER_SERVICE while adding dependency on ${PN}:6. See also: https://community.kde.org/Frameworks/6.0_Release_notes#Coinstallability Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-frameworks/baloo')
-rw-r--r--kde-frameworks/baloo/baloo-5.239.9999.ebuild15
-rw-r--r--kde-frameworks/baloo/metadata.xml3
2 files changed, 16 insertions, 2 deletions
diff --git a/kde-frameworks/baloo/baloo-5.239.9999.ebuild b/kde-frameworks/baloo/baloo-5.239.9999.ebuild
index 05ccdd7a3b..944edb132d 100644
--- a/kde-frameworks/baloo/baloo-5.239.9999.ebuild
+++ b/kde-frameworks/baloo/baloo-5.239.9999.ebuild
@@ -9,9 +9,10 @@ QTMIN=5.15.9
inherit ecm frameworks.kde.org
DESCRIPTION="Framework for searching and managing metadata"
+
LICENSE="LGPL-2+"
KEYWORDS=""
-IUSE=""
+IUSE="kf6compat"
RESTRICT="test" # bug 624250
@@ -31,4 +32,14 @@ DEPEND="
=kde-frameworks/kio-${PVCUT}*:5
=kde-frameworks/solid-${PVCUT}*:5
"
-RDEPEND="${DEPEND}"
+RDEPEND="${DEPEND}
+ kf6compat? ( kde-frameworks/baloo:6 )
+"
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_INDEXER_SERVICE=$(usex !kf6compat)
+ )
+
+ ecm_src_configure
+}
diff --git a/kde-frameworks/baloo/metadata.xml b/kde-frameworks/baloo/metadata.xml
index 506ecf605b..36ef35ac25 100644
--- a/kde-frameworks/baloo/metadata.xml
+++ b/kde-frameworks/baloo/metadata.xml
@@ -8,6 +8,9 @@
<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>
<slots>
<subslots>
Must only be used by packages that are known to use private parts of the Frameworks API.