diff options
author | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2016-06-19 16:55:10 +0200 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2016-06-20 00:59:34 +1000 |
commit | 5847c792505d4b32c2128eaa8a510afbd3555973 (patch) | |
tree | 3e5e3c080225bc9f4fdbf4d6ad0825bcbfe2b56c /x11-misc | |
parent | media-libs/libv4l-1.10.1-r0: add alpha keyword (diff) | |
download | gentoo-5847c792505d4b32c2128eaa8a510afbd3555973.tar.gz gentoo-5847c792505d4b32c2128eaa8a510afbd3555973.tar.bz2 gentoo-5847c792505d4b32c2128eaa8a510afbd3555973.zip |
x11-misc/kronometer: Fix USE=-handbook and USE=handbook
Gentoo-bug: 586220
Package-Manager: portage-2.2.28
Diffstat (limited to 'x11-misc')
-rw-r--r-- | x11-misc/kronometer/kronometer-2.1.0.ebuild | 17 |
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 +} |