Date: Tue, 5 Feb 2013 12:15:32 +0100 From: Pietro Cerutti <gahr@FreeBSD.org> To: Baptiste Daroussin <bapt@FreeBSD.org> Cc: ports@FreeBSD.org Subject: Re: [CFT+BRAINSTORM] One USE_ to rule them all Message-ID: <20130205111532.GD916@gahrfit.gahr.ch> In-Reply-To: <20130204181946.GF67687@ithaqua.etoilebsd.net> References: <20130204181946.GF67687@ithaqua.etoilebsd.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--fXStkuK2IQBfcDe+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2013-Feb-04, 19:19, Baptiste Daroussin wrote: > Hi, >=20 > I have some improvements to the ports tree to propose, and I'm looking for > testers/opinions >=20 > First let me explain: >=20 > I want to introduce a new USE_FEATURES macro into the ports tree >=20 > The goal of this macros is to be able to standardize how we call all the = USE_* > things as well as creating some "load on demand" code for a corresponding > feature. >=20 > What I expect in long term is to get a more readable bsd.port.mk & friend= s, > meaning easier to maintain >=20 > I except some performance improvements given that make will have to parse= less > things. >=20 > I also expect less complexity if bsd.*.mk code. >=20 > What will have is all/most of the code corresponding to a USE_SOMETHING r= ight > now will endup in a Mk/features/something.mk which will be loaded only if= the > ports defines: > USE_FEATURES=3D something >=20 > the loading is done at the very early stage of bsd.port.post.mk to allow = one to > load modify USE_FEATURES depending on some options etc. >=20 > each features/*.mk is itself protected by a variable to avoid multi loadi= ng of > the same file >=20 > if a feature depends on another one the feature itself just have to ".inc= lude" > the other one. Very nice idea, I'm looking forward to taking advantage of it! --=20 Pietro Cerutti The FreeBSD Project gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp --fXStkuK2IQBfcDe+ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlEQ6dMACgkQwMJqmJVx947DbwCgnakSqmLNfpxYxUDN5+qFu3Sf +asAnR1ii1pFHGVnlMxw4tASXTAMzvew =5qz7 -----END PGP SIGNATURE----- --fXStkuK2IQBfcDe+--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130205111532.GD916>