[MacPorts] #65721: app portgroup: create new 1.1 version, utilizing callback mechanism

MacPorts noreply at macports.org
Fri Sep 23 20:32:36 UTC 2022


#65721: app portgroup: create new 1.1 version, utilizing callback mechanism
--------------------------+-----------------------
  Reporter:  mascguy      |      Owner:  mascguy
      Type:  enhancement  |     Status:  closed
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.7.2
Resolution:  fixed        |   Keywords:  portgroup
      Port:  gramps       |
--------------------------+-----------------------

Comment (by jmroot):

 Has to be inside the variants the way it's currently set up, since the
 version isn't set before that. I would tend to do something like this
 instead when a value set based on a variant is needed before variants are
 executed:
 {{{#!tcl
 variant python37 conflicts python38 python39 description {Use Python 3.7}
 {}
 variant python38 conflicts python37 python39 description {Use Python 3.8}
 {}
 variant python39 conflicts python37 python38 description {Use Python 3.9}
 {}
 foreach py_ver {37 38 39} {
     if {[variant_isset python${py_ver}]} {
         python.default_version \
                         ${py_ver}
     }
 }
 depends_lib-append \
                         port:py${python.version}-bsddb3 \
                         port:py${python.version}-gobject3 \
                         port:py${python.version}-Pillow \
                         port:py${python.version}-pyicu

 app.executable ${python.prefix}/bin/${name}
 }}}

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


More information about the macports-tickets mailing list