License question
Lawrence Velázquez
larry.velazquez at gmail.com
Mon Jan 2 15:08:38 PST 2012
On Jan 2, 2012, at 5:24 p.m., Mark Brethen wrote:
> Looking at the pure Portfile, In don't quite follow:
>
> if {${name} == ${subport}} {
>
> }
>
> Is everything in-between the curly brackets read only if user issues 'port install pure'?
Yes. Another common idiom is
> if {${name} != ${subport}} {
> <lots of stuff>
> }
where the port itself is treated as a stub port that just depends on one of its subports, and the meat of the port only takes effect when a subport is selected. There are a couple of decent examples linked at the bottom of this MacPorts wiki page: https://trac.macports.org/wiki/Python
vq
More information about the macports-dev
mailing list