From ebc5380cc471f6dd27c763307ea4011a657ab996 Mon Sep 17 00:00:00 2001 From: "Maciej Mrozowski (reavertm)" Date: Sun, 13 Sep 2009 03:08:29 +0200 Subject: Reverting for now #2 Revert "Add features to add_blocker, and use it for all blockers to kde-base/ apps in kde-base/" This reverts commit e5768da5311f892933411f95fc2669480723356a. --- eclass/kde4-functions.eclass | 112 ++++++------------------------------------- 1 file changed, 14 insertions(+), 98 deletions(-) (limited to 'eclass') diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass index d1e1d554057..419272a6f58 100644 --- a/eclass/kde4-functions.eclass +++ b/eclass/kde4-functions.eclass @@ -2,8 +2,6 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.18 2009/05/09 13:23:15 scarabeus Exp $ -inherit versionator - # Prefix compat: : ${EROOT:=${ROOT}} # Append missing trailing slash character @@ -374,114 +372,32 @@ load_library_dependencies() { block_other_slots() { debug-print-function ${FUNCNAME} "$@" - _do_blocker ${CATEGORY}/${PN} 0:${SLOT} + local slot + for slot in ${KDE_SLOTS[@]} ${KDE_LIVE_SLOTS[@]}; do + # Block non kdeprefix ${PN} on other slots + if [[ ${SLOT} != ${slot} ]]; then + echo "!kdeprefix? ( !kde-base/${PN}:${slot}[-kdeprefix] )" + fi + done } # @FUNCTION: add_blocker # @DESCRIPTION: # Create correct RDEPEND value for blocking correct package. -# Useful for file-collision blocks. -# Parameters are package and version(s) to block. +# Usefull for file-collision blocks. +# Parameters are package and version to block. # add_blocker kdelibs 4.2.4 -# If no version is specified, then all versions will be blocked -# If any arguments (from 2 on) contain a ":", then different versions -# are blocked in different slots. (Unlisted slots get the version without -# a ":", if none, then all versions are blocked). The parameter is then of -# the form VERSION:SLOT. Any VERSION of 0 means that no blocker will be -# added for that slot (or, if no slot, then for any unlisted slot). -# A parameter of the form :SLOT means to block all versions from that slot. -# If VERSION begins with "<", then "!