summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-03-03 21:40:17 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2019-03-03 22:49:40 +0100
commit45688935be11f162d37b150bd5d366633559f67a (patch)
treef89014e927ea048772e26eef82cd4a58f12efc1a /net-libs/libkvkontakte
parentapp-benchmarks/geekbench: drop old version (diff)
downloadgentoo-45688935be11f162d37b150bd5d366633559f67a.tar.gz
gentoo-45688935be11f162d37b150bd5d366633559f67a.tar.bz2
gentoo-45688935be11f162d37b150bd5d366633559f67a.zip
net-libs/libkvkontakte: Fix warnings, EAPI-7 bump
Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'net-libs/libkvkontakte')
-rw-r--r--net-libs/libkvkontakte/files/libkvkontakte-5.0.0-fix-warnings.patch386
-rw-r--r--net-libs/libkvkontakte/libkvkontakte-5.0.0-r1.ebuild33
2 files changed, 419 insertions, 0 deletions
diff --git a/net-libs/libkvkontakte/files/libkvkontakte-5.0.0-fix-warnings.patch b/net-libs/libkvkontakte/files/libkvkontakte-5.0.0-fix-warnings.patch
new file mode 100644
index 000000000000..36e107001d1b
--- /dev/null
+++ b/net-libs/libkvkontakte/files/libkvkontakte-5.0.0-fix-warnings.patch
@@ -0,0 +1,386 @@
+From ba1f7e7f7424df2bf96513c14f10d3cff47f48a4 Mon Sep 17 00:00:00 2001
+From: Pino Toscano <pino@kde.org>
+Date: Sat, 9 Sep 2017 15:20:05 +0200
+Subject: use Q_DECL_OVERRIDE
+
+---
+ src/albumlistjob.h | 2 +-
+ src/allmessageslistjob.h | 2 +-
+ src/allnoteslistjob.h | 2 +-
+ src/cidsnamesjob.h | 2 +-
+ src/createalbumjob.h | 2 +-
+ src/deletealbumjob.h | 2 +-
+ src/discussionslistjob.h | 2 +-
+ src/editalbumjob.h | 2 +-
+ src/friendlistjob.h | 2 +-
+ src/getapplicationpermissionsjob.h | 2 +-
+ src/getinfojob.h | 2 +-
+ src/getphotouploadserverjob.h | 4 ++--
+ src/getvariablejob.h | 2 +-
+ src/grouplistjob.h | 2 +-
+ src/messageslistjob.h | 2 +-
+ src/noteaddjob.h | 2 +-
+ src/notejob.h | 2 +-
+ src/noteslistjob.h | 2 +-
+ src/photojob.h | 2 +-
+ src/photolistjob.h | 2 +-
+ src/photopostjob.h | 2 +-
+ src/savephotojob.h | 2 +-
+ src/uploadphotosjob.h | 2 +-
+ src/userinfojob.h | 4 ++--
+ src/vkontaktejobs.h | 6 +++---
+ 25 files changed, 29 insertions(+), 29 deletions(-)
+
+diff --git a/src/albumlistjob.h b/src/albumlistjob.h
+index 0e91af0..70dc29e 100644
+--- a/src/albumlistjob.h
++++ b/src/albumlistjob.h
+@@ -38,7 +38,7 @@ public:
+ QList<AlbumInfo> list() const;
+
+ protected:
+- virtual void handleData(const QJsonValue &data);
++ void handleData(const QJsonValue &data) Q_DECL_OVERRIDE;
+
+ void handleItem(const QVariant &data);
+
+diff --git a/src/allmessageslistjob.h b/src/allmessageslistjob.h
+index e714526..4bf067c 100644
+--- a/src/allmessageslistjob.h
++++ b/src/allmessageslistjob.h
+@@ -44,7 +44,7 @@ public:
+ int filters = 0, int timeOffset = 0);
+ ~AllMessagesListJob();
+
+- virtual void start();
++ void start() Q_DECL_OVERRIDE;
+
+ QList<MessageInfoPtr> list() const;
+ int count() const;
+diff --git a/src/allnoteslistjob.h b/src/allnoteslistjob.h
+index 1228bb8..661107a 100644
+--- a/src/allnoteslistjob.h
++++ b/src/allnoteslistjob.h
+@@ -33,7 +33,7 @@ public:
+ AllNotesListJob(const QString &accessToken, int uid);
+ ~AllNotesListJob();
+
+- virtual void start();
++ void start() Q_DECL_OVERRIDE;
+
+ QList<NoteInfoPtr> list() const;
+ int count() const;
+diff --git a/src/cidsnamesjob.h b/src/cidsnamesjob.h
+index 9bd142c..c6878a1 100644
+--- a/src/cidsnamesjob.h
++++ b/src/cidsnamesjob.h
+@@ -40,7 +40,7 @@ public:
+ QMap<int, QString> names() const;
+
+ protected:
+- virtual void handleData(const QVariant &data);
++ void handleData(const QVariant &data) Q_DECL_OVERRIDE;
+
+ private:
+ class Private;
+diff --git a/src/createalbumjob.h b/src/createalbumjob.h
+index 8d7ec17..09c68e9 100644
+--- a/src/createalbumjob.h
++++ b/src/createalbumjob.h
+@@ -40,7 +40,7 @@ public:
+ AlbumInfo album() const;
+
+ protected:
+- virtual void handleData(const QJsonValue &data);
++ void handleData(const QJsonValue &data) Q_DECL_OVERRIDE;
+
+ private:
+ class Private;
+diff --git a/src/deletealbumjob.h b/src/deletealbumjob.h
+index ef1f001..84fcfb5 100644
+--- a/src/deletealbumjob.h
++++ b/src/deletealbumjob.h
+@@ -33,7 +33,7 @@ public:
+ DeleteAlbumJob(const QString &accessToken, int aid);
+
+ protected:
+- virtual void handleData(const QJsonValue &data);
++ void handleData(const QJsonValue &data) Q_DECL_OVERRIDE;
+
+ private:
+ class Private;
+diff --git a/src/discussionslistjob.h b/src/discussionslistjob.h
+index 79e801a..63cd825 100644
+--- a/src/discussionslistjob.h
++++ b/src/discussionslistjob.h
+@@ -46,7 +46,7 @@ public:
+ int totalCount() const;
+
+ protected:
+- virtual void handleData(const QVariant &data);
++ void handleData(const QVariant &data) Q_DECL_OVERRIDE;
+
+ void handleItem(const QVariant &data);
+
+diff --git a/src/editalbumjob.h b/src/editalbumjob.h
+index d9d76b6..eb52fe4 100644
+--- a/src/editalbumjob.h
++++ b/src/editalbumjob.h
+@@ -36,7 +36,7 @@ public:
+ int comment_privacy = AlbumInfo::PRIVACY_UNKNOWN);
+
+ protected:
+- virtual void handleData(const QJsonValue &data);
++ void handleData(const QJsonValue &data) Q_DECL_OVERRIDE;
+
+ private:
+ class Private;
+diff --git a/src/friendlistjob.h b/src/friendlistjob.h
+index 6a7de49..465a109 100644
+--- a/src/friendlistjob.h
++++ b/src/friendlistjob.h
+@@ -39,7 +39,7 @@ public:
+ QList<UserInfoPtr> list() const;
+
+ protected:
+- virtual void handleData(const QVariant &data);
++ void handleData(const QVariant &data) Q_DECL_OVERRIDE;
+
+ private:
+ class Private;
+diff --git a/src/getapplicationpermissionsjob.h b/src/getapplicationpermissionsjob.h
+index 72b6759..4165a1b 100644
+--- a/src/getapplicationpermissionsjob.h
++++ b/src/getapplicationpermissionsjob.h
+@@ -35,7 +35,7 @@ public:
+ int permissions() const;
+
+ protected:
+- virtual void handleData(const QJsonValue &data);
++ void handleData(const QJsonValue &data) Q_DECL_OVERRIDE;
+
+ private:
+ class Private;
+diff --git a/src/getinfojob.h b/src/getinfojob.h
+index 98df0db..19b8f31 100644
+--- a/src/getinfojob.h
++++ b/src/getinfojob.h
+@@ -38,7 +38,7 @@ public:
+ QVariantMap info();
+
+ protected:
+- virtual void handleData(const QVariant &data);
++ void handleData(const QVariant &data) Q_DECL_OVERRIDE;
+
+ private:
+ class Private;
+diff --git a/src/getphotouploadserverjob.h b/src/getphotouploadserverjob.h
+index af65921..3a3e9b0 100644
+--- a/src/getphotouploadserverjob.h
++++ b/src/getphotouploadserverjob.h
+@@ -41,8 +41,8 @@ public:
+
+ protected:
+ static QString getMethod(enum UploadPhotosJob::Dest dest);
+- virtual void prepareQueryItems();
+- virtual void handleData(const QJsonValue &data);
++ void prepareQueryItems() Q_DECL_OVERRIDE;
++ void handleData(const QJsonValue &data) Q_DECL_OVERRIDE;
+
+ private:
+ UploadPhotosJob::Dest m_dest;
+diff --git a/src/getvariablejob.h b/src/getvariablejob.h
+index f80ceb7..5250c6e 100644
+--- a/src/getvariablejob.h
++++ b/src/getvariablejob.h
+@@ -41,7 +41,7 @@ public:
+ QVariant variable() const;
+
+ protected:
+- virtual void handleData(const QVariant &data);
++ void handleData(const QVariant &data) Q_DECL_OVERRIDE;
+
+ private:
+ class Private;
+diff --git a/src/grouplistjob.h b/src/grouplistjob.h
+index 29628f3..d41e1dc 100644
+--- a/src/grouplistjob.h
++++ b/src/grouplistjob.h
+@@ -42,7 +42,7 @@ public:
+
+ protected:
+ GroupInfoPtr handleSingleData(const QVariant &data);
+- virtual void handleData(const QVariant &data);
++ void handleData(const QVariant &data) Q_DECL_OVERRIDE;
+
+ private:
+ class Private;
+diff --git a/src/messageslistjob.h b/src/messageslistjob.h
+index 0f67360..091ef60 100644
+--- a/src/messageslistjob.h
++++ b/src/messageslistjob.h
+@@ -57,7 +57,7 @@ public:
+ int out() const;
+
+ protected:
+- virtual void handleData(const QVariant &data);
++ void handleData(const QVariant &data) Q_DECL_OVERRIDE;
+
+ void handleItem(const QVariant &data);
+
+diff --git a/src/noteaddjob.h b/src/noteaddjob.h
+index 84cc63f..6c37efb 100644
+--- a/src/noteaddjob.h
++++ b/src/noteaddjob.h
+@@ -41,7 +41,7 @@ public:
+ int nid() const;
+
+ protected:
+- virtual void handleData(const QVariant &data);
++ void handleData(const QVariant &data) Q_DECL_OVERRIDE;
+
+ private:
+ class Private;
+diff --git a/src/notejob.h b/src/notejob.h
+index dfeefc2..340eaef 100644
+--- a/src/notejob.h
++++ b/src/notejob.h
+@@ -37,7 +37,7 @@ public:
+ NoteInfoPtr noteInfo();
+
+ protected:
+- virtual void handleData(const QVariant &data);
++ void handleData(const QVariant &data) Q_DECL_OVERRIDE;
+
+ private:
+ class Private;
+diff --git a/src/noteslistjob.h b/src/noteslistjob.h
+index 3ea51a7..d36e0bf 100644
+--- a/src/noteslistjob.h
++++ b/src/noteslistjob.h
+@@ -49,7 +49,7 @@ protected:
+ * @brief Handles the data returned by the VkontakteGetJob
+ * @param data A JSON string containing the data.
+ */
+- virtual void handleData(const QVariant &data);
++ void handleData(const QVariant &data) Q_DECL_OVERRIDE;
+
+ void handleItem(const QVariant &data);
+
+diff --git a/src/photojob.h b/src/photojob.h
+index b8af5b3..b230c29 100644
+--- a/src/photojob.h
++++ b/src/photojob.h
+@@ -35,7 +35,7 @@ public:
+ PhotoJob(const QUrl &urlString);
+ ~PhotoJob();
+
+- virtual void start();
++ void start() Q_DECL_OVERRIDE;
+ QImage photo() const;
+
+ private Q_SLOTS:
+diff --git a/src/photolistjob.h b/src/photolistjob.h
+index 4b38a12..a0c868f 100644
+--- a/src/photolistjob.h
++++ b/src/photolistjob.h
+@@ -42,7 +42,7 @@ protected:
+ * @brief Handles the data returned by VkontakteJob
+ * @param data JSON value containing an array of photos.
+ */
+- virtual void handleData(const QJsonValue &data);
++ void handleData(const QJsonValue &data) Q_DECL_OVERRIDE;
+
+ private:
+ class Private;
+diff --git a/src/photopostjob.h b/src/photopostjob.h
+index 712906d..1f7b2ec 100644
+--- a/src/photopostjob.h
++++ b/src/photopostjob.h
+@@ -43,7 +43,7 @@ public:
+ // files.size <= 5
+ PhotoPostJob(Vkontakte::UploadPhotosJob::Dest dest, const QUrl &url, const QStringList &files);
+
+- virtual void start();
++ void start() Q_DECL_OVERRIDE;
+ QVariantMap response() const;
+
+ protected:
+diff --git a/src/savephotojob.h b/src/savephotojob.h
+index af2a795..cd4ab85 100644
+--- a/src/savephotojob.h
++++ b/src/savephotojob.h
+@@ -46,7 +46,7 @@ public:
+ protected:
+ QString getMethod(Vkontakte::UploadPhotosJob::Dest dest);
+ void handleItem(const QJsonValue &item);
+- virtual void handleData(const QJsonValue &data);
++ void handleData(const QJsonValue &data) Q_DECL_OVERRIDE;
+
+ private:
+ UploadPhotosJob::Dest m_dest;
+diff --git a/src/uploadphotosjob.h b/src/uploadphotosjob.h
+index 461f62a..d9290c4 100644
+--- a/src/uploadphotosjob.h
++++ b/src/uploadphotosjob.h
+@@ -43,7 +43,7 @@ public:
+ const QStringList &files, bool saveBig, int aid, int gid = -1);
+ ~UploadPhotosJob();
+
+- virtual void start();
++ void start() Q_DECL_OVERRIDE;
+
+ QList<PhotoInfo> list() const;
+
+diff --git a/src/userinfojob.h b/src/userinfojob.h
+index 85e6b86..5090ab3 100644
+--- a/src/userinfojob.h
++++ b/src/userinfojob.h
+@@ -71,12 +71,12 @@ protected:
+ * @brief Handles the data returned by the VkontakteGetJob
+ * @param data A JSON string containing the data.
+ */
+- virtual void handleData(const QJsonValue &data);
++ void handleData(const QJsonValue &data) Q_DECL_OVERRIDE;
+
+ /**
+ * @brief Prepares m_queryItems by several addQueryItem calls
+ **/
+- virtual void prepareQueryItems();
++ void prepareQueryItems() Q_DECL_OVERRIDE;
+
+ private:
+ class Private;
+diff --git a/src/vkontaktejobs.h b/src/vkontaktejobs.h
+index 9429da8..af04aa9 100644
+--- a/src/vkontaktejobs.h
++++ b/src/vkontaktejobs.h
+@@ -38,7 +38,7 @@ class LIBKVKONTAKTE_EXPORT KJobWithSubjob : public KJob
+ {
+ protected:
+ /** Kill the currentjobs and its subjobs */
+- virtual bool doKill();
++ bool doKill() Q_DECL_OVERRIDE;
+
+ QPointer<KJob> m_job; /** Pointer to the running job */
+ };
+@@ -47,7 +47,7 @@ class LIBKVKONTAKTE_EXPORT KJobWithSubjobs : public KJob
+ {
+ protected:
+ /** Kill the currentjobs and its subjobs */
+- virtual bool doKill();
++ bool doKill() Q_DECL_OVERRIDE;
+
+ QList<KJob *> m_jobs; /** Pointers to running jobs */
+ };
+@@ -68,7 +68,7 @@ public:
+ * */
+ VkontakteJob(const QString &accessToken, const QString &method, bool httpPost = false);
+
+- virtual void start();
++ void start() Q_DECL_OVERRIDE;
+
+ enum JobErrorType { AuthenticationProblem = KJob::UserDefinedError + 42 };
+
+--
+cgit v1.1
diff --git a/net-libs/libkvkontakte/libkvkontakte-5.0.0-r1.ebuild b/net-libs/libkvkontakte/libkvkontakte-5.0.0-r1.ebuild
new file mode 100644
index 000000000000..db21496fe470
--- /dev/null
+++ b/net-libs/libkvkontakte/libkvkontakte-5.0.0-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+KDE_TEST="true"
+inherit kde5
+
+DESCRIPTION="Library for accessing the features of social networking site vkontakte.ru"
+HOMEPAGE="https://www.digikam.org/"
+SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz"
+
+LICENSE="GPL-2+ || ( LGPL-2.1 LGPL-3 )"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE=""
+
+DEPEND="
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kdewebkit)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtnetwork)
+ $(add_qt_dep qtwidgets)
+ >=dev-qt/qtwebkit-5.212.0_pre20180120:5
+"
+RDEPEND="${DEPEND}"
+
+# accessing network
+RESTRICT+=" test"
+
+PATCHES=( "${FILESDIR}/${P}-fix-warnings.patch" )