summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kde-misc/kio-gdrive/kio-gdrive-1.2.7.ebuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/kde-misc/kio-gdrive/kio-gdrive-1.2.7.ebuild b/kde-misc/kio-gdrive/kio-gdrive-1.2.7.ebuild
index 1a713692b2a..a36f78862b1 100644
--- a/kde-misc/kio-gdrive/kio-gdrive-1.2.7.ebuild
+++ b/kde-misc/kio-gdrive/kio-gdrive-1.2.7.ebuild
@@ -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=(