mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
x11-misc/kronometer: Fix USE=-handbook and USE=handbook
Gentoo-bug: 586220 Package-Manager: portage-2.2.28
This commit is contained in:
committed by
Michael Palimaka
parent
f042f0e1ed
commit
5847c79250
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user