From owner-freebsd-ports@FreeBSD.ORG Thu Jun 20 15:10:48 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 47DB9449 for ; Thu, 20 Jun 2013 15:10:48 +0000 (UTC) (envelope-from feld@feld.me) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by mx1.freebsd.org (Postfix) with ESMTP id 1CD841FC9 for ; Thu, 20 Jun 2013 15:10:47 +0000 (UTC) Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 2A91D20575; Thu, 20 Jun 2013 11:10:47 -0400 (EDT) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute2.internal (MEProxy); Thu, 20 Jun 2013 11:10:47 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=feld.me; h= content-type:to:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to; s= mesmtp; bh=+ipRD1nLckSC6NHqVHkvQwYuz1k=; b=RhqkChixfVz7a5AJQ06S6 OxZwiyhq6twAQDrg9q2Sel8MFTAYVuwzj5Ea0Qo79KKlYzso6Ngi/fD/xhyVLBlx T8E+rijUFbx8o1o5gaV4TERRQhfCpH2LyqmHRo47GKcUyQwiddyH9pLnE1WLlaOs IubNZZosbqG9Up4599OQig= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:to:subject:references:date :mime-version:content-transfer-encoding:from:message-id :in-reply-to; s=smtpout; bh=+ipRD1nLckSC6NHqVHkvQwYuz1k=; b=dS1Q w5VpZZiNrc0vdjwKaACrrMFRCUg5z47IvBt23p1ecGBcOsp/plEzSfd0+v7TyfCY uX5HdFcZWLiT8+gzNrrPkt12Yogf6YtcUVoLSkyr5HR+5HF0bunF+oIZx+pWr3LA c6MMKuentnsQsfKQwhcqqxv8eb7DWQ/FpcAl3zs= X-Sasl-enc: uy6LOpAlpMvv0rXo5ANIpZyViOjz7Y8buoOz/EXkayJE 1371741047 Received: from tech304.office.supranet.net (unknown [66.170.8.18]) by mail.messagingengine.com (Postfix) with ESMTPA id EB19FC00E84; Thu, 20 Jun 2013 11:10:46 -0400 (EDT) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-ports@freebsd.org, "Boris Samorodov" Subject: Re: OptionsNG and defaults References: <51C2F3BF.5020502@passap.ru> <20130620155703.660e5828@FreeBSD.org> <51C30F5F.6040605@passap.ru> <20130620163443.527ac75a@FreeBSD.org> <51C31733.1060809@passap.ru> Date: Thu, 20 Jun 2013 10:10:46 -0500 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Mark Felder" Message-ID: In-Reply-To: <51C31733.1060809@passap.ru> User-Agent: Opera Mail/12.15 (FreeBSD) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jun 2013 15:10:48 -0000 On Thu, 20 Jun 2013 09:52:35 -0500, Boris Samorodov wrote: > OK, let's say I as a maintainer _want_ to not install examples by > default. The reason _why_ is out of a scope here. Do you say that > I do not have a possibility to switch EXAMPLES option off by default? Edit your port to be completely void of the word "EXAMPLES" The only way the EXAMPLES are being installed is if you have something like this in your port: .if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR} .endif Just don't put that in your port and everything will work as expected. There is no magic here; there is no possible way for the port to automatically detect and install EXAMPLES. It's up to you as the maintainer to define what the EXAMPLES are in order for them to be installable.