1 |
commit: d26fbf8a09acf421b800eac6e9aa25f73b12a6a8 |
2 |
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Jan 24 12:37:52 2016 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 26 18:18:38 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=d26fbf8a |
7 |
|
8 |
app-text/kbibtex: Force handbook optional, use system-qoauth |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
.../kbibtex-part-revert-reenable-qtoauth.patch | 43 ++++++++ |
13 |
.../files/kbibtex-revert-removing-qtoauth.patch | 114 +++++++++++++++++++++ |
14 |
app-text/kbibtex/kbibtex-9999.ebuild | 14 ++- |
15 |
3 files changed, 170 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/app-text/kbibtex/files/kbibtex-part-revert-reenable-qtoauth.patch b/app-text/kbibtex/files/kbibtex-part-revert-reenable-qtoauth.patch |
18 |
new file mode 100644 |
19 |
index 0000000..31402dc |
20 |
--- /dev/null |
21 |
+++ b/app-text/kbibtex/files/kbibtex-part-revert-reenable-qtoauth.patch |
22 |
@@ -0,0 +1,43 @@ |
23 |
+commit 345ef2b7f11da68d9a2fbd92ace3fada85f70140 |
24 |
+Author: Andreas Sturmlechner <andreas.sturmlechner@×××××.com> |
25 |
+Date: Sun Jan 24 13:16:54 2016 +0100 |
26 |
+ |
27 |
+ Partially revert "Re-enabling code for QtOAuth" |
28 |
+ |
29 |
+ This partially reverts commit 7b6937326ba2a4e4072692add38a4abd28bd0cd4 |
30 |
+ so that kbibtex is using system-qoauth instead of bundled one. |
31 |
+ |
32 |
+diff --git a/src/networking/CMakeLists.txt b/src/networking/CMakeLists.txt |
33 |
+index 4408821..bd80b26 100644 |
34 |
+--- a/src/networking/CMakeLists.txt |
35 |
++++ b/src/networking/CMakeLists.txt |
36 |
+@@ -35,8 +35,6 @@ set( |
37 |
+ internalnetworkaccessmanager.cpp |
38 |
+ ${CMAKE_SOURCE_DIR}/src/global/kbibtex.cpp |
39 |
+ logging_networking.cpp |
40 |
+- # QOAuth for Qt5 from Git |
41 |
+- ../3rdparty/qoauth/src/interface.cpp |
42 |
+ ) |
43 |
+ |
44 |
+ set( |
45 |
+@@ -79,7 +77,6 @@ if(UNITY_BUILD) |
46 |
+ endif(UNITY_BUILD) |
47 |
+ |
48 |
+ include_directories( |
49 |
+- ${CMAKE_SOURCE_DIR}/src/3rdparty/qoauth/include |
50 |
+ ${CMAKE_BINARY_DIR}/src/config |
51 |
+ ${CMAKE_SOURCE_DIR}/src/config |
52 |
+ ${CMAKE_BINARY_DIR}/src/data |
53 |
+diff --git a/src/networking/zotero/oauthwizard.cpp b/src/networking/zotero/oauthwizard.cpp |
54 |
+index 61cf8b7..691fb40 100644 |
55 |
+--- a/src/networking/zotero/oauthwizard.cpp |
56 |
++++ b/src/networking/zotero/oauthwizard.cpp |
57 |
+@@ -34,7 +34,7 @@ |
58 |
+ #include "internalnetworkaccessmanager.h" |
59 |
+ #include "logging_networking.h" |
60 |
+ |
61 |
+-#include <QtOAuth> |
62 |
++#include <QtOAuth/QtOAuth> |
63 |
+ |
64 |
+ using namespace Zotero; |
65 |
+ |
66 |
|
67 |
diff --git a/app-text/kbibtex/files/kbibtex-revert-removing-qtoauth.patch b/app-text/kbibtex/files/kbibtex-revert-removing-qtoauth.patch |
68 |
new file mode 100644 |
69 |
index 0000000..6956d3c |
70 |
--- /dev/null |
71 |
+++ b/app-text/kbibtex/files/kbibtex-revert-removing-qtoauth.patch |
72 |
@@ -0,0 +1,114 @@ |
73 |
+commit 77047809b742c3b53ad0f31feddd4029525038e7 |
74 |
+Author: Andreas Sturmlechner <andreas.sturmlechner@×××××.com> |
75 |
+Date: Sun Jan 24 13:04:26 2016 +0100 |
76 |
+ |
77 |
+ Revert "Removing references to QtOAuth and Qca-Qt5" |
78 |
+ |
79 |
+ This reverts commit ff4b966f13b1b8da8471f92f44751b58012a53e8. |
80 |
+ |
81 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
82 |
+index eb33c9e..082b1bd 100644 |
83 |
+--- a/CMakeLists.txt |
84 |
++++ b/CMakeLists.txt |
85 |
+@@ -160,6 +160,26 @@ endif( |
86 |
+ ) |
87 |
+ |
88 |
+ find_package( |
89 |
++ QtOAuth |
90 |
++) |
91 |
++if( |
92 |
++ QTOAUTH_FOUND |
93 |
++) |
94 |
++ add_definitions( |
95 |
++ -DHAVE_QTOAUTH |
96 |
++ ) |
97 |
++else( |
98 |
++ QTOAUTH_FOUND |
99 |
++) |
100 |
++ message( |
101 |
++ STATUS |
102 |
++ "No QtOAuth installed, disabling Zotero OAuth wizard" |
103 |
++ ) |
104 |
++endif( |
105 |
++ QTOAUTH_FOUND |
106 |
++) |
107 |
++ |
108 |
++find_package( |
109 |
+ Qca-qt5 "2.1.0" |
110 |
+ REQUIRED |
111 |
+ ) |
112 |
+@@ -168,7 +188,7 @@ find_package( |
113 |
+ # TODO isn't there an "official" way to determine this directory? |
114 |
+ find_path( |
115 |
+ QTCRYPTO_INCLUDE_DIR qca.h |
116 |
+- HINTS ENV ${Qt5Core_INCLUDE_DIRS} ENV ${QT_INCLUDES} |
117 |
++ HINTS ${QTOAUTH_INCLUDE_DIR} ENV ${Qt5Core_INCLUDE_DIRS} ENV ${QT_INCLUDES} |
118 |
+ PATH_SUFFIXES QtCrypto |
119 |
+ ) |
120 |
+ |
121 |
+diff --git a/src/networking/CMakeLists.txt b/src/networking/CMakeLists.txt |
122 |
+index f2f725b..4408821 100644 |
123 |
+--- a/src/networking/CMakeLists.txt |
124 |
++++ b/src/networking/CMakeLists.txt |
125 |
+@@ -30,7 +30,6 @@ set( |
126 |
+ zotero/tags.cpp |
127 |
+ zotero/tagmodel.cpp |
128 |
+ zotero/items.cpp |
129 |
+- zotero/oauthwizard.cpp |
130 |
+ associatedfiles.cpp |
131 |
+ findpdf.cpp |
132 |
+ internalnetworkaccessmanager.cpp |
133 |
+@@ -70,7 +69,6 @@ set( |
134 |
+ zotero/tagmodel.h |
135 |
+ zotero/items.h |
136 |
+ zotero/api.h |
137 |
+- zotero/oauthwizard.h |
138 |
+ associatedfiles.h |
139 |
+ findpdf.h |
140 |
+ internalnetworkaccessmanager.h |
141 |
+@@ -94,6 +92,26 @@ include_directories( |
142 |
+ ${LIBXML2_INCLUDE_DIR} |
143 |
+ ) |
144 |
+ |
145 |
++if( |
146 |
++ QTOAUTH_FOUND |
147 |
++) |
148 |
++ include_directories( |
149 |
++ ${QTOAUTH_INCLUDE_DIR} |
150 |
++ ) |
151 |
++ set( |
152 |
++ kbibtexnetworking_HDRS |
153 |
++ ${kbibtexnetworking_HDRS} |
154 |
++ zotero/oauthwizard.h |
155 |
++ ) |
156 |
++ set( |
157 |
++ kbibtexnetworking_LIB_SRCS |
158 |
++ ${kbibtexnetworking_LIB_SRCS} |
159 |
++ zotero/oauthwizard.cpp |
160 |
++ ) |
161 |
++endif( |
162 |
++ QTOAUTH_FOUND |
163 |
++) |
164 |
++ |
165 |
+ add_library( |
166 |
+ kbibtexnetworking |
167 |
+ SHARED |
168 |
+@@ -119,6 +137,18 @@ target_link_libraries( |
169 |
+ qca-qt5 |
170 |
+ ) |
171 |
+ |
172 |
++if( |
173 |
++ QTOAUTH_FOUND |
174 |
++) |
175 |
++ target_link_libraries( |
176 |
++ kbibtexnetworking |
177 |
++ ${cmake_2_8_12_PRIVATE} |
178 |
++ ${QTOAUTH_LIBRARY} |
179 |
++ ) |
180 |
++endif( |
181 |
++ QTOAUTH_FOUND |
182 |
++) |
183 |
++ |
184 |
+ set_target_properties( |
185 |
+ kbibtexnetworking |
186 |
+ PROPERTIES |
187 |
|
188 |
diff --git a/app-text/kbibtex/kbibtex-9999.ebuild b/app-text/kbibtex/kbibtex-9999.ebuild |
189 |
index 7db8cb1..2c30229 100644 |
190 |
--- a/app-text/kbibtex/kbibtex-9999.ebuild |
191 |
+++ b/app-text/kbibtex/kbibtex-9999.ebuild |
192 |
@@ -6,7 +6,7 @@ EAPI=5 |
193 |
|
194 |
KDE_DOXYGEN="true" |
195 |
KDE_GCC_MINIMAL="4.9" |
196 |
-KDE_HANDBOOK="true" |
197 |
+KDE_HANDBOOK="forceoptional" |
198 |
inherit kde5 |
199 |
|
200 |
DESCRIPTION="BibTeX editor to edit bibliographies used with LaTeX" |
201 |
@@ -39,6 +39,7 @@ DEPEND=" |
202 |
dev-libs/icu:= |
203 |
dev-libs/libxml2 |
204 |
dev-libs/libxslt |
205 |
+ dev-libs/qoauth:5 |
206 |
dev-qt/qtdbus:5 |
207 |
dev-qt/qtgui:5 |
208 |
dev-qt/qtnetwork:5 |
209 |
@@ -53,3 +54,14 @@ RDEPEND="${DEPEND} |
210 |
" |
211 |
|
212 |
S=${WORKDIR}/${P/_/-} |
213 |
+ |
214 |
+PATCHES=( |
215 |
+ "${FILESDIR}/${PN}-revert-removing-qtoauth.patch" |
216 |
+ "${FILESDIR}/${PN}-part-revert-reenable-qtoauth.patch" |
217 |
+) |
218 |
+ |
219 |
+src_prepare() { |
220 |
+ kde5_src_prepare |
221 |
+ |
222 |
+ rm -r src/3rdparty/qoauth || die "Failed to remove bundled qoauth" |
223 |
+} |