/[gentoo-x86]/eclass/kde4-functions.eclass
Gentoo

Diff of /eclass/kde4-functions.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.48 Revision 1.50
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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-functions.eclass,v 1.48 2011/05/24 20:54:58 abcd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.50 2011/06/06 21:38:18 abcd Exp $
4 4
5inherit versionator 5inherit versionator
6 6
7# @ECLASS: kde4-functions.eclass 7# @ECLASS: kde4-functions.eclass
8# @MAINTAINER: 8# @MAINTAINER:
76 EGIT_REPONAME=${EGIT_REPONAME:=kde-runtime} 76 EGIT_REPONAME=${EGIT_REPONAME:=kde-runtime}
77 ;; 77 ;;
78 kdebase-apps) 78 kdebase-apps)
79 KDE_SCM="git" 79 KDE_SCM="git"
80 EGIT_REPONAME=${EGIT_REPONAME:=kde-baseapps} 80 EGIT_REPONAME=${EGIT_REPONAME:=kde-baseapps}
81 ;;
82 kde-workspace|kde-runtime|kde-baseapps)
83 KDE_SCM="git"
81 ;; 84 ;;
82 esac 85 esac
83fi 86fi
84 87
85# @ECLASS-VARIABLE: KDE_SCM 88# @ECLASS-VARIABLE: KDE_SCM
345 eend $? 348 eend $?
346} 349}
347 350
348# @FUNCTION: block_other_slots 351# @FUNCTION: block_other_slots
349# @DESCRIPTION: 352# @DESCRIPTION:
350# Create blocks for the current package in other slots when 353# Create blocks for the current package in other slots
351# installed with USE=-kdeprefix
352block_other_slots() { 354block_other_slots() {
353 debug-print-function ${FUNCNAME} "$@" 355 debug-print-function ${FUNCNAME} "$@"
354 356
355 _do_blocker ${PN} 0:${SLOT} 357 _do_blocker ${PN} 0:${SLOT}
356} 358}
376# "4.x", but nothing following slot "4.x" 378# "4.x", but nothing following slot "4.x"
377# 379#
378# As an example, if SLOT=live, then 380# As an example, if SLOT=live, then
379# add_blocker kdelibs 0 :4.3 '<4.3.96:4.4' 9999:live 381# add_blocker kdelibs 0 :4.3 '<4.3.96:4.4' 9999:live
380# will add the following to RDEPEND: 382# will add the following to RDEPEND:
381# !kdeprefix? ( !kde-base/kdelibs:4.3[-kdeprefix] ) 383# !kde-base/kdelibs:4.3
382# !kdeprefix? ( !<kde-base/kdelibs-4.3.96:4.4[-kdeprefix] ) 384# !<kde-base/kdelibs-4.3.96:4.4
383# !<=kde-base/kdelibs-9999:live 385# !<=kde-base/kdelibs-9999:live
384add_blocker() { 386add_blocker() {
385 debug-print-function ${FUNCNAME} "$@" 387 debug-print-function ${FUNCNAME} "$@"
386 388
387 RDEPEND+=" $(_do_blocker "$@")" 389 RDEPEND+=" $(_do_blocker "$@")"
424 426
425 [[ -z ${1} ]] && die "Missing parameter" 427 [[ -z ${1} ]] && die "Missing parameter"
426 428
427 local use=${2:+,${2}} 429 local use=${2:+,${2}}
428 430
429 if [[ ${KDEBASE} = kde-base ]]; then
430 echo " !kdeprefix? ( >=kde-base/${1}-${ver}[aqua=,-kdeprefix${use}] )"
431 # kdeprefix is no-go for kdepim 4.4
432 [[ ( ${KMNAME} == kdepim || ${PN} == kdepim-runtime ) && ${SLOT} == 4.4 ]] || \
433 echo " kdeprefix? ( >=kde-base/${1}-${ver}:${SLOT}[aqua=,kdeprefix${use}] )"
434 elif [[ ${ver} == live ]]; then 431 if [[ ${ver} == live ]]; then
435 echo " kde-base/${1}:live[aqua=${use}]" 432 echo " kde-base/${1}:live[aqua=${use}]"
436 else 433 else
437 echo " >=kde-base/${1}-${ver}[aqua=${use}]" 434 echo " >=kde-base/${1}-${ver}[aqua=${use}]"
438 fi 435 fi
439} 436}
530 # this also removes the first character of the version, which is a "<" 527 # this also removes the first character of the version, which is a "<"
531 atom="<${pkg}-${!var:1}" 528 atom="<${pkg}-${!var:1}"
532 else 529 else
533 atom="<=${pkg}-${!var}" 530 atom="<=${pkg}-${!var}"
534 fi 531 fi
535 # we always block our own slot, ignoring kdeprefix
536 if [[ ${SLOT} == ${slot} ]]; then
537 echo " !${atom}:${slot}${use:+[${use}]}" 532 echo " !${atom}:${slot}${use:+[${use}]}"
538 else
539 # we only block other slots on -kdeprefix
540 echo " !kdeprefix? ( !${atom}:${slot}[-kdeprefix${use:+,${use}}] )"
541 fi
542 done 533 done
543 534
544 # This is a special case block for :3.5; it does not use the 535 # This is a special case block for :3.5; it does not use the
545 # default version passed, and no blocker is output *unless* a version 536 # default version passed, and no blocker is output *unless* a version
546 # is passed, or ":3.5" is passed to explicitly request a block on all 537 # is passed, or ":3.5" is passed to explicitly request a block on all

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.50

  ViewVC Help
Powered by ViewVC 1.1.20