1 |
commit: 0d0adf4376949b7dedb433bc4752473f4ddad14d |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 6 23:53:55 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 7 12:59:59 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d0adf43 |
7 |
|
8 |
kde-frameworks/kdoctools: Add /usr/share/help dir to list of doc dirs |
9 |
|
10 |
This is fed to kio_help from kde-frameworks/kio to populate |
11 |
kde-apps/khelpcenter runtime content. |
12 |
|
13 |
Package-Manager: Portage-2.3.59, Repoman-2.3.12 |
14 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
15 |
|
16 |
.../kdoctools-5.54.0-gentoo-docbundledir.patch | 26 ++++++++++++ |
17 |
.../kdoctools/kdoctools-5.54.0-r1.ebuild | 46 ++++++++++++++++++++++ |
18 |
2 files changed, 72 insertions(+) |
19 |
|
20 |
diff --git a/kde-frameworks/kdoctools/files/kdoctools-5.54.0-gentoo-docbundledir.patch b/kde-frameworks/kdoctools/files/kdoctools-5.54.0-gentoo-docbundledir.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..cb6c35f19ff |
23 |
--- /dev/null |
24 |
+++ b/kde-frameworks/kdoctools/files/kdoctools-5.54.0-gentoo-docbundledir.patch |
25 |
@@ -0,0 +1,26 @@ |
26 |
+From 79f31819b95fcb0bd3d30630f769706923d41609 Mon Sep 17 00:00:00 2001 |
27 |
+From: Andreas Sturmlechner <asturm@g.o> |
28 |
+Date: Mon, 28 Jan 2019 22:50:56 +0100 |
29 |
+Subject: [PATCH] xslt.cpp: Add /usr/share/help dir to list of paths containing |
30 |
+ documentation |
31 |
+ |
32 |
+--- |
33 |
+ src/xslt.cpp | 4 +++- |
34 |
+ 1 file changed, 3 insertions(+), 1 deletion(-) |
35 |
+ |
36 |
+diff --git a/src/xslt.cpp b/src/xslt.cpp |
37 |
+index 1000e33..a0fbe4c 100644 |
38 |
+--- a/src/xslt.cpp |
39 |
++++ b/src/xslt.cpp |
40 |
+@@ -494,5 +494,7 @@ QStringList getKDocToolsCatalogs() |
41 |
+ QStringList KDocTools::documentationDirs() |
42 |
+ { |
43 |
+ /* List of paths containing documentation */ |
44 |
+- return QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("doc/HTML"), QStandardPaths::LocateDirectory); |
45 |
++ QStringList docDirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("help"), QStandardPaths::LocateDirectory); |
46 |
++ docDirs.append(QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("doc/HTML"), QStandardPaths::LocateDirectory)); |
47 |
++ return docDirs; |
48 |
+ } |
49 |
+-- |
50 |
+2.20.1 |
51 |
+ |
52 |
|
53 |
diff --git a/kde-frameworks/kdoctools/kdoctools-5.54.0-r1.ebuild b/kde-frameworks/kdoctools/kdoctools-5.54.0-r1.ebuild |
54 |
new file mode 100644 |
55 |
index 00000000000..f4265374061 |
56 |
--- /dev/null |
57 |
+++ b/kde-frameworks/kdoctools/kdoctools-5.54.0-r1.ebuild |
58 |
@@ -0,0 +1,46 @@ |
59 |
+# Copyright 1999-2019 Gentoo Authors |
60 |
+# Distributed under the terms of the GNU General Public License v2 |
61 |
+ |
62 |
+EAPI=7 |
63 |
+ |
64 |
+KDE_QTHELP="false" |
65 |
+inherit kde5 |
66 |
+ |
67 |
+DESCRIPTION="Tools to generate documentation in various formats from DocBook files" |
68 |
+LICENSE="MIT" |
69 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
70 |
+IUSE="nls" |
71 |
+ |
72 |
+BDEPEND=" |
73 |
+ dev-lang/perl |
74 |
+ dev-perl/URI |
75 |
+ nls? ( $(add_frameworks_dep ki18n) ) |
76 |
+" |
77 |
+DEPEND=" |
78 |
+ $(add_frameworks_dep karchive) |
79 |
+ app-text/docbook-xml-dtd:4.5 |
80 |
+ app-text/docbook-xsl-stylesheets |
81 |
+ app-text/sgml-common |
82 |
+ dev-libs/libxml2:2 |
83 |
+ dev-libs/libxslt |
84 |
+" |
85 |
+RDEPEND="${DEPEND}" |
86 |
+ |
87 |
+PATCHES=( "${FILESDIR}/${P}-gentoo-docbundledir.patch" ) |
88 |
+ |
89 |
+src_configure() { |
90 |
+ local mycmakeargs=( |
91 |
+ $(cmake-utils_use_find_package nls KF5I18n) |
92 |
+ ) |
93 |
+ |
94 |
+ kde5_src_configure |
95 |
+} |
96 |
+ |
97 |
+src_test() { |
98 |
+ # bug 665622 |
99 |
+ local myctestargs=( |
100 |
+ -E "(kdoctools_install)" |
101 |
+ ) |
102 |
+ |
103 |
+ kde5_src_test |
104 |
+} |