Gentoo Archives: gentoo-devhelp

From: Mike Frysinger <vapier@g.o>
To: gentoo-devhelp@l.g.o
Cc: Nikos Chantziaras <realnc@×××××.de>
Subject: Re: [gentoo-devhelp] Calling the default implementation of a function
Date: Sat, 31 Oct 2009 21:36:49
Message-Id: 200910311737.31849.vapier@gentoo.org
In Reply to: [gentoo-devhelp] Calling the default implementation of a function by Nikos Chantziaras
On Saturday 31 October 2009 11:47:54 Nikos Chantziaras wrote:
> Is there a way to call the default implementation of a function inside > the ebuild-specified one? > > What I mean is: > > src_prepare() { > if [ "$PV" == "9999" ]; then > ./autogen.sh > else > src_prepare() # Default from eclass. > fi > } > > Possible?
better to wrap the func definition: if [[ ${PV} == "9999" ]] ; then src_prepare() { eautoreconf; } fi -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
[gentoo-devhelp] Re: Calling the default implementation of a function Nikos Chantziaras <realnc@×××××.de>