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

Diff of /eclass/kde4-base.eclass

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

Revision 1.73 Revision 1.74
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 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-base.eclass,v 1.73 2010/09/13 21:47:37 reavertm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.74 2010/09/14 12:39:51 reavertm Exp $
4 4
5# @ECLASS: kde4-base.eclass 5# @ECLASS: kde4-base.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kde@gentoo.org 7# kde@gentoo.org
8# @BLURB: This eclass provides functions for kde 4.X ebuilds 8# @BLURB: This eclass provides functions for kde 4.X ebuilds
139 139
140# @ECLASS-VARIABLE: KDE_REQUIRED 140# @ECLASS-VARIABLE: KDE_REQUIRED
141# @DESCRIPTION: 141# @DESCRIPTION:
142# Is kde required? Possible values are 'always', 'optional' and 'never'. 142# Is kde required? Possible values are 'always', 'optional' and 'never'.
143# This variable must be set before inheriting any eclasses. Defaults to 'always' 143# This variable must be set before inheriting any eclasses. Defaults to 'always'
144# If set to always or optional, KDE_MINIMAL may be overriden as well. 144# If set to 'always' or 'optional', KDE_MINIMAL may be overriden as well.
145# Note that for kde-base packages this variable is fixed to 'always'. 145# Note that for kde-base packages this variable is fixed to 'always'.
146KDE_REQUIRED="${KDE_REQUIRED:-always}" 146KDE_REQUIRED="${KDE_REQUIRED:-always}"
147 147
148# @ECLASS-VARIABLE: KDE_HANDBOOK 148# @ECLASS-VARIABLE: KDE_HANDBOOK
149# @DESCRIPTION: 149# @DESCRIPTION:
150# Set to enable handbook in application. It adds +handbook to IUSE, handbook dirs 150# Set to enable handbook in application. Possible values are 'always', 'optional'
151# (handbook USE flag) and 'never'.
152# This variable must be set before inheriting any eclasses. Defaults to 'never'.
153# It adds default handbook dirs for kde-base packages to KMEXTRA and in any case it
151# to KMEXTRA and ensures buildtime and runtime dependencies. 154# ensures buildtime and runtime dependencies.
152[[ -n ${KDE_HANDBOOK} ]] && IUSE+=" +handbook" 155KDE_HANDBOOK="${KDE_HANDBOOK:-never}"
153 156
154# Setup packages inheriting this eclass 157# Setup packages inheriting this eclass
155case ${KDEBASE} in 158case ${KDEBASE} in
156 kde-base) 159 kde-base)
157 HOMEPAGE="http://www.kde.org/" 160 HOMEPAGE="http://www.kde.org/"
316 x11-proto/xf86vidmodeproto 319 x11-proto/xf86vidmodeproto
317 ) 320 )
318" 321"
319kderdepend="" 322kderdepend=""
320 323
321# Handbook handling - dependencies 324kdehandbookdepend="
322if [[ -n ${KDE_HANDBOOK} ]]; then
323 kdedepend+="
324 handbook? (
325 app-text/docbook-xml-dtd:4.2 325 app-text/docbook-xml-dtd:4.2
326 app-text/docbook-xsl-stylesheets 326 app-text/docbook-xsl-stylesheets
327 ) 327"
328 " 328kdehandbookrdepend="
329 $(add_kdebase_dep kdelibs 'handbook')
330"
331case ${KDE_HANDBOOK} in
332 always)
333 kdedepend+=" ${kdehandbookdepend}"
334 [[ ${PN} != kdelibs ]] && kderdepend+=" ${kdehandbookrdepend}"
335 ;;
336 optional)
337 IUSE+=" +handbook"
338 kdedepend+=" handbook? ( ${kdehandbookdepend} )"
329 [[ ${PN} != kdelibs ]] && kderdepend+=" handbook? ( $(add_kdebase_dep khelpcenter) )" 339 [[ ${PN} != kdelibs ]] && kderdepend+=" handbook? ( ${kdehandbookrdepend} )"
330fi 340 ;;
341 *) ;;
342esac
343unset kdehandbookdepend kdehandbookrdepend
331 344
332case ${KDE_REQUIRED} in 345case ${KDE_REQUIRED} in
333 always) 346 always)
334 IUSE+=" aqua" 347 IUSE+=" aqua"
335 [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" ${kdecommondepend}" 348 [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" ${kdecommondepend}"

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74

  ViewVC Help
Powered by ViewVC 1.1.20