/[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.135 Revision 1.142
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.135 2014/04/25 19:39:42 johu Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.142 2014/10/25 19:01:53 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
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
80 if [[ ${KDE_BUILD_TYPE} = live ]]; then 80 if [[ ${KDE_BUILD_TYPE} = live ]]; then
81 # @ECLASS-VARIABLE: KDEVELOP_VERSION 81 # @ECLASS-VARIABLE: KDEVELOP_VERSION
82 # @DESCRIPTION: 82 # @DESCRIPTION:
83 # Specifies KDevelop version. Default is 4.0.0 for tagged packages and 9999 for live packages. 83 # Specifies KDevelop version. Default is 4.0.0 for tagged packages and 9999 for live packages.
84 # Applies to KDEBASE=kdevelop only. 84 # Applies to KDEBASE=kdevelop only.
85 KDEVELOP_VERSION="${KDEVELOP_VERSION:-9999}" 85 KDEVELOP_VERSION="${KDEVELOP_VERSION:-4.9999}"
86 # @ECLASS-VARIABLE: KDEVPLATFORM_VERSION 86 # @ECLASS-VARIABLE: KDEVPLATFORM_VERSION
87 # @DESCRIPTION: 87 # @DESCRIPTION:
88 # Specifies KDevplatform version. Default is 1.0.0 for tagged packages and 9999 for live packages. 88 # Specifies KDevplatform version. Default is 1.0.0 for tagged packages and 9999 for live packages.
89 # Applies to KDEBASE=kdevelop only. 89 # Applies to KDEBASE=kdevelop only.
90 KDEVPLATFORM_VERSION="${KDEVPLATFORM_VERSION:-9999}" 90 KDEVPLATFORM_VERSION="${KDEVPLATFORM_VERSION:-4.9999}"
91 else 91 else
92 case ${PN} in 92 case ${PN} in
93 kdevelop|quanta) 93 kdevelop)
94 KDEVELOP_VERSION=${PV} 94 KDEVELOP_VERSION=${PV}
95 KDEVPLATFORM_VERSION="$(($(get_major_version)-3)).$(get_after_major_version)" 95 KDEVPLATFORM_VERSION="$(($(get_major_version)-3)).$(get_after_major_version)"
96 ;; 96 ;;
97 kdevplatform|kdevelop-php*|kdevelop-python) 97 kdevplatform|kdevelop-php*|kdevelop-python)
98 KDEVELOP_VERSION="$(($(get_major_version)+3)).$(get_after_major_version)" 98 KDEVELOP_VERSION="$(($(get_major_version)+3)).$(get_after_major_version)"
307 # Applies to KDEBASE=kdevelop only. 307 # Applies to KDEBASE=kdevelop only.
308 KDEVPLATFORM_REQUIRED="${KDEVPLATFORM_REQUIRED:-always}" 308 KDEVPLATFORM_REQUIRED="${KDEVPLATFORM_REQUIRED:-always}"
309 case ${KDEVPLATFORM_REQUIRED} in 309 case ${KDEVPLATFORM_REQUIRED} in
310 always) 310 always)
311 kdecommondepend+=" 311 kdecommondepend+="
312 >=dev-util/kdevplatform-${KDEVPLATFORM_VERSION} 312 >=dev-util/kdevplatform-${KDEVPLATFORM_VERSION}:4
313 " 313 "
314 ;; 314 ;;
315 *) ;; 315 *) ;;
316 esac 316 esac
317 fi 317 fi
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" ;;
445 4.11.11)
446 # Part of 4.13 actually, sigh. Not stable for next release!
447 SRC_URI="mirror://kde/stable/4.13.3/src/${_kmname_pv}.tar.xz" ;;
448 4.11.12)
449 # Part of 4.14 actually, sigh. Not stable for next release!
450 SRC_URI="mirror://kde/stable/4.14.1/src/${_kmname_pv}.tar.xz" ;;
451 4.11.13)
452 # Part of 4.14 actually, sigh. Not stable for next release!
453 SRC_URI="mirror://kde/stable/4.14.2/src/${_kmname_pv}.tar.xz" ;;
451 *) 454 *)
452 # Stable KDE SC releases 455 # Stable KDE SC releases
453 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.xz" ;; 456 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.xz" ;;
454 esac 457 esac
455 ;; 458 ;;
469 case ${KDE_SCM} in 472 case ${KDE_SCM} in
470 svn) 473 svn)
471 # Determine branch URL based on live type 474 # Determine branch URL based on live type
472 local branch_prefix 475 local branch_prefix
473 case ${PV} in 476 case ${PV} in
474 9999*) 477 4.9999*)
475 # trunk 478 # trunk
476 branch_prefix="trunk/KDE" 479 branch_prefix="trunk/KDE"
477 ;; 480 ;;
478 *) 481 *)
479 # branch 482 # branch
556 else 559 else
557 _kmname=${PN} 560 _kmname=${PN}
558 fi 561 fi
559 562
560 # default branching 563 # default branching
561 [[ ${PV} != 9999* && ${KDEBASE} == kde-base ]] && \ 564 [[ ${PV} != 4.9999* && ${KDEBASE} == kde-base ]] && \
562 EGIT_BRANCH="KDE/$(get_kde_version)" 565 EGIT_BRANCH="KDE/$(get_kde_version)"
563 566
564 # default repo uri 567 # default repo uri
565 EGIT_REPO_URI+=( "${EGIT_MIRROR}/${_kmname}" ) 568 EGIT_REPO_URI+=( "${EGIT_MIRROR}/${_kmname}" )
566 569
598 unset KDEHOME 601 unset KDEHOME
599 602
600 # Check if gcc compiler is fresh enough. 603 # Check if gcc compiler is fresh enough.
601 # In theory should be in pkg_pretend but we check it only for kdelibs there 604 # In theory should be in pkg_pretend but we check it only for kdelibs there
602 # and for others we do just quick scan in pkg_setup because pkg_pretend 605 # and for others we do just quick scan in pkg_setup because pkg_pretend
603 # executions consume quite some time. 606 # executions consume quite some time (ie. when merging 300 packages at once will cause 300 checks)
604 if [[ ${MERGE_TYPE} != binary ]]; then 607 if [[ ${MERGE_TYPE} != binary ]]; then
605 [[ $(gcc-major-version) -lt 4 ]] || \ 608 [[ $(gcc-major-version) -lt 4 ]] || \
606 ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 3 ]] ) \ 609 ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 6 ]] ) \
607 && die "Sorry, but gcc-4.3 and earlier wont work for KDE (see bug 354837)." 610 && die "Sorry, but gcc-4.6 and earlier wont work for some KDE packages."
608 fi 611 fi
609 612
610 KDEDIR=/usr 613 KDEDIR=/usr
611 : ${PREFIX:=/usr} 614 : ${PREFIX:=/usr}
612 EKDEDIR=${EPREFIX}/usr 615 EKDEDIR=${EPREFIX}/usr
777 kded4 2>&1 > /dev/null & 780 kded4 2>&1 > /dev/null &
778 kded4_pid=$! 781 kded4_pid=$!
779 fi 782 fi
780 783
781 cmake-utils_src_test 784 cmake-utils_src_test
782 } 785 }
783 786
784 # When run as normal user during ebuild development with the ebuild command, the 787 # When run as normal user during ebuild development with the ebuild command, the
785 # kde tests tend to access the session DBUS. This however is not possible in a real 788 # kde tests tend to access the session DBUS. This however is not possible in a real
786 # emerge or on the tinderbox. 789 # emerge or on the tinderbox.
787 # > make sure it does not happen, so bad tests can be recognized and disabled 790 # > make sure it does not happen, so bad tests can be recognized and disabled

Legend:
Removed from v.1.135  
changed lines
  Added in v.1.142

  ViewVC Help
Powered by ViewVC 1.1.20