1 |
On Thursday 30 June 2005 22:37, Michael Sterrett -Mr. Bones.- wrote: |
2 |
> On Thu, 30 Jun 2005, Caleb Tennis wrote: |
3 |
> > Understandable, but I don't know any other way to do it. The function |
4 |
> > does nothing more than return a list of ebuild versions to make the |
5 |
> > depend happy. It doesn't rely on anything dynamic. |
6 |
> > |
7 |
> > $(qt_min_version 3.3) == "|| ( =x11-libs/qt-3.3.3 =x11-libs/qt-3.3.3-r1 |
8 |
> > =x11-libs/qt-3.3.3-r2 =x11-libs/qt-3.3.3-r3 =x11-libs/qt-3.3.4 ) |
9 |
> |
10 |
> Why use a function then? Why not just supply a variable in the eclass that |
11 |
> is put in the DEPEND? |
12 |
|
13 |
Because the function takes a parameter - the minimal version required from |
14 |
which to start the list in the ||. |
15 |
|
16 |
Any everyone who thinks functions inside $DEPEND are iffy should look at |
17 |
deprange() and deprange-dual()... /me hides |
18 |
|
19 |
-- |
20 |
Dan Armak |
21 |
Gentoo Linux developer (KDE) |
22 |
Public GPG key: http://dev.gentoo.org/~danarmak/danarmak-gpg-public.key |
23 |
Fingerprint: DD70 DBF9 E3D4 6CB9 2FDD 0069 508D 9143 8D5F 8951 |