From 2be5147f536e026270bdb408b64975c187fed5c0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 4 Jun 2021 12:28:19 -0700 Subject: [PATCH] app-text/calibre: support SIP v5 Bug: https://bugs.gentoo.org/793986 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Zac Medico --- app-text/calibre/calibre-5.16.1.ebuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app-text/calibre/calibre-5.16.1.ebuild b/app-text/calibre/calibre-5.16.1.ebuild index 3a057d5d38e0d..6f924cf6720a2 100644 --- a/app-text/calibre/calibre-5.16.1.ebuild +++ b/app-text/calibre/calibre-5.16.1.ebuild @@ -123,8 +123,12 @@ src_prepare() { # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface eapply \ "${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \ - "${FILESDIR}/${PN}-disable_plugins.patch" \ - "${WORKDIR}/${PN}-5.16.0-SIP-v4.patch" + "${FILESDIR}/${PN}-disable_plugins.patch" + + if ! has_version ">=dev-python/sip-5"; then + einfo "Applying SIP v4 patch because SIP v5 was not detected" + eapply "${WORKDIR}/${PN}-5.16.0-SIP-v4.patch" + fi eapply_user