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 0A349138350 for ; Sun, 19 Jan 2020 19:19:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2A2C0E08EF; Sun, 19 Jan 2020 19:19:04 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D5981E08EF for ; Sun, 19 Jan 2020 19:19:03 +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 880F634E255 for ; Sun, 19 Jan 2020 19:19:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 177D37E for ; Sun, 19 Jan 2020 19:19:01 +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: <1579461516.39dd2e09d01bc268942230c12fbb30a0fb65a79f.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kdoctools/, kde-frameworks/kdoctools/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-frameworks/kdoctools/files/kdoctools-5.66.0-docbundledir.patch kde-frameworks/kdoctools/kdoctools-5.66.0.ebuild X-VCS-Directories: kde-frameworks/kdoctools/files/ kde-frameworks/kdoctools/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 39dd2e09d01bc268942230c12fbb30a0fb65a79f X-VCS-Branch: master Date: Sun, 19 Jan 2020 19:19:01 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 02836020-ad42-4610-be45-b79694e59586 X-Archives-Hash: 7771022ce333d492e978e6194dbd581e commit: 39dd2e09d01bc268942230c12fbb30a0fb65a79f Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Jan 19 19:18:36 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Jan 19 19:18:36 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39dd2e09 kde-frameworks/kdoctools: Switch back to simple Gentoo docbundledir patch Bug: https://bugs.gentoo.org/705340 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner gentoo.org> .../files/kdoctools-5.66.0-docbundledir.patch | 160 --------------------- kde-frameworks/kdoctools/kdoctools-5.66.0.ebuild | 2 +- 2 files changed, 1 insertion(+), 161 deletions(-) diff --git a/kde-frameworks/kdoctools/files/kdoctools-5.66.0-docbundledir.patch b/kde-frameworks/kdoctools/files/kdoctools-5.66.0-docbundledir.patch deleted file mode 100644 index 640e4d83426..00000000000 --- a/kde-frameworks/kdoctools/files/kdoctools-5.66.0-docbundledir.patch +++ /dev/null @@ -1,160 +0,0 @@ -diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt ---- a/autotests/CMakeLists.txt -+++ b/autotests/CMakeLists.txt -@@ -1,3 +1,40 @@ -+include(ECMMarkAsTest) -+ -+find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Core Test) -+ -+find_package(LibXslt REQUIRED) -+find_package(LibXml2 REQUIRED) -+ -+include_directories( ${LIBXML2_INCLUDE_DIR} ${LIBXSLT_INCLUDE_DIR} ) -+ -+include_directories(${CMAKE_CURRENT_BINARY_DIR}/../src) -+include_directories(${CMAKE_CURRENT_BINARY_DIR}/..) -+ -+add_definitions(-DSIMPLE_XSLT) -+ -+function(kdoctools_define_document_test basetest) -+ set(documentdirstest_SRCS -+ ${basetest}.cpp -+ ../src/xslt.cpp -+ ${CMAKE_CURRENT_BINARY_DIR}/../src/loggingcategory.cpp -+ ) -+ -+ add_executable(${basetest} ${documentdirstest_SRCS}) -+ target_link_libraries(${basetest} -+ Qt5::Core Qt5::Test -+ ${LIBXML2_LIBRARIES} ${LIBXSLT_LIBRARIES} ${LIBXSLT_EXSLT_LIBRARIES} -+ ) -+ -+ add_test(NAME ${basetest} COMMAND ${basetest}) -+ ecm_mark_as_test(${basetest}) -+endfunction() -+ -+kdoctools_define_document_test(documentdirstest) -+ -+kdoctools_define_document_test(documentcustomdirtest) -+# custom path, used by the test -+target_compile_definitions(documentcustomdirtest PRIVATE KDOCTOOLS_CUSTOM_DOC_PATH="/usr/share/doc/kde/HTML") -+ - add_test( - NAME meinproc_template - COMMAND meinproc5 --srcdir ${CMAKE_CURRENT_BINARY_DIR}/../src ${CMAKE_CURRENT_SOURCE_DIR}/../src/template.docbook -diff --git a/autotests/documentcustomdirtest.cpp b/autotests/documentcustomdirtest.cpp -new file mode 100644 ---- /dev/null -+++ b/autotests/documentcustomdirtest.cpp -@@ -0,0 +1,37 @@ -+#include -+#include -+#include -+ -+#include "../src/docbookxslt.h" -+#include "config-kdoctools.h" -+#include "loggingcategory.h" -+ -+using namespace KDocTools; -+ -+class documentCustomDirTest: public QObject -+{ -+ Q_OBJECT -+private Q_SLOTS: -+ void testDirsContent(); -+}; -+ -+void documentCustomDirTest::testDirsContent() -+{ -+ const QStringList docDirs = documentationDirs(); -+ QVERIFY(docDirs.size() >= 1); -+ /* DOCBUNDLEDIR (one of its matches) must be the first element */ -+ QVERIFY(docDirs[0].indexOf(QRegularExpression(QStringLiteral(KDOCTOOLS_DOCBUNDLEDIR))) >= 0); -+ /* Check all the other items that should be there; -+ check the last occurrence, as each locateAll can return more items -+ and also some of them may match KDOCTOOLS_DOCBUNDLEDIR */ -+ int position_dir_doc_HTML = docDirs.lastIndexOf(QRegularExpression(QStringLiteral(".*/doc/HTML$"))); -+ QVERIFY(position_dir_doc_HTML >= 0); -+ int position_dir_help = docDirs.lastIndexOf(QRegularExpression(QStringLiteral(".*/help$"))); -+ QVERIFY(position_dir_help >= 0); -+ /* The custom directory */ -+ int position_dir_custom = docDirs.lastIndexOf(QStringLiteral(KDOCTOOLS_CUSTOM_DOC_PATH)); -+ QVERIFY(position_dir_custom >= 0); -+} -+ -+QTEST_MAIN(documentCustomDirTest) -+#include "documentcustomdirtest.moc" -diff --git a/autotests/documentdirstest.cpp b/autotests/documentdirstest.cpp -new file mode 100644 ---- /dev/null -+++ b/autotests/documentdirstest.cpp -@@ -0,0 +1,34 @@ -+#include -+#include -+#include -+ -+#include "../src/docbookxslt.h" -+#include "config-kdoctools.h" -+#include "loggingcategory.h" -+ -+using namespace KDocTools; -+ -+class documentDirsTest: public QObject -+{ -+ Q_OBJECT -+private Q_SLOTS: -+ void testDirsContent(); -+}; -+ -+void documentDirsTest::testDirsContent() -+{ -+ const QStringList docDirs = documentationDirs(); -+ QVERIFY(docDirs.size() >= 1); -+ /* DOCBUNDLEDIR (one of its matches) must be the first element */ -+ QVERIFY(docDirs[0].indexOf(QRegularExpression(QStringLiteral(KDOCTOOLS_DOCBUNDLEDIR))) >= 0); -+ /* Check all the other items that should be there; -+ check the last occurrence, as each locateAll can return more items -+ and also some of them may match KDOCTOOLS_DOCBUNDLEDIR */ -+ int position_dir_doc_HTML = docDirs.lastIndexOf(QRegularExpression(QStringLiteral(".*/doc/HTML$"))); -+ QVERIFY(position_dir_doc_HTML >= 0); -+ int position_dir_help = docDirs.lastIndexOf(QRegularExpression(QStringLiteral(".*/help$"))); -+ QVERIFY(position_dir_help >= 0); -+} -+ -+QTEST_MAIN(documentDirsTest) -+#include "documentdirstest.moc" -diff --git a/config-kdoctools.h.cmake b/config-kdoctools.h.cmake ---- a/config-kdoctools.h.cmake -+++ b/config-kdoctools.h.cmake -@@ -3,3 +3,13 @@ - #define DOCBOOK_XML_CURRDTD "@DocBookXML4_DTD_DIR@" - - #define KDOCTOOLS_INSTALL_DATADIR_KF5 "${CMAKE_INSTALL_PREFIX}/${KDE_INSTALL_DATADIR_KF5}" -+ -+#define KDOCTOOLS_DOCBUNDLEDIR "${KDE_INSTALL_DOCBUNDLEDIR}" -+ -+/* Get the value set in the library at compile time, or allow the application -+ to set it if the library has not defined it (useful for example for testing -+ purposes) -+*/ -+#ifndef KDOCTOOLS_CUSTOM_DOC_PATH -+#define KDOCTOOLS_CUSTOM_DOC_PATH "${KDOCTOOLS_CUSTOM_DOC_PATH}" -+#endif -diff --git a/src/xslt.cpp b/src/xslt.cpp ---- a/src/xslt.cpp -+++ b/src/xslt.cpp -@@ -489,5 +489,13 @@ - QStringList KDocTools::documentationDirs() - { - /* List of paths containing documentation */ -- return QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("doc/HTML"), QStandardPaths::LocateDirectory); -+ QStringList allDocDirs; -+ allDocDirs << QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral(KDOCTOOLS_DOCBUNDLEDIR), QStandardPaths::LocateDirectory) -+ << QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("doc/HTML"), QStandardPaths::LocateDirectory) -+ << QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("help"), QStandardPaths::LocateDirectory); -+ if (!QStringLiteral(KDOCTOOLS_CUSTOM_DOC_PATH).isEmpty()) { -+ allDocDirs << QStringLiteral(KDOCTOOLS_CUSTOM_DOC_PATH); -+ } -+ allDocDirs.removeDuplicates(); -+ return allDocDirs; - } diff --git a/kde-frameworks/kdoctools/kdoctools-5.66.0.ebuild b/kde-frameworks/kdoctools/kdoctools-5.66.0.ebuild index 0d80c0455b6..7fb5ee8c626 100644 --- a/kde-frameworks/kdoctools/kdoctools-5.66.0.ebuild +++ b/kde-frameworks/kdoctools/kdoctools-5.66.0.ebuild @@ -28,7 +28,7 @@ DEPEND=" " RDEPEND="${DEPEND}" -PATCHES=( "${FILESDIR}/${PN}-5.66.0-docbundledir.patch" ) +PATCHES=( "${FILESDIR}/${PN}-5.54.0-gentoo-docbundledir.patch" ) src_configure() { local mycmakeargs=(