[MacPorts] #56466: QtCurve-extra: universal variant fails

MacPorts noreply at macports.org
Sat May 12 21:30:59 UTC 2018

#56466: QtCurve-extra: universal variant fails
  Reporter:  ryandesign     |      Owner:  ryandesign
      Type:  defect         |     Status:  closed
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:  fixed          |   Keywords:
      Port:  QtCurve-extra  |

Comment (by RJVB):

 > Sorry, I don't understand how that would work.
 > I'll just say that base should not have knowledge of portgroup-specific

 See it as the opposite: an additional way for a PG to "base" *not* to
 define the standard universal variant, but instead only declare it.
 Concretely, in `muniversal-1.0.tcl`:

 if {[variant_isset universal]} {
    # muniveral variant code
 base_define_complete_universal_variant   no

 somewhere in `$prefix/libexec/macports/lib`:

 if {[tbool base_define_complete_universal_variant]} {
     variant universal description {} {
         # universal variant code
 } else {
     # only declare the universal variant so ports can use it
     variant universal description {} {}

 > but would of course require all ports that use the portgroup to be
 visited to adapt them to the changes.

 Or you could use the PortGroup as a transparent means to tell "base" to
 use the muniversal approach.

Ticket URL: <https://trac.macports.org/ticket/56466#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS

More information about the macports-tickets mailing list