On Wed, Feb 11, 2004 at 09:35:42PM +0100, David H. wrote:
> Daniel Macks wrote:
>
> <snip>
> Ok I will play the advocate of "easiness" now.
Bring it on.
> >Early in the -devel variants discussions, it was decided that we
> >should overload the Type: field. So we just need a way to get at that
> >info. If we have:
>
> So why not try something like this:
>
> Depends: perl = 5.8.1 ? bleh.pm : blah.pm
> Depends: X = yes ? x11 : nox
For the Depends logic, I think the bleh-or-blah would not be a very
common occurance. More often (at least in the situations I can think
of) is "bleh only if [something]" *or* "blah only if not [something]".
Having to conjure up a "nox" package just to make the logic work
bothers me. But if people think if/then/else is the way to go...
As to the variant value syntax, we also need to get these variant
values into Package and into *Script fields. It seems pretty confusing
that "perl" has a sepcial meaning anywhere, and I think that string
might be prone to appear in scripts so we'd need something else there.
I'd rather keep a uniform syntax everywhere in .info. Maintainers
already know about percent expansion so I went with it. Consider:
Package: foo%type[nox]
Type: nox (-nox "") # one variant has "-nox", the other ""
Depends: (%type[nox] "") x11
CompileScript: <<
if [ %type[nox] == "-nox" ]; then
./configure %c --without-x11
else
./configure %c --with-x11
fi
make
<<
dan
--
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel