New Port Options

Baptiste Daroussin bapt at FreeBSD.org
Sat Oct 6 09:39:37 UTC 2012


On Sat, Oct 06, 2012 at 01:20:09PM +0400, Boris Samorodov wrote:
> 06.10.2012 12:13, Baptiste Daroussin пишет:
> 
> > My first proposition for syntax was:
> > .if !empty(PORT_OPTIONS:MFOO)
> > .endif
> > 
> > and
> > .if empty(PORT_OPTIONS:MFOO)
> > .endif
> 
> I'd prefer this one...
> 
> > Lots of people stated they prefered the concise version:
> > .if ${PORT_OPTIONS:MFOO}
> > .endif
> > 
> > the reverse of this one can be:
> > 
> > .if !${PORT_OPTIONS:MFOO}
> > .endif
> > 
> > instead of empty() if you prefer some maintainers uses it.
> 
> ...since this one does not work with predefined options (DOCS,
> NLS, EXAMPLES) which are set by default but a user needs to
> unset them.

Yes it does, or maybe I don't understand correctly what you are expecting :)

regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20121006/8dc84f69/attachment.pgp


More information about the freebsd-ports mailing list