Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: eclass/
Date: Tue, 01 May 2012 22:19:28
Message-Id: 1335910760.d7acb852c5e4137e2fe8c925a2fde595cc26ef22.dilfridge@gentoo
1 commit: d7acb852c5e4137e2fe8c925a2fde595cc26ef22
2 Author: Andreas K. Huettel (dilfridge) <mail <AT> akhuettel <DOT> de>
3 AuthorDate: Tue May 1 22:18:40 2012 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Tue May 1 22:19:20 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=d7acb852
7
8 [eclass] Fix build with unset LINGUAS and USE=-handbook, bug 372457
9
10 ---
11 eclass/kde4-functions.eclass | 10 +++++-----
12 1 files changed, 5 insertions(+), 5 deletions(-)
13
14 diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass
15 index fba1b07..a1dee6a 100644
16 --- a/eclass/kde4-functions.eclass
17 +++ b/eclass/kde4-functions.eclass
18 @@ -183,11 +183,6 @@ enable_selected_linguas() {
19 enable_selected_doc_linguas() {
20 debug-print-function ${FUNCNAME} "$@"
21
22 - # if there is no linguas defined we enable everything
23 - if ! $(env | grep -q "^LINGUAS="); then
24 - return 0
25 - fi
26 -
27 # @ECLASS-VARIABLE: KDE_DOC_DIRS
28 # @DESCRIPTION:
29 # Variable specifying whitespace separated patterns for documentation locations.
30 @@ -208,6 +203,11 @@ enable_selected_doc_linguas() {
31 -e "/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*${handbookdir}[[:space:]]*)/s/^/#DONOTCOMPILE /" \
32 -i CMakeLists.txt || die 'failed to comment out all handbooks'
33 else
34 + # if there is no linguas defined we enable everything (i.e. comment out nothing)
35 + if ! $(env | grep -q "^LINGUAS="); then
36 + return 0
37 + fi
38 +
39 # Disable subdirectories recursively
40 comment_all_add_subdirectory "${handbookdir}"
41 # Add requested translations