diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2019-02-07 00:53:55 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-02-07 13:59:59 +0100 |
commit | 0d0adf4376949b7dedb433bc4752473f4ddad14d (patch) | |
tree | 3328b4cd5c75b66fe0f5e93f672c0f9dd099b012 /kde-frameworks/kdoctools | |
parent | kde-apps: Drop KDE Applications 18.12.1 (diff) | |
download | gentoo-0d0adf4376949b7dedb433bc4752473f4ddad14d.tar.gz gentoo-0d0adf4376949b7dedb433bc4752473f4ddad14d.tar.bz2 gentoo-0d0adf4376949b7dedb433bc4752473f4ddad14d.zip |
kde-frameworks/kdoctools: Add /usr/share/help dir to list of doc dirs
This is fed to kio_help from kde-frameworks/kio to populate
kde-apps/khelpcenter runtime content.
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-frameworks/kdoctools')
-rw-r--r-- | kde-frameworks/kdoctools/files/kdoctools-5.54.0-gentoo-docbundledir.patch | 26 | ||||
-rw-r--r-- | kde-frameworks/kdoctools/kdoctools-5.54.0-r1.ebuild | 46 |
2 files changed, 72 insertions, 0 deletions
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 new file mode 100644 index 000000000000..cb6c35f19ff4 --- /dev/null +++ b/kde-frameworks/kdoctools/files/kdoctools-5.54.0-gentoo-docbundledir.patch @@ -0,0 +1,26 @@ +From 79f31819b95fcb0bd3d30630f769706923d41609 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <asturm@gentoo.org> +Date: Mon, 28 Jan 2019 22:50:56 +0100 +Subject: [PATCH] xslt.cpp: Add /usr/share/help dir to list of paths containing + documentation + +--- + src/xslt.cpp | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/xslt.cpp b/src/xslt.cpp +index 1000e33..a0fbe4c 100644 +--- a/src/xslt.cpp ++++ b/src/xslt.cpp +@@ -494,5 +494,7 @@ QStringList getKDocToolsCatalogs() + QStringList KDocTools::documentationDirs() + { + /* List of paths containing documentation */ +- return QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("doc/HTML"), QStandardPaths::LocateDirectory); ++ QStringList docDirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("help"), QStandardPaths::LocateDirectory); ++ docDirs.append(QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("doc/HTML"), QStandardPaths::LocateDirectory)); ++ return docDirs; + } +-- +2.20.1 + diff --git a/kde-frameworks/kdoctools/kdoctools-5.54.0-r1.ebuild b/kde-frameworks/kdoctools/kdoctools-5.54.0-r1.ebuild new file mode 100644 index 000000000000..f42653740612 --- /dev/null +++ b/kde-frameworks/kdoctools/kdoctools-5.54.0-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +KDE_QTHELP="false" +inherit kde5 + +DESCRIPTION="Tools to generate documentation in various formats from DocBook files" +LICENSE="MIT" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="nls" + +BDEPEND=" + dev-lang/perl + dev-perl/URI + nls? ( $(add_frameworks_dep ki18n) ) +" +DEPEND=" + $(add_frameworks_dep karchive) + app-text/docbook-xml-dtd:4.5 + app-text/docbook-xsl-stylesheets + app-text/sgml-common + dev-libs/libxml2:2 + dev-libs/libxslt +" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${P}-gentoo-docbundledir.patch" ) + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_find_package nls KF5I18n) + ) + + kde5_src_configure +} + +src_test() { + # bug 665622 + local myctestargs=( + -E "(kdoctools_install)" + ) + + kde5_src_test +} |