[macports-ports] 07/07: py-cairo: add +x11 and +quartz variants

Sean Farley sean at macports.org
Wed Dec 13 22:23:30 UTC 2017


Ryan Schmidt <ryandesign at macports.org> writes:

> On Dec 12, 2017, at 23:59, Sean Farley wrote:
>
>> Sean Farley (seanfarley) pushed a commit to branch master
>> in repository macports-ports.
>> 
>> 
>> https://github.com/macports/macports-ports/commit/bf7b83422a120fbf2cd1c1b755ea048d27b03b8e
>> 
>> commit bf7b83422a120fbf2cd1c1b755ea048d27b03b8e
>> 
>> Author: Sean Farley
>> AuthorDate: Tue Dec 12 00:01:01 2017 -0800
>> 
>>     py-cairo: add +x11 and +quartz variants
>>     
>>     Hopefully, this will fix the linking error once and for all.
>>     
>>     Fixes: https://trac.macports.org/ticket/51957
>>     Closes: https://trac.macports.org/ticket/55497
>
>
>> +    variant quartz {
>> +        require_active_variants cairo quartz
>> +    }
>> +
>> +    variant x11 {
>> +        require_active_variants cairo x11
>> +    }
>> +
>> +    default_variants +quartz
>> +
>> +    if {[catch {set result [active_variants cairo x11]}]} {
>> +        default_variants-append +x11
>> +    }
>
> So... you default-enable the +x11 variant of py-cairo if the +x11 variant of cairo is active... but you default-enable the +quartz variant of py-cairo unconditionally, even if the +quartz variant of cairo is not active?

/me facepalm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20171213/9d40e7b3/attachment.sig>


More information about the macports-dev mailing list