Date: Sat, 25 Jun 2016 21:01:41 +0200 From: Mathieu Arnold <mat@FreeBSD.org> To: Jan Beich <jbeich@vfemail.net>, Yuri <yuri@rawbw.com> Cc: ports@freebsd.org Subject: Re: Any way to add USES clause depending on two options without including bsd.port.options.mk? Message-ID: <89C71EF46225C9470AE08CF2@atuin.in.mat.cc> In-Reply-To: <inwz-z17o-wny@vfemail.net> References: <4e06c0b2-e70e-68e8-732b-97774cff8b2d@rawbw.com> <inwz-z17o-wny@vfemail.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--==========F5F7276051A36B7D378A========== Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline +--On 24 juin 2016 05:59:23 +0200 Jan Beich <jbeich@vfemail.net> wrote: | Yuri <yuri@rawbw.com> writes: | |> 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> ? | | Depends on the port but here're some ideas: | | - Move to a common option via _IMPLIES (e.g. GPL3 in multimedia/ffmpeg) | | - Nest or create custom option helpers e.g., | | OPTIONS_DEFINE= GUI NLS | GUI_VARS= NLS_USES=gettext | | # pkg-plist | %%GUI%%%%NLS%%share/locale/foo/LC_MESSAGES/bar.mo This is a bad idea, it depends on an implementation detail. Please don't do it. -- Mathieu Arnold --==========F5F7276051A36B7D378A========== Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQJ8BAEBCgBmBQJXbtUVXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzQUI2OTc4OUQyRUQxMjEwNjQ0MEJBNUIz QTQ1MTZGMzUxODNDRTQ4AAoJEDpFFvNRg85Ift8P/1ZBen2sw5/SZHYOGOBm1ktk lAxvEE9YCpvJrZfuANNEK12ypmHK0/CDEwgNL3ubrHBejd+lCcWHxnnvs/8GPcEj X8Gs9DFWVQn1wMiyEm+vYZDIP3HO4on2q98UATIC4e7O1DvjF232ngmpVxCzWimi Eu+hgfdDcPxEh6i5Zw5bUfE+CiuKBhnRc2xSCEikaqgZ1uSOwTJW5Hgcs6gLX1b9 WA82Ay98NoVISwIMfYattttetR5i1B6QD6oxKIztwfO2wXR1oadcfQYXdV3LCrrP TtonKbi/Gu8iyGy4mbLTRXOxKSFTkM58KlzwFRl1EeA5X/5oYXbc6C5oyANkp36n 4KUHYVQaBZhWgO8eq5xXy7IoPvg/NpEeqB9PMQ3sFldDLOmXws5lP7rBEEEkg2/6 Brr6Da0pUtUBnhLsc/ZxgEa3wjGcLMTzlNBm9LUMxR1VvAw6OF/bKMFmMfMC1psA xubs02XtH1iH7humpm/A4x1xQon1qrdGY1Ik869H0li1K9kg4Xpyp5FPL6/Lva5a jKtPJn5h1TnRHi/WehQFx9bA/Ajh+miWPl1Lcl2WG8ZX89eNGpds636+boAvMweG iGeotrfuHdWdg2qukJSKlv/VtUCEOfnzzhqun0znTfhb4QmS7k5Wnr9BRWyCuh1J 2GHuRmQBFr6TXxyvPYn1 =z3Eb -----END PGP SIGNATURE----- --==========F5F7276051A36B7D378A==========--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?89C71EF46225C9470AE08CF2>