From owner-freebsd-ports@freebsd.org Fri Jun 24 19:36:44 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A80AFAC4D99 for ; Fri, 24 Jun 2016 19:36:44 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 93E401A7C for ; Fri, 24 Jun 2016 19:36:44 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: by mailman.ysv.freebsd.org (Postfix) id 8F78AAC4D98; Fri, 24 Jun 2016 19:36:44 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8F1D1AC4D97 for ; Fri, 24 Jun 2016 19:36:44 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 7EC701A7B for ; Fri, 24 Jun 2016 19:36:44 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from yuri.doctorlan.com (c-24-5-143-190.hsd1.ca.comcast.net [24.5.143.190]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id u5OJab4W000868 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 24 Jun 2016 12:36:38 -0700 (PDT) (envelope-from yuri@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host c-24-5-143-190.hsd1.ca.comcast.net [24.5.143.190] claimed to be yuri.doctorlan.com Subject: Re: Any way to add USES clause depending on two options without including bsd.port.options.mk? To: =?UTF-8?Q?Fernando_Herrero_Carr=c3=b3n?= References: <4e06c0b2-e70e-68e8-732b-97774cff8b2d@rawbw.com> Cc: ports@freebsd.org From: Yuri Message-ID: Date: Fri, 24 Jun 2016 12:36:36 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2016 19:36:44 -0000 On 06/23/2016 14:54, Fernando Herrero CarrĂ³n wrote: > Could you please elaborate on the reasons why you want to do that? I don't > see how that particular combination of options would introduce a dependence > that neither of them alone would. In this particular case, as I figured, this isn't actually necessary. But it could be necessary in general, when, say, only in GUI there are some messages to translate, or only GUI needs python. > And then, why not include port.options.mk? Then you could explicitly check > for both options being set. You are right. But without including port.options.mk Makefile looks so much more elegant. Several times I received e-mails asking to remove port.options.mk inclusion to highten the degree of elegance this way. -) Yuri