/[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.49 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.49 2011/06/06 17:51:26 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:
348 eend $? 348 eend $?
349} 349}
350 350
351# @FUNCTION: block_other_slots 351# @FUNCTION: block_other_slots
352# @DESCRIPTION: 352# @DESCRIPTION:
353# Create blocks for the current package in other slots when 353# Create blocks for the current package in other slots
354# installed with USE=-kdeprefix
355block_other_slots() { 354block_other_slots() {
356 debug-print-function ${FUNCNAME} "$@" 355 debug-print-function ${FUNCNAME} "$@"
357 356
358 _do_blocker ${PN} 0:${SLOT} 357 _do_blocker ${PN} 0:${SLOT}
359} 358}
379# "4.x", but nothing following slot "4.x" 378# "4.x", but nothing following slot "4.x"
380# 379#
381# As an example, if SLOT=live, then 380# As an example, if SLOT=live, then
382# 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
383# will add the following to RDEPEND: 382# will add the following to RDEPEND:
384# !kdeprefix? ( !kde-base/kdelibs:4.3[-kdeprefix] ) 383# !kde-base/kdelibs:4.3
385# !kdeprefix? ( !<kde-base/kdelibs-4.3.96:4.4[-kdeprefix] ) 384# !<kde-base/kdelibs-4.3.96:4.4
386# !<=kde-base/kdelibs-9999:live 385# !<=kde-base/kdelibs-9999:live
387add_blocker() { 386add_blocker() {
388 debug-print-function ${FUNCNAME} "$@" 387 debug-print-function ${FUNCNAME} "$@"
389 388
390 RDEPEND+=" $(_do_blocker "$@")" 389 RDEPEND+=" $(_do_blocker "$@")"
427 426
428 [[ -z ${1} ]] && die "Missing parameter" 427 [[ -z ${1} ]] && die "Missing parameter"
429 428
430 local use=${2:+,${2}} 429 local use=${2:+,${2}}
431 430
432 if [[ ${KDEBASE} = kde-base ]]; then
433 echo " !kdeprefix? ( >=kde-base/${1}-${ver}[aqua=,-kdeprefix${use}] )"
434 # kdeprefix is no-go for kdepim 4.4
435 [[ ( ${KMNAME} == kdepim || ${PN} == kdepim-runtime ) && ${SLOT} == 4.4 ]] || \
436 echo " kdeprefix? ( >=kde-base/${1}-${ver}:${SLOT}[aqua=,kdeprefix${use}] )"
437 elif [[ ${ver} == live ]]; then 431 if [[ ${ver} == live ]]; then
438 echo " kde-base/${1}:live[aqua=${use}]" 432 echo " kde-base/${1}:live[aqua=${use}]"
439 else 433 else
440 echo " >=kde-base/${1}-${ver}[aqua=${use}]" 434 echo " >=kde-base/${1}-${ver}[aqua=${use}]"
441 fi 435 fi
442} 436}
533 # 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 "<"
534 atom="<${pkg}-${!var:1}" 528 atom="<${pkg}-${!var:1}"
535 else 529 else
536 atom="<=${pkg}-${!var}" 530 atom="<=${pkg}-${!var}"
537 fi 531 fi
538 # we always block our own slot, ignoring kdeprefix
539 if [[ ${SLOT} == ${slot} ]]; then
540 echo " !${atom}:${slot}${use:+[${use}]}" 532 echo " !${atom}:${slot}${use:+[${use}]}"
541 else
542 # we only block other slots on -kdeprefix
543 echo " !kdeprefix? ( !${atom}:${slot}[-kdeprefix${use:+,${use}}] )"
544 fi
545 done 533 done
546 534
547 # 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
548 # default version passed, and no blocker is output *unless* a version 536 # default version passed, and no blocker is output *unless* a version
549 # 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.49  
changed lines
  Added in v.1.50

  ViewVC Help
Powered by ViewVC 1.1.20