From owner-freebsd-ports@FreeBSD.ORG Sat Oct 6 09:39:37 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1BE73106566B for ; Sat, 6 Oct 2012 09:39:37 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F1A418FC08; Sat, 6 Oct 2012 09:39:36 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q969daQm016946; Sat, 6 Oct 2012 09:39:36 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q969dZx7016941; Sat, 6 Oct 2012 09:39:35 GMT (envelope-from bapt@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f Date: Sat, 6 Oct 2012 11:39:33 +0200 From: Baptiste Daroussin To: Boris Samorodov Message-ID: <20121006093933.GB71753@ithaqua.etoilebsd.net> References: <6B7F31C1-0A5C-4B65-AC5B-BCCE21817692@lafn.org> <20121006081341.GC30675@ithaqua.etoilebsd.net> <506FF7C9.4020807@passap.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GID0FwUMdk1T2AWN" Content-Disposition: inline In-Reply-To: <506FF7C9.4020807@passap.ru> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD-PORTS Subject: Re: New Port Options X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Oct 2012 09:39:37 -0000 --GID0FwUMdk1T2AWN Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 06, 2012 at 01:20:09PM +0400, Boris Samorodov wrote: > 06.10.2012 12:13, Baptiste Daroussin =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >=20 > > My first proposition for syntax was: > > .if !empty(PORT_OPTIONS:MFOO) > > .endif > >=20 > > and > > .if empty(PORT_OPTIONS:MFOO) > > .endif >=20 > I'd prefer this one... >=20 > > Lots of people stated they prefered the concise version: > > .if ${PORT_OPTIONS:MFOO} > > .endif > >=20 > > the reverse of this one can be: > >=20 > > .if !${PORT_OPTIONS:MFOO} > > .endif > >=20 > > instead of empty() if you prefer some maintainers uses it. >=20 > ...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 --GID0FwUMdk1T2AWN Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlBv/FUACgkQ8kTtMUmk6EzROACeKi8CqCm5fYXeXwFTgvyoKY0V YPYAn2JD5sfGVaTFUONglE+bpQ/5Dvom =4PJ/ -----END PGP SIGNATURE----- --GID0FwUMdk1T2AWN--