x11-misc/kronometer: Fix USE=-handbook and USE=handbook

Gentoo-bug: 586220

Package-Manager: portage-2.2.28
This commit is contained in:
Andreas Sturmlechner
2016-06-19 16:55:10 +02:00
committed by Michael Palimaka
parent f042f0e1ed
commit 5847c79250

View File

@@ -30,3 +30,20 @@ DEPEND="
$(add_qt_dep qtwidgets)
"
RDEPEND="${DEPEND}"
src_prepare() {
kde5_src_prepare
local docdir=doc-translations
if use_if_iuse handbook && [[ -d ${docdir} ]] ; then
pushd ${docdir} > /dev/null || die
for lang in *; do
if ! has ${lang/_${PN}/} ${LINGUAS} ; then
cmake_comment_add_subdirectory "${lang}/${PN}"
fi
done
popd > /dev/null || die
else
cmake_comment_add_subdirectory ${docdir}
fi
}