Adding ${python.branch} without the . to Python groups

Rainer Müller raimue at macports.org
Fri Aug 17 11:39:09 PDT 2012


On 2012-08-17 20:02, Blair Zajac wrote:
> I'm working on unifying py2{5,6,7}-logilab-astng and they all depend upon the
> corresponding $py2{5,6,7}-logilab-common.  Can we add to the python groups
> another variable without the . in it, so I can do
> 
> depends_lib-append  port:py{python.SOMETHING}-logilab-common

This is supposed to work already using this snippet:

  if {$name != $subport} {
      depends_lib-append  port:py${python.version}-logilab-common
  }

The conditional check is necessary such that this dependency is only added for
subports.

Rainer


More information about the macports-dev mailing list