app-text/kjots: Conditionally apply kf5bookmarks-5.69 patch for now
authorAndreas Sturmlechner <asturm@gentoo.org>
Thu, 23 Apr 2020 10:49:34 +0000 (12:49 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 23 Apr 2020 22:06:56 +0000 (00:06 +0200)
It breaks backwards compatiblity.

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
app-text/kjots/kjots-5.0.2-r1.ebuild

index 841544075ce3826aeea6680074f14f6e239a940f..d5159f4edb3b102ad379790699e7d03f026b453f 100644 (file)
@@ -46,4 +46,10 @@ RDEPEND="${DEPEND}
        !app-text/kjots:4
 "
 
-PATCHES=( "${FILESDIR}/${P}-kf5bookmarks-5.69.patch" ) # KDE-Bug 384000
+src_prepare() {
+       if has_version ">=kde-frameworks/kbookmarks-5.69"; then
+               PATCHES+=( "${FILESDIR}/${P}-kf5bookmarks-5.69.patch" ) # KDE-Bug 384000
+       fi
+
+       ecm_src_prepare
+}