Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-misc/kio-gdrive/files/, kde-misc/kio-gdrive/
Date: Thu, 23 Apr 2020 22:07:33
Message-Id: 1587679617.c811e0a313e23ee2f734525583f701e04b1a55c6.asturm@gentoo
1 commit: c811e0a313e23ee2f734525583f701e04b1a55c6
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 23 11:44:57 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 23 22:06:57 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c811e0a3
7
8 kde-misc/kio-gdrive: Drop 1.2.7 (r0)
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 ...-gdrive-1.2.7-kaccounts-integration-20.04.patch | 97 ----------------------
14 kde-misc/kio-gdrive/kio-gdrive-1.2.7.ebuild | 58 -------------
15 2 files changed, 155 deletions(-)
16
17 diff --git a/kde-misc/kio-gdrive/files/kio-gdrive-1.2.7-kaccounts-integration-20.04.patch b/kde-misc/kio-gdrive/files/kio-gdrive-1.2.7-kaccounts-integration-20.04.patch
18 deleted file mode 100644
19 index bc6e7536e82..00000000000
20 --- a/kde-misc/kio-gdrive/files/kio-gdrive-1.2.7-kaccounts-integration-20.04.patch
21 +++ /dev/null
22 @@ -1,97 +0,0 @@
23 -From 088fe1964fcf7150eb85dc66cbe3670489729f15 Mon Sep 17 00:00:00 2001
24 -From: Nicolas Fella <nicolas.fella@×××.de>
25 -Date: Mon, 16 Mar 2020 10:39:08 +0100
26 -Subject: Adapt to new KAccounts plugin system
27 -
28 -Summary: KAccounts was ported from QPluginLoader to KPluginLoader in D27633. Adapt the KAccounts plugin to stay compatible
29 -
30 -Test Plan: Added a google account. Got a notification that my drive can now be used
31 -
32 -Reviewers: #kio_gdrive, elvisangelaccio
33 -
34 -Reviewed By: #kio_gdrive, elvisangelaccio
35 -
36 -Differential Revision: https://phabricator.kde.org/D27656
37 ----
38 - kaccounts/CMakeLists.txt | 1 +
39 - kaccounts/kaccountsplugin.cpp | 10 ++++++++--
40 - kaccounts/kaccountsplugin.h | 5 +----
41 - kaccounts/kaccountsplugin.json | 12 ++++++++++++
42 - 4 files changed, 22 insertions(+), 6 deletions(-)
43 - create mode 100644 kaccounts/kaccountsplugin.json
44 -
45 -diff --git a/kaccounts/CMakeLists.txt b/kaccounts/CMakeLists.txt
46 -index 2a7e796..bb26513 100644
47 ---- a/kaccounts/CMakeLists.txt
48 -+++ b/kaccounts/CMakeLists.txt
49 -@@ -4,6 +4,7 @@ find_package(Intltool REQUIRED)
50 - kaccounts_add_service(${CMAKE_CURRENT_SOURCE_DIR}/google-drive.service.in)
51 -
52 - kcoreaddons_add_plugin(kaccounts_gdrive
53 -+ JSON kaccountsplugin.json
54 - SOURCES kaccountsplugin.cpp
55 - INSTALL_NAMESPACE kaccounts/daemonplugins)
56 -
57 -diff --git a/kaccounts/kaccountsplugin.cpp b/kaccounts/kaccountsplugin.cpp
58 -index 5499f13..3e6fb7c 100644
59 ---- a/kaccounts/kaccountsplugin.cpp
60 -+++ b/kaccounts/kaccountsplugin.cpp
61 -@@ -25,8 +25,12 @@
62 - #include <KNotification>
63 - #include <KRun>
64 -
65 --GoogleDrivePlugin::GoogleDrivePlugin(QObject *parent)
66 -- : KAccountsDPlugin(parent)
67 -+#include <KPluginFactory>
68 -+
69 -+K_PLUGIN_CLASS_WITH_JSON(GoogleDrivePlugin, "kaccountsplugin.json")
70 -+
71 -+GoogleDrivePlugin::GoogleDrivePlugin(QObject *parent, const QVariantList &args)
72 -+ : KAccountsDPlugin(parent, args)
73 - {
74 - }
75 -
76 -@@ -72,3 +76,5 @@ void GoogleDrivePlugin::onServiceDisabled(const Accounts::AccountId accountId, c
77 - Q_UNUSED(accountId)
78 - Q_UNUSED(service)
79 - }
80 -+
81 -+#include "kaccountsplugin.moc"
82 -diff --git a/kaccounts/kaccountsplugin.h b/kaccounts/kaccountsplugin.h
83 -index 82ae739..8613041 100644
84 ---- a/kaccounts/kaccountsplugin.h
85 -+++ b/kaccounts/kaccountsplugin.h
86 -@@ -24,11 +24,8 @@
87 - class GoogleDrivePlugin : public KAccountsDPlugin
88 - {
89 - Q_OBJECT
90 -- Q_PLUGIN_METADATA(IID "org.kde.kaccounts.DPlugin")
91 -- Q_INTERFACES(KAccountsDPlugin)
92 --
93 - public:
94 -- GoogleDrivePlugin(QObject *parent = nullptr);
95 -+ explicit GoogleDrivePlugin(QObject *parent, const QVariantList &args);
96 -
97 - public slots:
98 - void onAccountCreated(const Accounts::AccountId accountId, const Accounts::ServiceList &serviceList) override;
99 -diff --git a/kaccounts/kaccountsplugin.json b/kaccounts/kaccountsplugin.json
100 -new file mode 100644
101 -index 0000000..89e8142
102 ---- /dev/null
103 -+++ b/kaccounts/kaccountsplugin.json
104 -@@ -0,0 +1,12 @@
105 -+{
106 -+ "KPlugin": {
107 -+ "Description": "Integrate KIO gdrive",
108 -+ "EnabledByDefault": true,
109 -+ "Icon": "system-file-manager",
110 -+ "Id": "kaccounts_kio_gdrive",
111 -+ "License": "GPL",
112 -+ "Name": "KIO gdrive",
113 -+ "Version": "0.1"
114 -+ }
115 -+}
116 -+
117 ---
118 -cgit v1.1
119 -
120
121 diff --git a/kde-misc/kio-gdrive/kio-gdrive-1.2.7.ebuild b/kde-misc/kio-gdrive/kio-gdrive-1.2.7.ebuild
122 deleted file mode 100644
123 index a36f78862b1..00000000000
124 --- a/kde-misc/kio-gdrive/kio-gdrive-1.2.7.ebuild
125 +++ /dev/null
126 @@ -1,58 +0,0 @@
127 -# Copyright 1999-2020 Gentoo Authors
128 -# Distributed under the terms of the GNU General Public License v2
129 -
130 -EAPI=7
131 -
132 -ECM_HANDBOOK="forceoptional"
133 -ECM_TEST="optional"
134 -KFMIN=5.60.0
135 -QTMIN=5.12.3
136 -inherit ecm kde.org
137 -
138 -DESCRIPTION="KIO Slave for Google Drive service"
139 -HOMEPAGE="https://phabricator.kde.org/project/profile/72/"
140 -
141 -if [[ ${KDE_BUILD_TYPE} != live ]] ; then
142 - SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz"
143 - KEYWORDS="amd64 ~arm64 x86"
144 -fi
145 -
146 -LICENSE="GPL-2+"
147 -SLOT="5"
148 -IUSE="+kaccounts"
149 -
150 -BDEPEND="dev-util/intltool"
151 -COMMON_DEPEND="
152 - >=dev-qt/qtwidgets-${QTMIN}:5
153 - >=kde-apps/libkgapi-19.08.0:5
154 - >=kde-frameworks/kcoreaddons-${KFMIN}:5
155 - >=kde-frameworks/ki18n-${KFMIN}:5
156 - >=kde-frameworks/kio-${KFMIN}:5
157 - >=kde-frameworks/knotifications-${KFMIN}:5
158 - kaccounts? ( kde-apps/kaccounts-integration:5 )
159 - !kaccounts? ( dev-libs/qtkeychain:=[qt5(+)] )
160 -"
161 -DEPEND="${COMMON_DEPEND}
162 - >=dev-qt/qtgui-${QTMIN}:5
163 - >=dev-qt/qtnetwork-${QTMIN}:5
164 -"
165 -RDEPEND="${COMMON_DEPEND}
166 - kaccounts? ( >=kde-apps/kaccounts-providers-19.08.0:5 )
167 -"
168 -
169 -DOCS=( README.md )
170 -
171 -PATCHES=( "${FILESDIR}"/${PN}-1.2.6-refresh-credentials.patch )
172 -
173 -src_prepare() {
174 - has_version ">=kde-apps/kaccounts-providers-20.03.80" &&
175 - PATCHES+=( "${FILESDIR}"/${P}-kaccounts-integration-20.04.patch )
176 - ecm_src_prepare
177 -}
178 -
179 -src_configure() {
180 - local mycmakeargs=(
181 - $(cmake_use_find_package kaccounts KAccounts)
182 - )
183 - ecm_src_configure
184 -}