From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D18A0139694 for ; Sun, 11 Jun 2017 21:44:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2C7FBE0E2C; Sun, 11 Jun 2017 21:44:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ECB1EE0E2C for ; Sun, 11 Jun 2017 21:44:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E31663419CB for ; Sun, 11 Jun 2017 21:44:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B04A3747B for ; Sun, 11 Jun 2017 21:44:49 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1497217429.e7d827be7d5bc5a56e97de418d1211afb64d10ef.asturm@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: app-text/kbibtex/files/, app-text/kbibtex/ X-VCS-Repository: proj/kde X-VCS-Files: app-text/kbibtex/files/kbibtex-part-revert-reenable-qtoauth.patch app-text/kbibtex/files/kbibtex-revert-removing-qtoauth.patch app-text/kbibtex/files/kbibtex-system-qtoauth.patch app-text/kbibtex/kbibtex-9999.ebuild X-VCS-Directories: app-text/kbibtex/ app-text/kbibtex/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: e7d827be7d5bc5a56e97de418d1211afb64d10ef X-VCS-Branch: master Date: Sun, 11 Jun 2017 21:44:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: abb92029-78dd-4999-92e9-8c284a49fb0e X-Archives-Hash: aeea7e44a973935b3067a04687b4d20f commit: e7d827be7d5bc5a56e97de418d1211afb64d10ef Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Jun 11 20:54:46 2017 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Jun 11 21:43:49 2017 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=e7d827be app-text/kbibtex: Rebase qtoauth patches Package-Manager: Portage-2.3.5, Repoman-2.3.1 .../kbibtex-part-revert-reenable-qtoauth.patch | 51 --------- .../files/kbibtex-revert-removing-qtoauth.patch | 112 -------------------- .../kbibtex/files/kbibtex-system-qtoauth.patch | 115 +++++++++++++++++++++ app-text/kbibtex/kbibtex-9999.ebuild | 5 +- 4 files changed, 116 insertions(+), 167 deletions(-) diff --git a/app-text/kbibtex/files/kbibtex-part-revert-reenable-qtoauth.patch b/app-text/kbibtex/files/kbibtex-part-revert-reenable-qtoauth.patch deleted file mode 100644 index ce095c6698..0000000000 --- a/app-text/kbibtex/files/kbibtex-part-revert-reenable-qtoauth.patch +++ /dev/null @@ -1,51 +0,0 @@ -From 84f84747649237afcf9bd7465ba85fafd6bbc240 Mon Sep 17 00:00:00 2001 -From: Andreas Sturmlechner -Date: Sun, 24 Jan 2016 13:16:54 +0100 -Subject: [PATCH 2/2] Partially revert "Re-enabling code for QtOAuth" - -This partially reverts commit 7b6937326ba2a4e4072692add38a4abd28bd0cd4 -so that kbibtex is using system-qoauth instead of bundled one. - -REVIEW: 129927 ---- - src/networking/CMakeLists.txt | 3 --- - src/networking/zotero/oauthwizard.cpp | 2 +- - 2 files changed, 1 insertion(+), 4 deletions(-) - -diff --git a/src/networking/CMakeLists.txt b/src/networking/CMakeLists.txt -index 27507b3a..4f3d03bc 100644 ---- a/src/networking/CMakeLists.txt -+++ b/src/networking/CMakeLists.txt -@@ -42,8 +42,6 @@ if(NOT WIN32) - zotero/groups.cpp - zotero/tags.cpp - zotero/tagmodel.cpp -- # QOAuth for Qt5 from Git -- ../3rdparty/qoauth/src/interface.cpp - ) - endif(NOT WIN32) - -@@ -88,7 +86,6 @@ if(UNITY_BUILD) - endif(UNITY_BUILD) - - include_directories( -- ${CMAKE_SOURCE_DIR}/src/3rdparty/qoauth/include - ${CMAKE_BINARY_DIR}/src/config - ${CMAKE_SOURCE_DIR}/src/config - ${CMAKE_BINARY_DIR}/src/data -diff --git a/src/networking/zotero/oauthwizard.cpp b/src/networking/zotero/oauthwizard.cpp -index 1d9129ee..91ff23bf 100644 ---- a/src/networking/zotero/oauthwizard.cpp -+++ b/src/networking/zotero/oauthwizard.cpp -@@ -34,7 +34,7 @@ - #include "internalnetworkaccessmanager.h" - #include "logging_networking.h" - --#include -+#include - - using namespace Zotero; - --- -2.12.2 - diff --git a/app-text/kbibtex/files/kbibtex-revert-removing-qtoauth.patch b/app-text/kbibtex/files/kbibtex-revert-removing-qtoauth.patch deleted file mode 100644 index 3e0195b485..0000000000 --- a/app-text/kbibtex/files/kbibtex-revert-removing-qtoauth.patch +++ /dev/null @@ -1,112 +0,0 @@ -From 0ecdc46fbf9cdab24be92e785ec59b2338634cb1 Mon Sep 17 00:00:00 2001 -From: Andreas Sturmlechner -Date: Sun, 24 Jan 2016 13:04:26 +0100 -Subject: [PATCH 1/2] Revert "Removing references to QtOAuth and Qca-Qt5" - -This reverts commit ff4b966f13b1b8da8471f92f44751b58012a53e8. - -REVIEW: 129927 ---- - CMakeLists.txt | 20 ++++++++++++++++++++ - src/networking/CMakeLists.txt | 33 +++++++++++++++++++++++++++++++-- - 2 files changed, 51 insertions(+), 2 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index f8620185..b22b5ef8 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -152,6 +152,26 @@ endif( - ) - - find_package( -+ QtOAuth -+) -+if( -+ QTOAUTH_FOUND -+) -+ add_definitions( -+ -DHAVE_QTOAUTH -+ ) -+else( -+ QTOAUTH_FOUND -+) -+ message( -+ STATUS -+ "No QtOAuth installed, disabling Zotero OAuth wizard" -+ ) -+endif( -+ QTOAUTH_FOUND -+) -+ -+find_package( - Qca-qt5 "2.1.0" - REQUIRED - ) -diff --git a/src/networking/CMakeLists.txt b/src/networking/CMakeLists.txt -index f99236c1..27507b3a 100644 ---- a/src/networking/CMakeLists.txt -+++ b/src/networking/CMakeLists.txt -@@ -40,7 +40,6 @@ if(NOT WIN32) - zotero/collection.cpp - zotero/items.cpp - zotero/groups.cpp -- zotero/oauthwizard.cpp - zotero/tags.cpp - zotero/tagmodel.cpp - # QOAuth for Qt5 from Git -@@ -79,7 +78,6 @@ set( - zotero/tagmodel.h - zotero/items.h - zotero/api.h -- zotero/oauthwizard.h - associatedfiles.h - findpdf.h - internalnetworkaccessmanager.h -@@ -102,6 +100,26 @@ include_directories( - ${CMAKE_SOURCE_DIR}/src/global - ) - -+if( -+ QTOAUTH_FOUND -+) -+ include_directories( -+ ${QTOAUTH_INCLUDE_DIR} -+ ) -+ set( -+ kbibtexnetworking_HDRS -+ ${kbibtexnetworking_HDRS} -+ zotero/oauthwizard.h -+ ) -+ set( -+ kbibtexnetworking_LIB_SRCS -+ ${kbibtexnetworking_LIB_SRCS} -+ zotero/oauthwizard.cpp -+ ) -+endif( -+ QTOAUTH_FOUND -+) -+ - add_library( - kbibtexnetworking - SHARED -@@ -128,6 +146,17 @@ target_link_libraries( - ${Poppler_Qt5_LIBRARY} - ) - -+if( -+ QTOAUTH_FOUND -+) -+ target_link_libraries( -+ kbibtexnetworking -+ ${QTOAUTH_LIBRARY} -+ ) -+endif( -+ QTOAUTH_FOUND -+) -+ - set_target_properties( - kbibtexnetworking - PROPERTIES --- -2.12.2 - diff --git a/app-text/kbibtex/files/kbibtex-system-qtoauth.patch b/app-text/kbibtex/files/kbibtex-system-qtoauth.patch new file mode 100644 index 0000000000..b582273743 --- /dev/null +++ b/app-text/kbibtex/files/kbibtex-system-qtoauth.patch @@ -0,0 +1,115 @@ +commit d5742d770702b60f375139abb4df6f550682dbe8 +Author: Andreas Sturmlechner +Date: Sun Jan 24 13:04:26 2016 +0100 + + Re-enable system QtOAuth + + This reverts commit ff4b966f13b1b8da8471f92f44751b58012a53e8 and + partially reverts commit 7b6937326ba2a4e4072692add38a4abd28bd0cd4 + so that kbibtex is using system-qoauth instead of bundled one. + + REVIEW: 129927 + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index fc73a28c..f5db0bb2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -165,6 +165,26 @@ endif( + ) + + find_package( ++ QtOAuth ++) ++if( ++ QTOAUTH_FOUND ++) ++ add_definitions( ++ -DHAVE_QTOAUTH ++ ) ++else( ++ QTOAUTH_FOUND ++) ++ message( ++ STATUS ++ "No QtOAuth installed, disabling Zotero OAuth wizard" ++ ) ++endif( ++ QTOAUTH_FOUND ++) ++ ++find_package( + Qca-qt5 "2.1.0" + ) + if (Qca-qt5_FOUND) +diff --git a/src/networking/CMakeLists.txt b/src/networking/CMakeLists.txt +index bd16f61e..2e3c4d58 100644 +--- a/src/networking/CMakeLists.txt ++++ b/src/networking/CMakeLists.txt +@@ -40,12 +40,23 @@ if(BUILD_ZOTERO) + zotero/collection.cpp + zotero/items.cpp + zotero/groups.cpp +- zotero/oauthwizard.cpp + zotero/tags.cpp + zotero/tagmodel.cpp +- # QOAuth for Qt5 from Git +- ../3rdparty/qoauth/src/interface.cpp ++ ) ++ if( ++ QTOAUTH_FOUND ++ ) ++ include_directories( ++ ${QTOAUTH_INCLUDE_DIR} ++ ) ++ list( ++ APPEND ++ kbibtexnetworking_LIB_SRCS ++ zotero/oauthwizard.cpp + ) ++ endif( ++ QTOAUTH_FOUND ++ ) + endif(BUILD_ZOTERO) + + set( +@@ -90,7 +101,6 @@ if(UNITY_BUILD) + endif(UNITY_BUILD) + + include_directories( +- ${CMAKE_SOURCE_DIR}/src/3rdparty/qoauth/include + ${CMAKE_BINARY_DIR}/src/config + ${CMAKE_SOURCE_DIR}/src/config + ${CMAKE_BINARY_DIR}/src/data +@@ -132,9 +142,18 @@ if(BUILD_ZOTERO) + kbibtexnetworking + qca-qt5 + ) ++ if( ++ QTOAUTH_FOUND ++ ) ++ target_link_libraries( ++ kbibtexnetworking ++ ${QTOAUTH_LIBRARY} ++ ) ++ endif( ++ QTOAUTH_FOUND ++ ) + endif(BUILD_ZOTERO) + +- + set_target_properties( + kbibtexnetworking + PROPERTIES +diff --git a/src/networking/zotero/oauthwizard.cpp b/src/networking/zotero/oauthwizard.cpp +index aca03049..7d97886c 100644 +--- a/src/networking/zotero/oauthwizard.cpp ++++ b/src/networking/zotero/oauthwizard.cpp +@@ -35,7 +35,7 @@ + #include "internalnetworkaccessmanager.h" + #include "logging_networking.h" + +-#include ++#include + + using namespace Zotero; + diff --git a/app-text/kbibtex/kbibtex-9999.ebuild b/app-text/kbibtex/kbibtex-9999.ebuild index 6506817e9b..68e60bbc9f 100644 --- a/app-text/kbibtex/kbibtex-9999.ebuild +++ b/app-text/kbibtex/kbibtex-9999.ebuild @@ -61,10 +61,7 @@ RDEPEND="${DEPEND} S="${WORKDIR}/${P/_/-}" -PATCHES=( - "${FILESDIR}/${PN}-revert-removing-qtoauth.patch" - "${FILESDIR}/${PN}-part-revert-reenable-qtoauth.patch" -) +PATCHES=( "${FILESDIR}/${PN}-system-qtoauth.patch" ) src_prepare() { kde5_src_prepare