Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/accounts-qt/files/
Date: Tue, 08 Aug 2017 17:15:55
Message-Id: 1502212526.403dec83ca3061ab002322c94666e8d698b08659.asturm@gentoo
1 commit: 403dec83ca3061ab002322c94666e8d698b08659
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Tue Aug 8 16:16:45 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 8 17:15:26 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=403dec83
7
8 net-libs/accounts-qt: remove unused patch
9
10 Closes: https://github.com/gentoo/gentoo/pull/5358
11
12 .../files/accounts-qt-1.11-to-1.13.patch | 289 ---------------------
13 1 file changed, 289 deletions(-)
14
15 diff --git a/net-libs/accounts-qt/files/accounts-qt-1.11-to-1.13.patch b/net-libs/accounts-qt/files/accounts-qt-1.11-to-1.13.patch
16 deleted file mode 100644
17 index 28b7db12464..00000000000
18 --- a/net-libs/accounts-qt/files/accounts-qt-1.11-to-1.13.patch
19 +++ /dev/null
20 @@ -1,289 +0,0 @@
21 -diff --git a/Accounts/Accounts.pro b/Accounts/Accounts.pro
22 -index b5e77fc..8b3d0d6 100644
23 ---- a/Accounts/Accounts.pro
24 -+++ b/Accounts/Accounts.pro
25 -@@ -44,8 +44,10 @@ QT -= gui
26 -
27 - greaterThan(QT_MAJOR_VERSION, 4) {
28 - TARGET = accounts-qt5
29 -+ CMAKE_BASENAME = AccountsQt5
30 - } else {
31 - TARGET = accounts-qt
32 -+ CMAKE_BASENAME = AccountsQt
33 - }
34 -
35 - PKGCONFIG += \
36 -@@ -65,10 +67,12 @@ pkgconfig.files = $${TARGET}.pc
37 - include($${TOP_SRC_DIR}/common-pkgconfig.pri)
38 - INSTALLS += pkgconfig
39 -
40 --QMAKE_SUBSTITUTES += AccountsQtConfig.cmake.in \
41 -- AccountsQtConfigVersion.cmake.in
42 --cmake_modules.files = AccountsQtConfig.cmake \
43 -- AccountsQtConfigVersion.cmake
44 --cmake_modules.path = $${CMAKE_CONFIG_PATH}
45 -+QMAKE_SUBSTITUTES += \
46 -+ $${CMAKE_BASENAME}Config.cmake.in \
47 -+ $${CMAKE_BASENAME}ConfigVersion.cmake.in
48 -+cmake_modules.files = \
49 -+ $${CMAKE_BASENAME}Config.cmake \
50 -+ $${CMAKE_BASENAME}ConfigVersion.cmake
51 -+cmake_modules.path = $${CMAKE_CONFIG_PATH}/$${CMAKE_BASENAME}
52 -
53 --INSTALLS += cmake_modules
54 -\ No newline at end of file
55 -+INSTALLS += cmake_modules
56 -diff --git a/Accounts/AccountsQt5Config.cmake.in b/Accounts/AccountsQt5Config.cmake.in
57 -new file mode 100644
58 -index 0000000..55a8964
59 ---- /dev/null
60 -+++ b/Accounts/AccountsQt5Config.cmake.in
61 -@@ -0,0 +1,5 @@
62 -+# ACCOUNTSQT_INCLUDE_DIRS - The libaccounts-qt include directories
63 -+# ACCOUNTSQT_LIBRARIES - The libraries needed to use libaccounts-qt
64 -+
65 -+set(ACCOUNTSQT_LIBRARIES $${INSTALL_LIBDIR}/lib$${TARGET}.so)
66 -+set(ACCOUNTSQT_INCLUDE_DIRS $${INSTALL_PREFIX}/include/$${TARGET}/)
67 -\ No newline at end of file
68 -diff --git a/Accounts/AccountsQt5ConfigVersion.cmake.in b/Accounts/AccountsQt5ConfigVersion.cmake.in
69 -new file mode 100644
70 -index 0000000..d086b47
71 ---- /dev/null
72 -+++ b/Accounts/AccountsQt5ConfigVersion.cmake.in
73 -@@ -0,0 +1,10 @@
74 -+set(PACKAGE_VERSION $${PROJECT_VERSION})
75 -+
76 -+if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" )
77 -+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
78 -+else("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" )
79 -+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
80 -+ if( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}")
81 -+ set(PACKAGE_VERSION_EXACT TRUE)
82 -+ endif( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}")
83 -+endif("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" )
84 -\ No newline at end of file
85 -diff --git a/Accounts/manager.cpp b/Accounts/manager.cpp
86 -index fd1821a..2eb077f 100644
87 ---- a/Accounts/manager.cpp
88 -+++ b/Accounts/manager.cpp
89 -@@ -187,6 +187,31 @@ Manager::Manager(const QString &serviceType, QObject *parent):
90 - }
91 -
92 - /*!
93 -+ * Constructor, allowing option flags to be specified.
94 -+ * Users should check for lastError() to check if manager construction
95 -+ * was fully succesful.
96 -+ */
97 -+Manager::Manager(Options options, QObject *parent):
98 -+ QObject(parent),
99 -+ d(new Private)
100 -+{
101 -+ bool disableNotifications = options.testFlag(DisableNotifications);
102 -+
103 -+ GError *error = NULL;
104 -+ AgManager *manager =
105 -+ (AgManager *)g_initable_new(AG_TYPE_MANAGER, NULL, &error,
106 -+ "use-dbus", !disableNotifications,
107 -+ NULL);
108 -+ if (Q_LIKELY(manager)) {
109 -+ d->init(this, manager);
110 -+ } else {
111 -+ qWarning() << "Manager could not be created." << error->message;
112 -+ d->lastError = Error(error);
113 -+ g_error_free(error);
114 -+ }
115 -+}
116 -+
117 -+/*!
118 - * Destructor.
119 - */
120 - Manager::~Manager()
121 -@@ -501,6 +526,23 @@ bool Manager::abortOnTimeout() const
122 - }
123 -
124 - /*!
125 -+ * @return Configuration options for this object.
126 -+ */
127 -+Manager::Options Manager::options() const
128 -+{
129 -+ bool useDBus = true;
130 -+ g_object_get(d->m_manager,
131 -+ "use-dbus", &useDBus,
132 -+ NULL);
133 -+
134 -+ Options opts;
135 -+ if (!useDBus) {
136 -+ opts |= DisableNotifications;
137 -+ }
138 -+ return opts;
139 -+}
140 -+
141 -+/*!
142 - * Gets the last error. Not all operations set/reset the error; see the
143 - * individual methods' documentation to see if they set the last error or
144 - * not. Call this method right after an account operation
145 -diff --git a/Accounts/manager.h b/Accounts/manager.h
146 -index d32c514..c88be2b 100644
147 ---- a/Accounts/manager.h
148 -+++ b/Accounts/manager.h
149 -@@ -53,8 +53,18 @@ class ACCOUNTS_EXPORT Manager: public QObject
150 - Q_OBJECT
151 -
152 - public:
153 -+ /*!
154 -+ * @enum Option
155 -+ * @brief Specifies options for the object.
156 -+ */
157 -+ enum Option {
158 -+ DisableNotifications = 0x1, /**< Disable all inter-process notifications */
159 -+ };
160 -+ Q_DECLARE_FLAGS(Options, Option)
161 -+
162 - Manager(QObject *parent = 0);
163 - Manager(const QString &serviceType, QObject *parent = 0);
164 -+ Manager(Options options, QObject *parent = 0);
165 - ~Manager();
166 -
167 - Account *account(const AccountId &id) const;
168 -@@ -83,6 +93,8 @@ public:
169 - void setAbortOnTimeout(bool abort);
170 - bool abortOnTimeout() const;
171 -
172 -+ Options options() const;
173 -+
174 - Error lastError() const;
175 -
176 - Q_SIGNALS:
177 -@@ -105,4 +117,6 @@ private:
178 -
179 - } //namespace Accounts
180 -
181 -+Q_DECLARE_OPERATORS_FOR_FLAGS(Accounts::Manager::Options)
182 -+
183 - #endif // ACCOUNTS_MANAGER_H
184 -diff --git a/Accounts/provider.cpp b/Accounts/provider.cpp
185 -index 7e2941d..93a24c5 100644
186 ---- a/Accounts/provider.cpp
187 -+++ b/Accounts/provider.cpp
188 -@@ -3,7 +3,7 @@
189 - * This file is part of libaccounts-qt
190 - *
191 - * Copyright (C) 2009-2011 Nokia Corporation.
192 -- * Copyright (C) 2012 Canonical Ltd.
193 -+ * Copyright (C) 2012-2014 Canonical Ltd.
194 - *
195 - * Contact: Alberto Mardegan <alberto.mardegan@×××××××××.com>
196 - *
197 -@@ -82,8 +82,10 @@ Provider &Provider::operator=(const Provider &other)
198 -
199 - Provider::~Provider()
200 - {
201 -- ag_provider_unref(m_provider);
202 -- m_provider = 0;
203 -+ if (m_provider != 0) {
204 -+ ag_provider_unref(m_provider);
205 -+ m_provider = 0;
206 -+ }
207 - }
208 -
209 - /*!
210 -@@ -153,6 +155,15 @@ QString Provider::iconName() const
211 - }
212 -
213 - /*!
214 -+ * @return A regular expression pattern which matches all the internet domains
215 -+ * in which this type of account can be used.
216 -+ */
217 -+QString Provider::domainsRegExp() const
218 -+{
219 -+ return UTF8(ag_provider_get_domains_regex(m_provider));
220 -+}
221 -+
222 -+/*!
223 - * @return Whether the provider supports creating one account at most.
224 - */
225 - bool Provider::isSingleAccount() const
226 -diff --git a/Accounts/provider.h b/Accounts/provider.h
227 -index 27d923d..7c04c3f 100644
228 ---- a/Accounts/provider.h
229 -+++ b/Accounts/provider.h
230 -@@ -3,7 +3,7 @@
231 - * This file is part of libaccounts-qt
232 - *
233 - * Copyright (C) 2009-2011 Nokia Corporation.
234 -- * Copyright (C) 2012 Canonical Ltd.
235 -+ * Copyright (C) 2012-2014 Canonical Ltd.
236 - *
237 - * Contact: Alberto Mardegan <alberto.mardegan@×××××××××.com>
238 - *
239 -@@ -61,6 +61,7 @@ public:
240 - QString pluginName() const;
241 - QString trCatalog() const;
242 - QString iconName() const;
243 -+ QString domainsRegExp() const;
244 - bool isSingleAccount() const;
245 - const QDomDocument domDocument() const;
246 -
247 -diff --git a/common-project-config.pri b/common-project-config.pri
248 -index c252e81..de6f0ae 100644
249 ---- a/common-project-config.pri
250 -+++ b/common-project-config.pri
251 -@@ -62,7 +62,7 @@ isEmpty( LIBDIR ) {
252 - }
253 -
254 - isEmpty ( CMAKE_CONFIG_PATH ) {
255 -- CMAKE_CONFIG_PATH = $${INSTALL_LIBDIR}/cmake/AccountsQt/
256 -+ CMAKE_CONFIG_PATH = $${INSTALL_LIBDIR}/cmake
257 - message("====")
258 - message("==== NOTE: To override the cmake module installation path run: `qmake CMAKE_CONFIG_PATH=/custom/path'")
259 - message("==== (current installation path is `$${CMAKE_CONFIG_PATH}')")
260 -diff --git a/common-vars.pri b/common-vars.pri
261 -index 8b2d740..07ffb59 100644
262 ---- a/common-vars.pri
263 -+++ b/common-vars.pri
264 -@@ -13,7 +13,7 @@ PROJECT_NAME = accounts-qt
265 - #-----------------------------------------------------------------------------
266 - # Project version
267 - #-----------------------------------------------------------------------------
268 --PROJECT_VERSION = 1.11
269 -+PROJECT_VERSION = 1.13
270 -
271 - #-----------------------------------------------------------------------------
272 - # Library version
273 -diff --git a/tests/MyProvider.provider b/tests/MyProvider.provider
274 -index 1f1dd5c..3ffbbb5 100644
275 ---- a/tests/MyProvider.provider
276 -+++ b/tests/MyProvider.provider
277 -@@ -5,6 +5,7 @@
278 - <description>fast &amp; furious</description>
279 - <translations>accounts</translations>
280 - <plugin>generic-oauth</plugin>
281 -+ <domains>.*example.net</domains>
282 - <single-account>true</single-account>
283 -
284 - <template>
285 -diff --git a/tests/accountstest.cpp b/tests/accountstest.cpp
286 -index b51bcab..beaa006 100644
287 ---- a/tests/accountstest.cpp
288 -+++ b/tests/accountstest.cpp
289 -@@ -72,6 +72,12 @@ void AccountsTest::managerTestCase()
290 - mgr->setTimeout(123);
291 - QCOMPARE(mgr->timeout(), quint32(123));
292 -
293 -+ QCOMPARE(mgr->options().testFlag(Manager::DisableNotifications), false);
294 -+
295 -+ delete mgr;
296 -+
297 -+ mgr = new Manager(Manager::DisableNotifications);
298 -+ QCOMPARE(mgr->options().testFlag(Manager::DisableNotifications), true);
299 - delete mgr;
300 - }
301 -
302 -@@ -210,6 +216,7 @@ void AccountsTest::providerTestCase()
303 - QCOMPARE(provider.description(), QString("fast & furious"));
304 - QCOMPARE(provider.trCatalog(), QString("accounts"));
305 - QCOMPARE(provider.pluginName(), QString("generic-oauth"));
306 -+ QCOMPARE(provider.domainsRegExp(), QString(".*example.net"));
307 - QCOMPARE(provider.isSingleAccount(), true);
308 -
309 - QDomDocument dom = provider.domDocument();