/[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.122 Revision 1.123
1# Copyright 1999-2012 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.122 2013/02/02 16:58:00 dilfridge Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.123 2013/02/07 03:38:33 alexxy 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
9# @DESCRIPTION: 9# @DESCRIPTION:
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 EAPI "3". This will be reviewed 13# NOTE: KDE 4 ebuilds currently support EAPIs 3, 4, and 5. This will be
14# over time as new EAPI versions are approved. 14# reviewed over time as new EAPI versions are approved.
15 15
16# @ECLASS-VARIABLE: KDE_SELINUX_MODULE 16# @ECLASS-VARIABLE: KDE_SELINUX_MODULE
17# @DESCRIPTION: 17# @DESCRIPTION:
18# If set to "none", do nothing. 18# If set to "none", do nothing.
19# For any other value, add selinux to IUSE, and depending on that useflag 19# For any other value, add selinux to IUSE, and depending on that useflag
376 IUSE+=" selinux" 376 IUSE+=" selinux"
377 kdecommondepend+=" selinux? ( sec-policy/selinux-${KDE_SELINUX_MODULE} )" 377 kdecommondepend+=" selinux? ( sec-policy/selinux-${KDE_SELINUX_MODULE} )"
378 ;; 378 ;;
379esac 379esac
380 380
381# 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
383# (where referring to a use flag not in IUSE masks the ebuild).
384# The only alternative would be to prohibit using add_kdebase_dep if KDE_REQUIRED=never
385IUSE+=" aqua"
386
381case ${KDE_REQUIRED} in 387case ${KDE_REQUIRED} in
382 always) 388 always)
383 IUSE+=" aqua"
384 [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" ${kdecommondepend}" 389 [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" ${kdecommondepend}"
385 [[ -n ${kdedepend} ]] && DEPEND+=" ${kdedepend}" 390 [[ -n ${kdedepend} ]] && DEPEND+=" ${kdedepend}"
386 [[ -n ${kderdepend} ]] && RDEPEND+=" ${kderdepend}" 391 [[ -n ${kderdepend} ]] && RDEPEND+=" ${kderdepend}"
387 ;; 392 ;;
388 optional) 393 optional)
389 IUSE+=" aqua kde" 394 IUSE+=" kde"
390 [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" kde? ( ${kdecommondepend} )" 395 [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" kde? ( ${kdecommondepend} )"
391 [[ -n ${kdedepend} ]] && DEPEND+=" kde? ( ${kdedepend} )" 396 [[ -n ${kdedepend} ]] && DEPEND+=" kde? ( ${kdedepend} )"
392 [[ -n ${kderdepend} ]] && RDEPEND+=" kde? ( ${kderdepend} )" 397 [[ -n ${kderdepend} ]] && RDEPEND+=" kde? ( ${kderdepend} )"
393 ;; 398 ;;
394 *) ;; 399 *) ;;
433 case ${PV} in 438 case ${PV} in
434 4.4.11.1) 439 4.4.11.1)
435 # KDEPIM 4.4, special case 440 # KDEPIM 4.4, special case
436 # TODO: Remove this part when KDEPIM 4.4 gets out of the tree 441 # TODO: Remove this part when KDEPIM 4.4 gets out of the tree
437 SRC_URI="mirror://kde/stable/kdepim-${PV}/src/${_kmname_pv}.tar.bz2" ;; 442 SRC_URI="mirror://kde/stable/kdepim-${PV}/src/${_kmname_pv}.tar.bz2" ;;
438 4.[89].8[05] | 4.[89].9[0235678]) 443 4.?.[6-9]? | 4.??.[6-9]?)
439 # Unstable KDE SC releases 444 # Unstable KDE SC releases
440 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.xz" ;; 445 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.xz" ;;
441 4.[1234567].[12345]) 446 4.[1-7].[12345])
442 # Stable KDE SC with old .bz2 support 447 # Stable KDE SC with old .bz2 support
443 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;; 448 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
444 *) 449 *)
445 # Stable KDE SC releases 450 # Stable KDE SC releases
446 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.xz" ;; 451 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.xz" ;;
447 esac 452 esac
448 ;; 453 ;;
449 kdevelop|kdevelop-php*|kdevplatform) 454 kdevelop|kdevelop-php*|kdevplatform)
450 case ${KDEVELOP_VERSION} in 455 case ${KDEVELOP_VERSION} in
451 4.[12].[6-9]*) SRC_URI="mirror://kde/unstable/kdevelop/${KDEVELOP_VERSION}/src/${P}.tar.bz2" ;; 456 4.[123].[6-9]*) SRC_URI="mirror://kde/unstable/kdevelop/${KDEVELOP_VERSION}/src/${P}.tar.bz2" ;;
452 *) SRC_URI="mirror://kde/stable/kdevelop/${KDEVELOP_VERSION}/src/${P}.tar.bz2" ;; 457 *) SRC_URI="mirror://kde/stable/kdevelop/${KDEVELOP_VERSION}/src/${P}.tar.bz2" ;;
453 esac 458 esac
454 ;; 459 ;;
455 esac 460 esac
456} 461}

Legend:
Removed from v.1.122  
changed lines
  Added in v.1.123

  ViewVC Help
Powered by ViewVC 1.1.20