On Thursday 30 June 2005 22:37, Michael Sterrett -Mr. Bones.- wrote:
> On Thu, 30 Jun 2005, Caleb Tennis wrote:
> > Understandable, but I don't know any other way to do it.  The function
> > does nothing more than return a list of ebuild versions to make the
> > depend happy. It doesn't rely on anything dynamic.
> >
> > $(qt_min_version 3.3) == "|| ( =x11-libs/qt-3.3.3 =x11-libs/qt-3.3.3-r1
> > =x11-libs/qt-3.3.3-r2 =x11-libs/qt-3.3.3-r3 =x11-libs/qt-3.3.4 )
>
> Why use a function then?  Why not just supply a variable in the eclass that
> is put in the DEPEND?

Because the function takes a parameter - the minimal version required from 
which to start the list in the ||.

Any everyone who thinks functions inside $DEPEND are iffy should look at 
deprange() and deprange-dual()... /me hides

-- 
Dan Armak
Gentoo Linux developer (KDE)
Public GPG key: http://dev.gentoo.org/~danarmak/danarmak-gpg-public.key
Fingerprint: DD70 DBF9 E3D4 6CB9 2FDD  0069 508D 9143 8D5F 8951

Attachment: pgp057Yns1Gpi.pgp
Description: PGP signature

Reply via email to