On Thu, Apr 08, 2004 at 10:30:18AM -0700, Remi Mommsen wrote:
> Hi,
>
> I'm trying to figure out how to use the variant system. I'd like to use
> it for roofitcore package, where the essential difference between
> roofitcore and roofitcore4 is the depenency on the root version (root3
> or root4). I'd like to have a statement similar to
>
> Depends: <<
> %N-shlibs (=%v-%r),
> (%type_raw[root_version] = 4) { root4 | root4-cernlib, root4-shlibs |
> root4-cernlib-shlibs }
> (%type_raw[root_version] = .) { root3 | root3-cernlib, root3-shlibs |
> root3-cernlib-shlibs }
> <<
>
> However, AFAIK there is no support for having a block of dependencies
> for a given case.
That's correct. Right now you would have to do the conditional for
each package:
Depends: <<
%N-shlibs (=%v-%r),
(%type_raw[root_version] = 4) root4 | (%type_raw[root_version] = 4) root4-cernlib,
(%type_raw[root_version] = 4) root4-shlibs | (%type_raw[root_version] = 4)
root3-cernlib-shlibs,
(%type_raw[root_version] = .) root3 | (%type_raw[root_version] = .) root3-cernlib,
(%type_raw[root_version] = .) root3-shlibs | (%type_raw[root_version] = .)
root3-cernlib-shlibs,
<<
Are you stuck with 'Type: root_version (4 .)' or could you use (3 4)
instead? The latter would let you do
Depends: <<
%N-shlibs (=%v-%r),
root%type_raw[root_version] | root%type_raw[root_version]-cernlib,
root%type_raw[root_version]-shlibs | root%type_raw[root_version]-cernlib-shlibs
<<
> Is it possible to implement something like this?
Wouldn't be hard to do. The only reason I didn't was because I didn't
feel like having to write a routine to handle paren balancing given
that the underlying functionality was already available (though I
wasn't thinking how ugly it might become:).
dan
--
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel