[squeak-dev] Metacello questions

Mariano Martinez Peck marianopeck at gmail.com
Sun May 9 21:32:47 UTC 2010


GRRRR  gmail shortcuts...


4) How does one define dependencies that differ based on platform?
>>
>> In WebClient, the WebClient-HTTP package requires WebClient-Core and -only
>> for: #pharo- also WebClient-Pharo. How does one express that there's an
>> additional dependency for WebClient-HTTP that only exists for: #pharo? The
>> config currently specifies:
>>
>>        spec for: #common do:[
>>                " ... "
>>                spec package: 'WebClient-HTTP' with:[spec requires:
>> 'WebClient-Core'].
>>                " ... "
>>        ].
>>
>>        spec for: #pharo do:[
>>                "Just the fact it exists; no requirements here"
>>                spec package: 'WebClient-Pharo'.
>>        ].
>>
>>
>
> The only thing that comes to my mind now is to do:
>
>
>
>   spec for: #common do:[
>                " ... "
>                spec package: 'WebClient-HTTP' with:[spec requires:
> 'WebClient-Core'].
>                " ... "
>        ].
>
>        spec for: #pharo do:[
>                spec package: 'WebClient-HTTP' with:[spec requires: {
> 'WebClient-Core' 'WebClient-Pharo'};
>
                spec package: 'WebClient-Pharo'.
   ].

].


 Cheers

Mariano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100509/ab898877/attachment.htm


More information about the Squeak-dev mailing list