kde-misc/kio-gdrive: Conditionalise backwards incompatible patch
authorAndreas Sturmlechner <asturm@gentoo.org>
Thu, 19 Mar 2020 15:41:11 +0000 (16:41 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 19 Mar 2020 15:42:46 +0000 (16:42 +0100)
Closes: https://bugs.gentoo.org/713360
Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
kde-misc/kio-gdrive/kio-gdrive-1.2.7.ebuild

index 1a713692b2a9a4c7f845d6a3c351d3aa061c8047..a36f78862b12d1d3966598497587444947ccec3b 100644 (file)
@@ -42,10 +42,13 @@ RDEPEND="${COMMON_DEPEND}
 
 DOCS=( README.md )
 
-PATCHES=(
-       "${FILESDIR}"/${PN}-1.2.6-refresh-credentials.patch
-       "${FILESDIR}"/${P}-kaccounts-integration-20.04.patch
-)
+PATCHES=( "${FILESDIR}"/${PN}-1.2.6-refresh-credentials.patch )
+
+src_prepare() {
+       has_version ">=kde-apps/kaccounts-providers-20.03.80" &&
+               PATCHES+=( "${FILESDIR}"/${P}-kaccounts-integration-20.04.patch )
+       ecm_src_prepare
+}
 
 src_configure() {
        local mycmakeargs=(