List Archive: gentoo-dev
>>>>> On Sun, 5 Oct 2008, Alexis Ballier wrote:
> Ciaran McCreesh <ciaran.mccreesh@...> wrote:
>> Export it if and only if EAPI is 2.
> By the way, do we really want to special case eapi-2 in every eclass ?
> That's lot of code duplication and will get even worse when we'll reach
> eapi-42. That would have been cool to have a pm function that tells
> "has my eapi foo support" but that sort of bites its tail that way.
Hm, what about:
[ "$(type -t src_configure)" == function ] && EXPORT_FUNCTIONS src_configure
Or is this too fragile or trying to be too clever?
Ulrich
|
|