@@ -, +, @@ --- app-text/calibre/calibre-5.16.1.ebuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- a/app-text/calibre/calibre-5.16.1.ebuild +++ a/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