/[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.124 Revision 1.125
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.124 2013/03/03 00:22:56 pesa Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.125 2013/04/07 17:30:35 kensington 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
10# The kde4-base.eclass provides support for building KDE4 based ebuilds 10# The kde4-base.eclass provides support for building KDE4 based ebuilds
11# and KDE4 applications. 11# and KDE4 applications.
12# 12#
13# NOTE: KDE 4 ebuilds currently support EAPIs 3, 4, and 5. This will be 13# NOTE: KDE 4 ebuilds currently support EAPIs 3, 4, and 5. This will be
14# reviewed over time as new EAPI versions are approved. 14# reviewed over time as new EAPI versions are approved.
15
16if [[ ${___ECLASS_ONCE_KDE4_BASE} != "recur -_+^+_- spank" ]] ; then
17___ECLASS_ONCE_KDE4_BASE="recur -_+^+_- spank"
15 18
16# @ECLASS-VARIABLE: KDE_SELINUX_MODULE 19# @ECLASS-VARIABLE: KDE_SELINUX_MODULE
17# @DESCRIPTION: 20# @DESCRIPTION:
18# If set to "none", do nothing. 21# If set to "none", do nothing.
19# For any other value, add selinux to IUSE, and depending on that useflag 22# For any other value, add selinux to IUSE, and depending on that useflag
174 177
175 # This code is to prevent portage from searching GENTOO_MIRRORS for 178 # This code is to prevent portage from searching GENTOO_MIRRORS for
176 # packages that will never be mirrored. (As they only will ever be in 179 # packages that will never be mirrored. (As they only will ever be in
177 # the overlay). 180 # the overlay).
178 case ${PV} in 181 case ${PV} in
179 *9999* | 4.?.[6-9]?) 182 *9999* | 4.?.[6-9]? | 4.??.[6-9]?)
180 RESTRICT+=" mirror" 183 RESTRICT+=" mirror"
181 ;; 184 ;;
182 esac 185 esac
183 ;; 186 ;;
184 kdevelop) 187 kdevelop)
188esac 191esac
189 192
190# @ECLASS-VARIABLE: QT_MINIMAL 193# @ECLASS-VARIABLE: QT_MINIMAL
191# @DESCRIPTION: 194# @DESCRIPTION:
192# Determine version of qt we enforce as minimal for the package. 195# Determine version of qt we enforce as minimal for the package.
193if version_is_at_least 4.8.50 "${KDE_MINIMAL}"; then
194 # Upstream has added an *undeclared* dependency on Qt 4.8...
195 QT_MINIMAL="${QT_MINIMAL:-4.8.0}" 196QT_MINIMAL="${QT_MINIMAL:-4.8.0}"
196else
197 QT_MINIMAL="${QT_MINIMAL:-4.7.4}"
198fi
199 197
200# Declarative dependencies 198# Declarative dependencies
201qtdeclarativedepend=" 199qtdeclarativedepend="
202 >=dev-qt/qtdeclarative-${QT_MINIMAL}:4 200 >=dev-qt/qtdeclarative-${QT_MINIMAL}:4
203" 201"
373case ${KDE_SELINUX_MODULE} in 371case ${KDE_SELINUX_MODULE} in
374 none) ;; 372 none) ;;
375 *) 373 *)
376 IUSE+=" selinux" 374 IUSE+=" selinux"
377 kdecommondepend+=" selinux? ( sec-policy/selinux-${KDE_SELINUX_MODULE} )" 375 kdecommondepend+=" selinux? ( sec-policy/selinux-${KDE_SELINUX_MODULE} )"
376 ;;
377esac
378
379# These dependencies are added as they are unconditionally required by kde-workspace.
380# They are not necessarily required by individual applications but are pulled in to prevent
381# bugs like bug #444438. This list is subject to change in the future so do not rely on it
382# in ebuilds - always set correct dependencies.
383case ${KMNAME} in
384 kde-workspace)
385 kdedepend+="
386 x11-libs/xcb-util
387 x11-libs/libX11
388 x11-libs/libXcomposite
389 x11-libs/libXcursor
390 x11-libs/libXdamage
391 x11-libs/libXfixes
392 x11-libs/libxkbfile
393 x11-libs/libXrandr
394 x11-libs/libXrender
395 "
396 ;;
397 *)
378 ;; 398 ;;
379esac 399esac
380 400
381# We always need the aqua useflag because otherwise we cannot = refer to it inside 401# We always need the aqua useflag because otherwise we cannot = refer to it inside
382# add_kdebase_dep. This was always kind of a bug, but came to light with EAPI=5 402# add_kdebase_dep. This was always kind of a bug, but came to light with EAPI=5
904 gnome2_icon_cache_update 924 gnome2_icon_cache_update
905 fdo-mime_desktop_database_update 925 fdo-mime_desktop_database_update
906 fdo-mime_mime_database_update 926 fdo-mime_mime_database_update
907 buildsycoca 927 buildsycoca
908} 928}
929
930fi

Legend:
Removed from v.1.124  
changed lines
  Added in v.1.125

  ViewVC Help
Powered by ViewVC 1.1.20