commit:     e7b48347e9cabbbb8233562f3b182cff662dd8c3
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 23 10:49:34 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Apr 23 22:06:56 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7b48347

app-text/kjots: Conditionally apply kf5bookmarks-5.69 patch for now

It breaks backwards compatiblity.

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 app-text/kjots/kjots-5.0.2-r1.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/app-text/kjots/kjots-5.0.2-r1.ebuild 
b/app-text/kjots/kjots-5.0.2-r1.ebuild
index 841544075ce..d5159f4edb3 100644
--- a/app-text/kjots/kjots-5.0.2-r1.ebuild
+++ b/app-text/kjots/kjots-5.0.2-r1.ebuild
@@ -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
+}

Reply via email to