/[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.76
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.76 2010/10/27 21:24:22 dilfridge 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}"
464 case ${PV} in 477 case ${PV} in
465 4.[456].8[05] | 4.[456].9[023568]) 478 4.[456].8[05] | 4.[456].9[023568])
466 # Unstable KDE SC releases 479 # Unstable KDE SC releases
467 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" 480 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2"
468 ;; 481 ;;
469 4.4.6) 482 4.4.6 | 4.4.7)
470 # Only kdepim here 483 # Only kdepim here
471 SRC_URI="mirror://kde/stable/kdepim-${PV}/src/${_kmname_pv}.tar.bz2" 484 SRC_URI="mirror://kde/stable/kdepim-${PV}/src/${_kmname_pv}.tar.bz2"
472 ;; 485 ;;
473 *) 486 *)
474 # Stable KDE SC releases 487 # Stable KDE SC releases
640 653
641 # Inject library dependencies 654 # Inject library dependencies
642 if [[ -n ${KMLOADLIBS} ]] ; then 655 if [[ -n ${KMLOADLIBS} ]] ; then
643 load_library_dependencies 656 load_library_dependencies
644 fi 657 fi
658
659 # Hack for manuals relying on outdated DTD
660 find "${S}" -name "*.docbook" \
661 -exec sed -i -r \
662 -e 's:-//KDE//DTD DocBook XML V4\.1(\..)?-Based Variant V1\.[01]//EN:-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN:g' {} + \
663 || die 'failed to fix DocBook variant version'
645} 664}
646 665
647# @FUNCTION: kde4-base_src_configure 666# @FUNCTION: kde4-base_src_configure
648# @DESCRIPTION: 667# @DESCRIPTION:
649# Function for configuring the build of KDE4 applications. 668# Function for configuring the build of KDE4 applications.

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

  ViewVC Help
Powered by ViewVC 1.1.20