Date: Sat, 06 Oct 2012 13:20:09 +0400 From: Boris Samorodov <bsam@passap.ru> To: Baptiste Daroussin <bapt@FreeBSD.org> Cc: FreeBSD-PORTS <freebsd-ports@FreeBSD.org> Subject: Re: New Port Options Message-ID: <506FF7C9.4020807@passap.ru> In-Reply-To: <20121006081341.GC30675@ithaqua.etoilebsd.net> References: <6B7F31C1-0A5C-4B65-AC5B-BCCE21817692@lafn.org> <20121006081341.GC30675@ithaqua.etoilebsd.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
--
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?506FF7C9.4020807>
