Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jun 2016 20:28:33 -0700
From:      "Chris H" <bsd-lists@bsdforge.com>
To:        <freebsd-ports@freebsd.org>
Subject:   Re: Any way to add USES clause depending on two options without including bsd.port.options.mk?
Message-ID:  <85d2800dc74da1787f4d9c5e0a6abdac@ultimatedns.net>
In-Reply-To: <4e06c0b2-e70e-68e8-732b-97774cff8b2d@rawbw.com>
References:  <4e06c0b2-e70e-68e8-732b-97774cff8b2d@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 23 Jun 2016 14:26:01 -0700 Yuri <yuri@rawbw.com> wrote

> I have two port options: GUI NLS.
> 
> I would like to have USES=gettext only when both GUI and NLS are "on".
> 
> If it was only one option, say NLS, NLS_USES=gettext would work.
> 
> But what about the two options case? Is there any magic to do this 
> without .include <bsd.port.options.mk> ?
Short answer; no.
Why? Because bapt will become angry with you, because pkg(8)
won't be able to properly register the options, and people
will complain, and blame bapt. What's worse; dialog4ports(1)
won't be initialized, so people won't even be presented with
any options to choose from.
Long answer; *technically*, you could manage something. But the
effort would *far* outweigh any potential gain.

Sorry I didn't have better news, Yuri. :-(

--Chris
> 
> 
> Yuri





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