/[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.68 Revision 1.69
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.68 2010/08/13 05:05:40 reavertm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.69 2010/09/09 17:02:30 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
111EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare ${export_fns} pkg_postinst pkg_postrm 111EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare ${export_fns} pkg_postinst pkg_postrm
112 112
113unset buildsystem_eclass 113unset buildsystem_eclass
114unset export_fns 114unset export_fns
115 115
116case ${KDEBASE} in
117 kde-base)
118 HOMEPAGE="http://www.kde.org/"
119 LICENSE="GPL-2"
120 ;;
121 koffice)
122 HOMEPAGE="http://www.koffice.org/"
123 LICENSE="GPL-2"
124 ;;
125 kdevelop)
126 HOMEPAGE="http://www.kdevelop.org/"
127 LICENSE="GPL-2"
128 ;;
129esac
130
131# @ECLASS-VARIABLE: OPENGL_REQUIRED 116# @ECLASS-VARIABLE: OPENGL_REQUIRED
132# @DESCRIPTION: 117# @DESCRIPTION:
133# Is qt-opengl required? Possible values are 'always', 'optional' and 'never'. 118# Is qt-opengl required? Possible values are 'always', 'optional' and 'never'.
134# This variable must be set before inheriting any eclasses. Defaults to 'never'. 119# This variable must be set before inheriting any eclasses. Defaults to 'never'.
135OPENGL_REQUIRED="${OPENGL_REQUIRED:-never}" 120OPENGL_REQUIRED="${OPENGL_REQUIRED:-never}"
158# 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'
159# 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.
160# 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'.
161KDE_REQUIRED="${KDE_REQUIRED:-always}" 146KDE_REQUIRED="${KDE_REQUIRED:-always}"
162 147
148# @ECLASS-VARIABLE: KDE_HANDBOOK
149# @DESCRIPTION:
150# Set to enable handbook in application. It adds +handbook to IUSE, handbook dirs
151# to KMEXTRA and ensures buildtime and runtime dependencies.
152[[ -n ${KDE_HANDBOOK} ]] && IUSE+=" +handbook"
153
163# Setup packages inheriting this eclass 154# Setup packages inheriting this eclass
164case ${KDEBASE} in 155case ${KDEBASE} in
165 kde-base) 156 kde-base)
157 HOMEPAGE="http://www.kde.org/"
158 LICENSE="GPL-2"
166 if [[ $BUILD_TYPE = live ]]; then 159 if [[ $BUILD_TYPE = live ]]; then
167 # Disable tests for live ebuilds 160 # Disable tests for live ebuilds
168 RESTRICT+=" test" 161 RESTRICT+=" test"
169 # Live ebuilds in kde-base default to kdeprefix by default 162 # Live ebuilds in kde-base default to kdeprefix by default
170 IUSE+=" +kdeprefix" 163 IUSE+=" +kdeprefix"
180 RESTRICT+=" mirror" 173 RESTRICT+=" mirror"
181 ;; 174 ;;
182 esac 175 esac
183 # Block installation of other SLOTS unless kdeprefix 176 # Block installation of other SLOTS unless kdeprefix
184 RDEPEND+=" $(block_other_slots)" 177 RDEPEND+=" $(block_other_slots)"
178 ;;
179 koffice)
180 HOMEPAGE="http://www.koffice.org/"
181 LICENSE="GPL-2"
182 ;;
183 kdevelop)
184 HOMEPAGE="http://www.kdevelop.org/"
185 LICENSE="GPL-2"
185 ;; 186 ;;
186esac 187esac
187 188
188# @ECLASS-VARIABLE: QT_MINIMAL 189# @ECLASS-VARIABLE: QT_MINIMAL
189# @DESCRIPTION: 190# @DESCRIPTION:
320 !aqua? ( 321 !aqua? (
321 || ( >=x11-libs/libXtst-1.1.0 <x11-proto/xextproto-7.1.0 ) 322 || ( >=x11-libs/libXtst-1.1.0 <x11-proto/xextproto-7.1.0 )
322 x11-proto/xf86vidmodeproto 323 x11-proto/xf86vidmodeproto
323 ) 324 )
324" 325"
326
327# Handbook handling - dependencies
328if [[ -n ${KDE_HANDBOOK} ]]; then
329 kdedepend+="
330 handbook? (
331 app-text/docbook-xml-dtd:4.2
332 app-text/docbook-xsl-stylesheets
333 )
334 "
335 if [[ ${PN} != kdelibs ]]; then
336 if [[ ${KDEBASE} = kde-base ]]; then
337 PDEPEND+=" handbook? ( $(add_kdebase_dep kdelibs 'handbook') )"
338 else
339 PDEPEND+=" handbook? ( >=kde-base/kdelibs-${KDE_MINIMAL}[handbook] )"
340 fi
341 elif [[ ${PN} != khelpcenter ]]; then
342 if [[ ${KDEBASE} = kde-base ]]; then
343 PDEPEND+=" handbook? ( $(add_kdebase_dep khelpcenter 'handbook') )"
344 else
345 PDEPEND+=" handbook? ( >=kde-base/khelpcenter-${KDE_MINIMAL}[handbook] )"
346 fi
347 fi
348fi
349
325case ${KDE_REQUIRED} in 350case ${KDE_REQUIRED} in
326 always) 351 always)
327 IUSE+=" aqua" 352 IUSE+=" aqua"
328 COMMONDEPEND+=" ${kdecommondepend}" 353 COMMONDEPEND+=" ${kdecommondepend}"
329 DEPEND+=" ${kdedepend}" 354 DEPEND+=" ${kdedepend}"
339unset kdecommondepend kdedepend 364unset kdecommondepend kdedepend
340 365
341debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: COMMONDEPEND is ${COMMONDEPEND}" 366debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: COMMONDEPEND is ${COMMONDEPEND}"
342debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND (only) is ${DEPEND}" 367debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND (only) is ${DEPEND}"
343debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: RDEPEND (only) is ${RDEPEND}" 368debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: RDEPEND (only) is ${RDEPEND}"
369debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: PDEPEND is ${PDEPEND}"
344 370
345# Accumulate dependencies set by this eclass 371# Accumulate dependencies set by this eclass
346DEPEND+=" ${COMMONDEPEND}" 372DEPEND+=" ${COMMONDEPEND}"
347RDEPEND+=" ${COMMONDEPEND}" 373RDEPEND+=" ${COMMONDEPEND}"
348unset COMMONDEPEND 374unset COMMONDEPEND

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69

  ViewVC Help
Powered by ViewVC 1.1.20