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

Ryan Schmidt ryandesign at macports.org
Wed Dec 13 16:33:25 UTC 2017


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?



More information about the macports-dev mailing list