On Mon, 2006-30-10 at 08:26 -0800, Donnie Berkholz wrote: > Alternate subject: On the sudden appearance of USE=X for tons of stuff > > I really want to use font.eclass in x-modular.eclass to get rid of a lot > of code duplication and more possible bugs. Problem is, it brings in > IUSE=X for every single X package. I cannot figure out how to prevent > this. Setting IUSE="" after the inherit in x-modular.eclass is not enough. > > Anyone got any ideas? The only one I have is to add significant missing > functionality to font.eclass and switch every font package over that > instead of x-modular.eclass.
Isnt it possible to define something like I_AM_X=1 in x-modular.eclass and in fonts.eclass have a if [[ -z "${I_AM_X}" ]]; then IUSE="X"; DEPEND="current depends"; else DEPEND="as if X use flag was forced"; fi and replace the use X with a use X || [[ -z "${I_AM_X}" ]] -- Olivier Crête [EMAIL PROTECTED] Gentoo Developer -- gentoo-dev@gentoo.org mailing list