summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11-misc/kronometer/kronometer-2.1.0.ebuild17
1 files changed, 17 insertions, 0 deletions
diff --git a/x11-misc/kronometer/kronometer-2.1.0.ebuild b/x11-misc/kronometer/kronometer-2.1.0.ebuild
index ec61f4d0bc1e..0a34912d9767 100644
--- a/x11-misc/kronometer/kronometer-2.1.0.ebuild
+++ b/x11-misc/kronometer/kronometer-2.1.0.ebuild
@@ -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
+}