On 08/17/2012 11:39 AM, Rainer Müller wrote:
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.

So ${python.version} is changed if a subport is active? That's non-intuitive.

The ports I'm converting are currently not a subport, does that work regardless?

Blair

_______________________________________________
macports-dev mailing list
macports-dev@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to