From 4cd432ea19c88edc3f4c47986f2837fa382433ae Mon Sep 17 00:00:00 2001 From: ormorph Date: Sat, 16 Jul 2022 10:25:32 +0200 Subject: Added handbook assembly in subpackages for the koffice metapackage Signed-off-by: ormorph --- trinity-apps/kpresenter/kpresenter-9999.ebuild | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'trinity-apps/kpresenter/kpresenter-9999.ebuild') diff --git a/trinity-apps/kpresenter/kpresenter-9999.ebuild b/trinity-apps/kpresenter/kpresenter-9999.ebuild index 962782ee..a6975dfd 100644 --- a/trinity-apps/kpresenter/kpresenter-9999.ebuild +++ b/trinity-apps/kpresenter/kpresenter-9999.ebuild @@ -1,5 +1,5 @@ # Copyright 1999-2021 Gentoo Authors -# Copyright 2021 The Trinity Desktop Project +# Copyright 2022 The Trinity Desktop Project # Distributed under the terms of the GNU General Public License v2 EAPI="8" @@ -8,7 +8,7 @@ TRINITY_MODULE_NAME="koffice" TRINITY_MODULE_TYPE="applications/office" TRINITY_BUILD_ADMIN="yes" TRINITY_SUBMODULE="filters/libdialogfilter kpresenter filters/kpresenter" -TSM_EXTRACT_ALSO="lib filters/liboofilter filters/generic_wrapper" +TSM_EXTRACT_ALSO="lib filters/liboofilter filters/generic_wrapper doc" inherit flag-o-matic trinity-meta-2 @@ -19,11 +19,14 @@ SLOT="14" if [[ ${PV} != *9999* ]] ; then KEYWORDS="~amd64 ~x86" fi -IUSE="arts" +IUSE="arts +handbook" DEPEND="~trinity-apps/koffice-libs-${PV}" -RDEPEND="$DEPEND" +RDEPEND="${DEPEND} + handbook? ( ~trinity-base/khelpcenter-${PV} + app-doc/doxygen ) +" KMCOPYLIB=" libkformula lib/kformula @@ -54,6 +57,9 @@ src_prepare() { libname="" fi done + if use handbook ; then + echo -e "KDE_LANG = en\nSUBDIRS = ${PN}" >"${S}/doc/Makefile.am" || die + fi echo "SUBDIRS=$dirlist" > ${S}/lib/Makefile.am echo "SUBDIRS = liboofilter libdialogfilter kpresenter" > ${S}/filters/Makefile.am @@ -84,3 +90,13 @@ src_compile() { emake popd } + +src_install() { + trinity-meta-2_src_install + if use handbook ; then + pushd "${S}/doc" || die + emake install DESTDIR="${D}" + popd + fi +} + -- cgit v1.2.1