/[gentoo-x86]/eclass/kde4-functions.eclass
Gentoo

Diff of /eclass/kde4-functions.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.58 Revision 1.59
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.58 2011/12/18 00:00:45 dilfridge Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.59 2012/05/08 22:00:49 dilfridge Exp $
4 4
5inherit versionator 5inherit versionator
6 6
7# @ECLASS: kde4-functions.eclass 7# @ECLASS: kde4-functions.eclass
8# @MAINTAINER: 8# @MAINTAINER:
181# @DESCRIPTION: 181# @DESCRIPTION:
182# Enable only selected linguas enabled doc folders. 182# Enable only selected linguas enabled doc folders.
183enable_selected_doc_linguas() { 183enable_selected_doc_linguas() {
184 debug-print-function ${FUNCNAME} "$@" 184 debug-print-function ${FUNCNAME} "$@"
185 185
186 # if there is no linguas defined we enable everything
187 if ! $(env | grep -q "^LINGUAS="); then
188 return 0
189 fi
190
191 # @ECLASS-VARIABLE: KDE_DOC_DIRS 186 # @ECLASS-VARIABLE: KDE_DOC_DIRS
192 # @DESCRIPTION: 187 # @DESCRIPTION:
193 # Variable specifying whitespace separated patterns for documentation locations. 188 # Variable specifying whitespace separated patterns for documentation locations.
194 # Default is "doc/%lingua" 189 # Default is "doc/%lingua"
195 KDE_DOC_DIRS=${KDE_DOC_DIRS:='doc/%lingua'} 190 KDE_DOC_DIRS=${KDE_DOC_DIRS:='doc/%lingua'}
206 # Disable whole directory 201 # Disable whole directory
207 sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${handbookdir}[[:space:]]*)/s/^/#DONOTCOMPILE /" \ 202 sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${handbookdir}[[:space:]]*)/s/^/#DONOTCOMPILE /" \
208 -e "/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*${handbookdir}[[:space:]]*)/s/^/#DONOTCOMPILE /" \ 203 -e "/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*${handbookdir}[[:space:]]*)/s/^/#DONOTCOMPILE /" \
209 -i CMakeLists.txt || die 'failed to comment out all handbooks' 204 -i CMakeLists.txt || die 'failed to comment out all handbooks'
210 else 205 else
206 # if there is no linguas defined we enable everything (i.e. comment out nothing)
207 if ! $(env | grep -q "^LINGUAS="); then
208 return 0
209 fi
210
211 # Disable subdirectories recursively 211 # Disable subdirectories recursively
212 comment_all_add_subdirectory "${handbookdir}" 212 comment_all_add_subdirectory "${handbookdir}"
213 # Add requested translations 213 # Add requested translations
214 local lingua 214 local lingua
215 for lingua in en ${KDE_LINGUAS}; do 215 for lingua in en ${KDE_LINGUAS}; do

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59

  ViewVC Help
Powered by ViewVC 1.1.20