commit: 8b044a866ca48bcfc3a6cd673a9f866c50e5e9d9 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> AuthorDate: Thu Jul 17 12:59:07 2014 +0000 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> CommitDate: Thu Jul 17 12:59:07 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=8b044a86
[eclass] Add logic to handle missing handbooks when the default is en_US instead of the usual en. --- eclass/kde4-functions.eclass | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass index 0a72e59..a5af8bd 100644 --- a/eclass/kde4-functions.eclass +++ b/eclass/kde4-functions.eclass @@ -216,6 +216,14 @@ enable_selected_doc_linguas() { # Disable subdirectories recursively comment_all_add_subdirectory "${handbookdir}" + + # In certain packages, the default handbook is en_US instead of the usual en. Since there is no en_US 'translation', + # it makes no sense to add to KDE_LINGUAS which causes this type of handbook to not be installed. + if [[ -d "${handbookdir}/en_US" && ! -d "${handbookdir}/en" ]]; then + mv "${handbookdir}/en_US" "${handbookdir}/en" || die + sed -e "s/en_US/en/" -i "${handbookdir}/CMakeLists.txt" + fi + # Add requested translations local lingua for lingua in en ${KDE_LINGUAS}; do