#19559: variant variables not carried through to post-destroot ---------------------------------+------------------------------------------ Reporter: dweber@… | Owner: macports-tickets@… Type: request | Status: new Priority: Low | Milestone: MacPorts 1.8.0 Component: base | Version: 1.7.1 Keywords: variant variables | Port: ---------------------------------+------------------------------------------ Can we make variant variables carry through into the post-destroot stage definition within the variant (such that variables defined within the variant over-ride any global variables)? For example: {{{ variant python26 { set pyver 2.6 set python python${pyver} set pyport [join [lrange [split ${python} .] 0 1] ""] set pyframe ${prefix}/Library/Frameworks/Python.framework/Versions/${pyver} depends_lib-append port:${pyport} post-destroot { set pyPackage ${destroot}${pyframe}/lib/${python}/site- packages/THISPACKAGE } } }}} In this mock-up example, the depends-lib will get the ${pyport} but anything within the post-destroot will not see any of the python variables defined in the variant. All of those variables have to be either global or set within the post-destroot clause (within the variant). -- Ticket URL: <http://trac.macports.org/ticket/19559> MacPorts <http://www.macports.org/> Ports system for Mac OS