/[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.96 Revision 1.97
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.96 2011/06/06 21:38:18 abcd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.97 2011/06/07 20:11:04 abcd 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
39if [[ ${CMAKE_REQUIRED} = always ]]; then 39if [[ ${CMAKE_REQUIRED} = always ]]; then
40 buildsystem_eclass="cmake-utils" 40 buildsystem_eclass="cmake-utils"
41 export_fns="src_configure src_compile src_test src_install" 41 export_fns="src_configure src_compile src_test src_install"
42fi 42fi
43 43
44# Verify KDE_MINIMAL (display QA notice in pkg_setup, still we need to fix it here)
45if [[ -n ${KDE_MINIMAL} ]]; then
46 for slot in ${KDE_SLOTS[@]} ${KDE_LIVE_SLOTS[@]}; do
47 [[ ${KDE_MINIMAL} = ${slot} ]] && KDE_MINIMAL_VALID=1 && break
48 done
49 unset slot
50 [[ -z ${KDE_MINIMAL_VALID} ]] && unset KDE_MINIMAL
51else
52 KDE_MINIMAL_VALID=1
53fi
54
55# @ECLASS-VARIABLE: KDE_MINIMAL 44# @ECLASS-VARIABLE: KDE_MINIMAL
56# @DESCRIPTION: 45# @DESCRIPTION:
57# This variable is used when KDE_REQUIRED is set, to specify required KDE minimal 46# This variable is used when KDE_REQUIRED is set, to specify required KDE minimal
58# version for apps to work. Currently defaults to 4.4 47# version for apps to work. Currently defaults to 4.4
59# One may override this variable to raise version requirements. 48# One may override this variable to raise version requirements.
60# For possible values look at KDE_SLOTS and KDE_LIVE_SLOTS variables.
61# Note that it is fixed to ${SLOT} for kde-base packages. 49# Note that it is fixed to ${PV} for kde-base packages.
62KDE_MINIMAL="${KDE_MINIMAL:-4.4}" 50KDE_MINIMAL="${KDE_MINIMAL:-4.4}"
63 51
64# Set slot for KDEBASE known packages 52# Set slot for KDEBASE known packages
65case ${KDEBASE} in 53case ${KDEBASE} in
66 kde-base) 54 kde-base)
67 SLOT=$(_calculate_kde_slot) 55 SLOT=$(get_kde_version)
68 [[ -z ${SLOT} ]] && die "Unsupported ${PV}" 56 [[ -z ${SLOT} ]] && die "Unsupported PV ${PV}"
69 KDE_MINIMAL="${SLOT}" 57 KDE_MINIMAL="${PV}"
70 ;; 58 ;;
71 koffice) 59 koffice)
72 SLOT="2" 60 SLOT="2"
73 ;; 61 ;;
74 kdevelop) 62 kdevelop)
205esac 193esac
206 194
207# @ECLASS-VARIABLE: QT_MINIMAL 195# @ECLASS-VARIABLE: QT_MINIMAL
208# @DESCRIPTION: 196# @DESCRIPTION:
209# Determine version of qt we enforce as minimal for the package. 197# Determine version of qt we enforce as minimal for the package.
210if slot_is_at_least 4.6 "${KDE_MINIMAL}"; then 198if version_is_at_least 4.5.50 "${KDE_MINIMAL}"; then
211 QT_MINIMAL="${QT_MINIMAL:-4.7.0}" 199 QT_MINIMAL="${QT_MINIMAL:-4.7.0}"
212else 200else
213 QT_MINIMAL="${QT_MINIMAL:-4.6.3}" 201 QT_MINIMAL="${QT_MINIMAL:-4.6.3}"
214fi 202fi
215 203
492 # trunk 480 # trunk
493 branch_prefix="trunk/KDE" 481 branch_prefix="trunk/KDE"
494 ;; 482 ;;
495 *) 483 *)
496 # branch 484 # branch
497 branch_prefix="branches/KDE/${SLOT}" 485 branch_prefix="branches/KDE/$(get_kde_version)"
498 # @ECLASS-VARIABLE: ESVN_PROJECT_SUFFIX 486 # @ECLASS-VARIABLE: ESVN_PROJECT_SUFFIX
499 # @DESCRIPTION 487 # @DESCRIPTION
500 # Suffix appended to ESVN_PROJECT depending on fetched branch. 488 # Suffix appended to ESVN_PROJECT depending on fetched branch.
501 # Defaults is empty (for -9999 = trunk), and "-${PV}" otherwise. 489 # Defaults is empty (for -9999 = trunk), and "-${PV}" otherwise.
502 ESVN_PROJECT_SUFFIX="-${PV}" 490 ESVN_PROJECT_SUFFIX="-${PV}"
579 567
580 # default branching 568 # default branching
581 case ${PV} in 569 case ${PV} in
582 9999*) ;; 570 9999*) ;;
583 *) 571 *)
584 # set EGIT_BRANCH and EGIT_COMMIT to ${SLOT} 572 # set EGIT_BRANCH and EGIT_COMMIT to $(get_kde_version)
585 case ${_kmname} in 573 case ${_kmname} in
586 kdeplasma-addons | kdepim | kdepim-runtime | kdepimlibs | okular) 574 kdeplasma-addons | kdepim | kdepim-runtime | kdepimlibs | okular)
587 EGIT_BRANCH="${SLOT}" 575 EGIT_BRANCH="$(get_kde_version)"
588 ;; 576 ;;
589 marble) 577 marble)
590 EGIT_BRANCH="kde-${SLOT}" 578 EGIT_BRANCH="kde-$(get_kde_version)"
591 ;; 579 ;;
592 *) EGIT_BRANCH="KDE/${SLOT}" ;; 580 *) EGIT_BRANCH="KDE/$(get_kde_version)" ;;
593 esac 581 esac
594 ;; 582 ;;
595 esac 583 esac
596 584
597 EGIT_REPO_URI="${EGIT_MIRROR}/${_kmname}" 585 EGIT_REPO_URI="${EGIT_MIRROR}/${_kmname}"
633 has_version kde-base/kdelibs[kdeprefix]; then 621 has_version kde-base/kdelibs[kdeprefix]; then
634 eerror "Sorry, kdeprefix support has been removed." 622 eerror "Sorry, kdeprefix support has been removed."
635 eerror "Please rebuild kdelibs without kdeprefix support." 623 eerror "Please rebuild kdelibs without kdeprefix support."
636 die "kdeprefix support has been removed" 624 die "kdeprefix support has been removed"
637 fi 625 fi
638
639 # QA ebuilds
640 [[ -z ${KDE_MINIMAL_VALID} ]] && ewarn "QA Notice: ignoring invalid KDE_MINIMAL (defaulting to ${KDE_MINIMAL})."
641 626
642 # Don't set KDEHOME during compilation, it will cause access violations 627 # Don't set KDEHOME during compilation, it will cause access violations
643 unset KDEHOME 628 unset KDEHOME
644 629
645 # Check if gcc compiler is fresh enough. 630 # Check if gcc compiler is fresh enough.

Legend:
Removed from v.1.96  
changed lines
  Added in v.1.97

  ViewVC Help
Powered by ViewVC 1.1.20