Daniel Macks wrote:
On Tue, Feb 10, 2004 at 01:05:54PM -0500, Daniel Macks wrote:
The simpler version of the idea is just a simple string equality test:
Depends: (%type_perl_version 5.8.1) thing-pm
Since you can have carriage returns in depends and stuff now (at least I think you can) you could do:
Depends: << #if PERL_VERSION = 5.8.1 thing-pm, #endif #ifdef X11 foo, #else foo-nox, #endif bar <<
It's still not pretty, but it at least lets people bootstrap off a lot of existing domain knowledge of the C preprocessor. And we wouldn't even have to write anything new, we just have to call cpp with the right -D's for everything fink "provides" and everything is done for us.
I prefer Daniel's method if this is a vote :)
We don't have to call some external processor which might randomly break (e.g. putting #pragma foo as the first line), it can all be done easily in perl.
Peter -- Peter O'Gorman - http://www.pogma.com
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel