checking current phase in Portfile?

René J.V. Bertin rjvbertin at gmail.com
Fri Jun 9 19:54:18 UTC 2017


Hi,

Is it possible for a macro defined in a PortGroup to check it is being called in the appropriate build phase (or from the toplevel instead)? I see that there is a `macports::current_phase` variable, but that namespace isn't accessible from a Portfile, apparently.

Thanks,
René


More information about the macports-dev mailing list