blob: 516939f3c06c65689b4923acfffa130203d62ada [file] [log] [blame]
David James06b00592011-03-02 11:12:12 -08001# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
2# Distributed under the terms of the GNU General Public License v2
3
4# @ECLASS-VARIABLE: CONFLICT_LIST
5# @DESCRIPTION:
6# Atoms mentioned in CONFLICT_LIST need to either be unmerged or upgraded
7# prior to this package being installed, but we don't want to have an explicit
8# dependency on that package. So instead, we do the following:
9# 1. When we are installed, ensure that the old version is not installed.
10# 2. If old version is installed, ask emerge to consider upgrading it.
11# This consideration is listed as PDEPEND so that we don't add an
12# explicit dependency on the other package.
13for atom in $CONFLICT_LIST; do
14 DEPEND="$DEPEND !!<=$atom"
15 RDEPEND="$RDEPEND !!<=$atom"
16 PDEPEND="$PDEPEND || ( >$atom !!<=$atom )"
17done