From owner-freebsd-ports@FreeBSD.ORG Sat Oct 6 09:48:54 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 72E6510656C1; Sat, 6 Oct 2012 09:48:54 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward15.mail.yandex.net (forward15.mail.yandex.net [IPv6:2a02:6b8:0:801::5]) by mx1.freebsd.org (Postfix) with ESMTP id E51998FC18; Sat, 6 Oct 2012 09:48:53 +0000 (UTC) Received: from smtp13.mail.yandex.net (smtp13.mail.yandex.net [95.108.130.68]) by forward15.mail.yandex.net (Yandex) with ESMTP id 940679E1FE1; Sat, 6 Oct 2012 13:48:52 +0400 (MSK) Received: from smtp13.mail.yandex.net (localhost [127.0.0.1]) by smtp13.mail.yandex.net (Yandex) with ESMTP id 6C92CE405D5; Sat, 6 Oct 2012 13:48:52 +0400 (MSK) Received: from 93.91.2.124.tel.ru (93.91.2.124.tel.ru [93.91.2.124]) by smtp13.mail.yandex.net (nwsmtp/Yandex) with ESMTP id mqWuV0L6-mqWKWGmS; Sat, 6 Oct 2012 13:48:52 +0400 Message-ID: <506FFE84.1030202@passap.ru> Date: Sat, 06 Oct 2012 13:48:52 +0400 From: Boris Samorodov Organization: =?UTF-8?B?0JfQkNCeICLQktCQ0KDQoiI=?= User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 MIME-Version: 1.0 To: Baptiste Daroussin References: <6B7F31C1-0A5C-4B65-AC5B-BCCE21817692@lafn.org> <20121006081341.GC30675@ithaqua.etoilebsd.net> <506FF7C9.4020807@passap.ru> <20121006093933.GB71753@ithaqua.etoilebsd.net> In-Reply-To: <20121006093933.GB71753@ithaqua.etoilebsd.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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:48:54 -0000 06.10.2012 13:39, Baptiste Daroussin пишет: > 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 :) Hm, I stand corrected. Should have made a syntax error while experimenting. Thanks! ;-) -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve