Gentoo Archives: gentoo-dev

From: Caleb Tennis <caleb@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: RFC: qt.eclass
Date: Thu, 30 Jun 2005 20:13:32
Message-Id: 200506301508.15994.caleb@gentoo.org
In Reply to: [gentoo-dev] Re: RFC: qt.eclass by "Michael Sterrett -Mr. Bones.-"
1 On Thursday 30 June 2005 02:37 pm, Michael Sterrett -Mr. Bones.- wrote:
2 > Why use a function then? Why not just supply a variable in the eclass that
3 > is put in the DEPEND?
4
5 Because you need to be able to specify what the minimum version of Qt you want
6 is. I suppose we could have 50 variables :
7
8 QT_MINIMUM_VERSION_3_0_0_RC_3="|| (x11-libs/qt-3.3.4-r5
9 x11-libs/qt-3.3.4-r4 ... )"
10 QT_MINIMUM_VERSION_3_0_0_RC_2=...
11
12 DEPEND="$QT_MINIMUM_VERSION_3_0_0_RC_2"
13
14 A function seems a bit nicer.
15 --
16 gentoo-dev@g.o mailing list