Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2012 08:17:08 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Baptiste Daroussin <bapt@freebsd.org>
Cc:        ports@freebsd.org, Jason Helfman <jhelfman@e-e.com>
Subject:   Re: NOPORTDOCS and NOPORTEXAMPLES
Message-ID:  <alpine.BSF.2.00.1206110809350.82724@wonkity.com>
In-Reply-To: <20120611140725.GY60433@ithaqua.etoilebsd.net>
References:  <alpine.BSF.2.00.1206101408330.77586@wonkity.com> <f5dc8813da21631bff52d1017bcd6dcf.squirrel@mail.experts-exchange.com> <alpine.BSF.2.00.1206101736170.78656@wonkity.com> <20120611051759.GQ60433@ithaqua.etoilebsd.net> <alpine.BSF.2.00.1206110755001.82724@wonkity.com> <20120611140725.GY60433@ithaqua.etoilebsd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 11 Jun 2012, Baptiste Daroussin wrote:

>> The logic has probably gotten twisted around, and it's been long enough
>> since I did this that I don't recall the situation.  I think it was just
>> to prevent the options screen from appearing if NOPORTDOCS and
>> NOPORTEXAMPLES were set.
>>
>> I don't see a way to do that without using the old versions of those
>> variables.  The new ones have not been set until after
>> bsd.port.options.mk is included, and by then the dialog has been shown.
>
> Do not put OPTIONS_DEFINE and you won't get a dialog UI but still can test
> PORT_OPTIONS:MEXAMPLES and PORT_OPTIONS:MDOCS

The original:

.if !defined(NOPORTDOCS)
OPTIONS+=       REFDOCS "Install the reference documents" on
.endif
.if !defined(NOPORTEXAMPLES)
OPTIONS+=       EXAMPLES "Install the example code" on
.endif

.include <bsd.port.options.mk>

So if the user has set NOPORTDOCS in make.conf, that option does not 
appear in the dialog.  Likewise with NOPORTEXAMPLES, and if both are 
set, the dialog does not appear at all.

If either docs or examples are allowed, the user gets the chance to turn 
them off for this port.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1206110809350.82724>