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
1 On Saturday 31 October 2009 11:47:54 Nikos Chantziaras wrote:
2 > Is there a way to call the default implementation of a function inside
3 > the ebuild-specified one?
4 >
5 > What I mean is:
6 >
7 > src_prepare() {
8 > if [ "$PV" == "9999" ]; then
9 > ./autogen.sh
10 > else
11 > src_prepare() # Default from eclass.
12 > fi
13 > }
14 >
15 > Possible?
16
17 better to wrap the func definition:
18 if [[ ${PV} == "9999" ]] ; then
19 src_prepare() { eautoreconf; }
20 fi
21 -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>