1 |
commit: c79cd9c641ed44f48b63f1727ad7ee7c05fa4da2 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 27 21:48:14 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 28 09:10:33 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=c79cd9c6 |
7 |
|
8 |
app-text/kbibtex: Drop obsolete patch |
9 |
|
10 |
Package-Manager: Portage-2.3.12, Repoman-2.3.4 |
11 |
|
12 |
.../kbibtex/files/kbibtex-system-qtoauth.patch | 115 --------------------- |
13 |
app-text/kbibtex/kbibtex-9999.ebuild | 8 -- |
14 |
2 files changed, 123 deletions(-) |
15 |
|
16 |
diff --git a/app-text/kbibtex/files/kbibtex-system-qtoauth.patch b/app-text/kbibtex/files/kbibtex-system-qtoauth.patch |
17 |
deleted file mode 100644 |
18 |
index b582273743..0000000000 |
19 |
--- a/app-text/kbibtex/files/kbibtex-system-qtoauth.patch |
20 |
+++ /dev/null |
21 |
@@ -1,115 +0,0 @@ |
22 |
-commit d5742d770702b60f375139abb4df6f550682dbe8 |
23 |
-Author: Andreas Sturmlechner <andreas.sturmlechner@×××××.com> |
24 |
-Date: Sun Jan 24 13:04:26 2016 +0100 |
25 |
- |
26 |
- Re-enable system QtOAuth |
27 |
- |
28 |
- This reverts commit ff4b966f13b1b8da8471f92f44751b58012a53e8 and |
29 |
- partially reverts commit 7b6937326ba2a4e4072692add38a4abd28bd0cd4 |
30 |
- so that kbibtex is using system-qoauth instead of bundled one. |
31 |
- |
32 |
- REVIEW: 129927 |
33 |
- |
34 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
35 |
-index fc73a28c..f5db0bb2 100644 |
36 |
---- a/CMakeLists.txt |
37 |
-+++ b/CMakeLists.txt |
38 |
-@@ -165,6 +165,26 @@ endif( |
39 |
- ) |
40 |
- |
41 |
- find_package( |
42 |
-+ QtOAuth |
43 |
-+) |
44 |
-+if( |
45 |
-+ QTOAUTH_FOUND |
46 |
-+) |
47 |
-+ add_definitions( |
48 |
-+ -DHAVE_QTOAUTH |
49 |
-+ ) |
50 |
-+else( |
51 |
-+ QTOAUTH_FOUND |
52 |
-+) |
53 |
-+ message( |
54 |
-+ STATUS |
55 |
-+ "No QtOAuth installed, disabling Zotero OAuth wizard" |
56 |
-+ ) |
57 |
-+endif( |
58 |
-+ QTOAUTH_FOUND |
59 |
-+) |
60 |
-+ |
61 |
-+find_package( |
62 |
- Qca-qt5 "2.1.0" |
63 |
- ) |
64 |
- if (Qca-qt5_FOUND) |
65 |
-diff --git a/src/networking/CMakeLists.txt b/src/networking/CMakeLists.txt |
66 |
-index bd16f61e..2e3c4d58 100644 |
67 |
---- a/src/networking/CMakeLists.txt |
68 |
-+++ b/src/networking/CMakeLists.txt |
69 |
-@@ -40,12 +40,23 @@ if(BUILD_ZOTERO) |
70 |
- zotero/collection.cpp |
71 |
- zotero/items.cpp |
72 |
- zotero/groups.cpp |
73 |
-- zotero/oauthwizard.cpp |
74 |
- zotero/tags.cpp |
75 |
- zotero/tagmodel.cpp |
76 |
-- # QOAuth for Qt5 from Git |
77 |
-- ../3rdparty/qoauth/src/interface.cpp |
78 |
-+ ) |
79 |
-+ if( |
80 |
-+ QTOAUTH_FOUND |
81 |
-+ ) |
82 |
-+ include_directories( |
83 |
-+ ${QTOAUTH_INCLUDE_DIR} |
84 |
-+ ) |
85 |
-+ list( |
86 |
-+ APPEND |
87 |
-+ kbibtexnetworking_LIB_SRCS |
88 |
-+ zotero/oauthwizard.cpp |
89 |
- ) |
90 |
-+ endif( |
91 |
-+ QTOAUTH_FOUND |
92 |
-+ ) |
93 |
- endif(BUILD_ZOTERO) |
94 |
- |
95 |
- set( |
96 |
-@@ -90,7 +101,6 @@ if(UNITY_BUILD) |
97 |
- endif(UNITY_BUILD) |
98 |
- |
99 |
- include_directories( |
100 |
-- ${CMAKE_SOURCE_DIR}/src/3rdparty/qoauth/include |
101 |
- ${CMAKE_BINARY_DIR}/src/config |
102 |
- ${CMAKE_SOURCE_DIR}/src/config |
103 |
- ${CMAKE_BINARY_DIR}/src/data |
104 |
-@@ -132,9 +142,18 @@ if(BUILD_ZOTERO) |
105 |
- kbibtexnetworking |
106 |
- qca-qt5 |
107 |
- ) |
108 |
-+ if( |
109 |
-+ QTOAUTH_FOUND |
110 |
-+ ) |
111 |
-+ target_link_libraries( |
112 |
-+ kbibtexnetworking |
113 |
-+ ${QTOAUTH_LIBRARY} |
114 |
-+ ) |
115 |
-+ endif( |
116 |
-+ QTOAUTH_FOUND |
117 |
-+ ) |
118 |
- endif(BUILD_ZOTERO) |
119 |
- |
120 |
-- |
121 |
- set_target_properties( |
122 |
- kbibtexnetworking |
123 |
- PROPERTIES |
124 |
-diff --git a/src/networking/zotero/oauthwizard.cpp b/src/networking/zotero/oauthwizard.cpp |
125 |
-index aca03049..7d97886c 100644 |
126 |
---- a/src/networking/zotero/oauthwizard.cpp |
127 |
-+++ b/src/networking/zotero/oauthwizard.cpp |
128 |
-@@ -35,7 +35,7 @@ |
129 |
- #include "internalnetworkaccessmanager.h" |
130 |
- #include "logging_networking.h" |
131 |
- |
132 |
--#include <QtOAuth> |
133 |
-+#include <QtOAuth/QtOAuth> |
134 |
- |
135 |
- using namespace Zotero; |
136 |
- |
137 |
|
138 |
diff --git a/app-text/kbibtex/kbibtex-9999.ebuild b/app-text/kbibtex/kbibtex-9999.ebuild |
139 |
index 2fda117464..f48ea59a2b 100644 |
140 |
--- a/app-text/kbibtex/kbibtex-9999.ebuild |
141 |
+++ b/app-text/kbibtex/kbibtex-9999.ebuild |
142 |
@@ -60,14 +60,6 @@ RDEPEND="${DEPEND} |
143 |
|
144 |
S="${WORKDIR}/${P/_/-}" |
145 |
|
146 |
-PATCHES=( "${FILESDIR}/${PN}-system-qtoauth.patch" ) |
147 |
- |
148 |
-src_prepare() { |
149 |
- kde5_src_prepare |
150 |
- |
151 |
- rm -r src/3rdparty/qoauth || die "Failed to remove bundled qoauth" |
152 |
-} |
153 |
- |
154 |
src_configure() { |
155 |
local mycmakeargs=( |
156 |
$(cmake-utils_use_find_package webengine Qt5WebEngineWidgets) |