From owner-freebsd-ports@freebsd.org Sat Jun 25 19:01:46 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 1CBA0B8023D for ; Sat, 25 Jun 2016 19:01:46 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 06723183E for ; Sat, 25 Jun 2016 19:01:46 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 05DC2B8023C; Sat, 25 Jun 2016 19:01:46 +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 058B1B8023B for ; Sat, 25 Jun 2016 19:01:46 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (prod2.absolight.net [79.143.243.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "plouf.absolight.net", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C467E183D for ; Sat, 25 Jun 2016 19:01:45 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id 65225BDC78; Sat, 25 Jun 2016 21:01:42 +0200 (CEST) Received: from atuin.in.mat.cc (atuin.in.mat.cc [79.143.241.205]) by prod2.absolight.net (Postfix) with ESMTPA id 34041BDC68; Sat, 25 Jun 2016 21:01:42 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by atuin.in.mat.cc (Postfix) with ESMTP id C2FC4639B6B9; Sat, 25 Jun 2016 21:01:41 +0200 (CEST) Date: Sat, 25 Jun 2016 21:01:41 +0200 From: Mathieu Arnold To: Jan Beich , Yuri 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: References: <4e06c0b2-e70e-68e8-732b-97774cff8b2d@rawbw.com> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="==========F5F7276051A36B7D378A==========" 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: Sat, 25 Jun 2016 19:01:46 -0000 --==========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 wrote: | Yuri 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 ? | | 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==========--