Re: [Fink-devel] Re: Conditional Depends Syntax

2004-02-11 Thread Daniel Macks
On Wed, Feb 11, 2004 at 03:47:57PM +0100, Darian Lanx wrote:
 Peter O'Gorman wrote:
 Daniel Macks wrote:
 
 
 
 Yes, I vote for a solution in Perl as well, yet I still think that the 
 syntax is simply bad. Bad as in too complicated for the common or novice 
 packager to understand. Maybe we could find a syntax that is based upon 
 a flow thought and not based upon an expression how the underlying 
 parser can best handle it.
 
 What does the syntax actually which to express?
 
 Basicaly what Benjamin stated, right ?
 
 If some condition is met use dependancy foo if not then use dependency blah.
 
 So why not do this in the abbreviated if syntax we all know from C or 
 perl which can easily be explained.

It we want to go programming-language-style:

  Depends: %type_perl_version == 5.8.1  thing-pm
  Depends: %type_nox == -nox || x11

It we want to be a bit more linguistic/thought-process oriented:

  Depends: %type_perl_version = 5.8.1 ? thing-pm

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=1356alloc_id=3438op=click
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Re: Conditional Depends Syntax

2004-02-11 Thread Benjamin Reed
Daniel Macks wrote:

It we want to go programming-language-style:

  Depends: %type_perl_version == 5.8.1  thing-pm
  Depends: %type_nox == -nox || x11
It we want to be a bit more linguistic/thought-process oriented:

  Depends: %type_perl_version = 5.8.1 ? thing-pm
Actually, I think the part that seemed most confusing to me was the 
whole %type_perl_version thing.  Is it a perl hash?  is it a % 
expansion?  Is it neither?  Is it a reference to some internal function, 
or just a token?  What is the significance of type?  It seems to be 
overloading the existing % stuff in a way that just feels weird to me.

Not that I really have a better suggestion, really, it's just that it 
makes the info files look even more busy and/or obtuse than they already do.



---
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=1356alloc_id=3438op=click
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel