diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2019-08-17 23:54:10 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-08-18 01:01:58 +0200 |
commit | 2fb6ab9768812b92412e49f6a2c2c3362ad7fb74 (patch) | |
tree | 93d86a1ada9529d5a7f41d290ba23f93d0046354 /kde-frameworks | |
parent | */*: Depend on media-libs/mesa[X(+)] (diff) | |
download | gentoo-2fb6ab9768812b92412e49f6a2c2c3362ad7fb74.tar.gz gentoo-2fb6ab9768812b92412e49f6a2c2c3362ad7fb74.tar.bz2 gentoo-2fb6ab9768812b92412e49f6a2c2c3362ad7fb74.zip |
kde-frameworks/kdoctools: Drop use of deprecated KDEInstallDirs vars
Package-Manager: Portage-2.3.71, Repoman-2.3.17
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-frameworks')
-rw-r--r-- | kde-frameworks/kdoctools/files/kdoctools-5.61.0-nondeprecated-kdeinstalldirs.patch | 89 | ||||
-rw-r--r-- | kde-frameworks/kdoctools/kdoctools-5.61.0-r1.ebuild | 49 |
2 files changed, 138 insertions, 0 deletions
diff --git a/kde-frameworks/kdoctools/files/kdoctools-5.61.0-nondeprecated-kdeinstalldirs.patch b/kde-frameworks/kdoctools/files/kdoctools-5.61.0-nondeprecated-kdeinstalldirs.patch new file mode 100644 index 000000000000..ea250cb305ce --- /dev/null +++ b/kde-frameworks/kdoctools/files/kdoctools-5.61.0-nondeprecated-kdeinstalldirs.patch @@ -0,0 +1,89 @@ +From 2a23bf672f25da3a0b6619969f308133fbd92a7c Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <asturm@gentoo.org> +Date: Sat, 17 Aug 2019 22:42:39 +0200 +Subject: [PATCH] KF5DocToolsMacros.cmake: Use non-deprecated KDEInstallDirs + variables + +Summary: +HTML_INSTALL_DIR -> KDE_INSTALL_DOCBUNDLEDIR +MAN_INSTALL_DIR -> KDE_INSTALL_MANDIR + +BUG: 410998 + +Test Plan: Install paths are correct by example of marble. + +Subscribers: kde-frameworks-devel, kde-doc-english + +Tags: #frameworks, #documentation + +Differential Revision: https://phabricator.kde.org/D23229 +--- + KF5DocToolsMacros.cmake | 30 +++++++++++++++++++----------- + 1 file changed, 19 insertions(+), 11 deletions(-) + +diff --git a/KF5DocToolsMacros.cmake b/KF5DocToolsMacros.cmake +index 88a2b3e..91d8736 100644 +--- a/KF5DocToolsMacros.cmake ++++ b/KF5DocToolsMacros.cmake +@@ -63,13 +63,13 @@ + # + # KDOCTOOLS_INSTALL(po) does the following: + # - Create man pages from footool.1.docbook and footool.conf.5.docbook, +-# install them in ${MAN_INSTALL_DIR}/fr ++# install them in ${KDE_INSTALL_MANDIR}/fr + # - Create handbooks from index.docbook files, install the one from the +-# fooslave/ directory in ${HTML_INSTALL_DIR}/fr/kioslave5/fooslave +-# and the one from the docs/ directory in $[HTML_INSTALL_DIR}/fr ++# fooslave/ directory in ${KDE_INSTALL_DOCBUNDLEDIR}/fr/kioslave5/fooslave ++# and the one from the docs/ directory in ${KDE_INSTALL_DOCBUNDLEDIR}/fr + # +-# If ${HTML_INSTALL_DIR} is not set, share/doc/HTML is used instead. +-# If ${MAN_INSTALL_DIR} is not set, share/man/<lang> is used instead. ++# If ${KDE_INSTALL_DOCBUNDLEDIR} is not set, share/doc/HTML is used instead. ++# If ${KDE_INSTALL_MANDIR} is not set, share/man/<lang> is used instead. + # + # KDOCTOOLS_MEINPROC_EXECUTABLE - the meinproc5 executable + # +@@ -232,11 +232,19 @@ endfunction() + + function(kdoctools_install podir) + file(GLOB lang_dirs "${podir}/*") +- if (NOT MAN_INSTALL_DIR) +- set(MAN_INSTALL_DIR share/man) ++ if (NOT KDE_INSTALL_MANDIR) ++ if (MAN_INSTALL_DIR) # TODO KF6: deprecated, remove ++ set(KDE_INSTALL_MANDIR ${MAN_INSTALL_DIR}) ++ else() ++ set(KDE_INSTALL_MANDIR share/man) ++ endif() + endif() +- if (NOT HTML_INSTALL_DIR) +- set(HTML_INSTALL_DIR share/doc/HTML) ++ if (NOT KDE_INSTALL_DOCBUNDLEDIR) ++ if (HTML_INSTALL_DIR) # TODO KF6: deprecated, remove ++ set(KDE_INSTALL_DOCBUNDLEDIR ${HTML_INSTALL_DIR}) ++ else() ++ set(KDE_INSTALL_DOCBUNDLEDIR share/doc/HTML) ++ endif() + endif() + foreach(lang_dir ${lang_dirs}) + get_filename_component(lang ${lang_dir} NAME) +@@ -246,13 +254,13 @@ function(kdoctools_install podir) + string(REGEX MATCH "\\.([0-9])\\.docbook" match ${docbook}) + if (match) + kdoctools_create_manpage(${docbook} ${CMAKE_MATCH_1} +- INSTALL_DESTINATION ${MAN_INSTALL_DIR}/${lang} ++ INSTALL_DESTINATION ${KDE_INSTALL_MANDIR}/${lang} + ) + else() + string(REGEX MATCH "${lang_dir}/docs/(.*)/index.docbook" match ${docbook}) + if (match) + kdoctools_create_handbook(${docbook} +- INSTALL_DESTINATION ${HTML_INSTALL_DIR}/${lang} ++ INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/${lang} + SUBDIR ${CMAKE_MATCH_1} + ) + endif() +-- +2.22.1 + diff --git a/kde-frameworks/kdoctools/kdoctools-5.61.0-r1.ebuild b/kde-frameworks/kdoctools/kdoctools-5.61.0-r1.ebuild new file mode 100644 index 000000000000..1027f3f8456c --- /dev/null +++ b/kde-frameworks/kdoctools/kdoctools-5.61.0-r1.ebuild @@ -0,0 +1,49 @@ +# 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}/${PN}-5.54.0-gentoo-docbundledir.patch" + "${FILESDIR}/${P}-nondeprecated-kdeinstalldirs.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 +} |