/[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.137 Revision 1.140
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 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.137 2014/07/04 08:01:51 ulm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.140 2014/08/10 22:40:21 johu 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
11# and KDE4 applications. 11# and KDE4 applications.
12# 12#
13# NOTE: KDE 4 ebuilds currently support EAPIs 4 and 5. This will be 13# NOTE: KDE 4 ebuilds currently support EAPIs 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 15
16if [[ ${___ECLASS_ONCE_KDE4_BASE} != "recur -_+^+_- spank" ]] ; then 16if [[ -z ${_KDE4_BASE_ECLASS} ]]; then
17___ECLASS_ONCE_KDE4_BASE="recur -_+^+_- spank" 17_KDE4_BASE_ECLASS=1
18 18
19# @ECLASS-VARIABLE: KDE_SELINUX_MODULE 19# @ECLASS-VARIABLE: KDE_SELINUX_MODULE
20# @DESCRIPTION: 20# @DESCRIPTION:
21# If set to "none", do nothing. 21# If set to "none", do nothing.
22# 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
437 # Unstable KDE SC releases 437 # Unstable KDE SC releases
438 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.xz" ;; 438 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.xz" ;;
439 4.[1-7].[12345]) 439 4.[1-7].[12345])
440 # Stable KDE SC with old .bz2 support 440 # Stable KDE SC with old .bz2 support
441 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;; 441 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
442 4.11.7)
443 # Part of 4.12 actually, sigh. Not stable for next release!
444 SRC_URI="mirror://kde/stable/4.12.3/src/${_kmname_pv}.tar.xz" ;;
445 4.11.8)
446 # Part of 4.12 actually, sigh. Not stable for next release!
447 SRC_URI="mirror://kde/stable/4.12.4/src/${_kmname_pv}.tar.xz" ;;
448 4.11.9) 442 4.11.9)
449 # Part of 4.12 actually, sigh. Not stable for next release! 443 # Part of 4.12 actually, sigh. Not stable for next release!
450 SRC_URI="mirror://kde/stable/4.12.5/src/${_kmname_pv}.tar.xz" ;; 444 SRC_URI="mirror://kde/stable/4.12.5/src/${_kmname_pv}.tar.xz" ;;
451 4.11.10) 445 4.11.10)
452 # Part of 4.13 actually, sigh. Not stable for next release! 446 # Part of 4.13 actually, sigh. Not stable for next release!
453 SRC_URI="mirror://kde/stable/4.13.2/src/${_kmname_pv}.tar.xz" ;; 447 SRC_URI="mirror://kde/stable/4.13.2/src/${_kmname_pv}.tar.xz" ;;
448 4.11.11)
449 # Part of 4.13 actually, sigh. Not stable for next release!
450 SRC_URI="mirror://kde/stable/4.13.3/src/${_kmname_pv}.tar.xz" ;;
454 *) 451 *)
455 # Stable KDE SC releases 452 # Stable KDE SC releases
456 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.xz" ;; 453 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.xz" ;;
457 esac 454 esac
458 ;; 455 ;;
604 # In theory should be in pkg_pretend but we check it only for kdelibs there 601 # In theory should be in pkg_pretend but we check it only for kdelibs there
605 # and for others we do just quick scan in pkg_setup because pkg_pretend 602 # and for others we do just quick scan in pkg_setup because pkg_pretend
606 # executions consume quite some time. 603 # executions consume quite some time.
607 if [[ ${MERGE_TYPE} != binary ]]; then 604 if [[ ${MERGE_TYPE} != binary ]]; then
608 [[ $(gcc-major-version) -lt 4 ]] || \ 605 [[ $(gcc-major-version) -lt 4 ]] || \
609 ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 3 ]] ) \ 606 ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 6 ]] ) \
610 && die "Sorry, but gcc-4.3 and earlier wont work for KDE (see bug 354837)." 607 && die "Sorry, but gcc-4.6 and earlier wont work for some KDE packages."
611 fi 608 fi
612 609
613 KDEDIR=/usr 610 KDEDIR=/usr
614 : ${PREFIX:=/usr} 611 : ${PREFIX:=/usr}
615 EKDEDIR=${EPREFIX}/usr 612 EKDEDIR=${EPREFIX}/usr

Legend:
Removed from v.1.137  
changed lines
  Added in v.1.140

  ViewVC Help
Powered by ViewVC 1.1.20