Gentoo Archives: gentoo-devhelp

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-devhelp@l.g.o
Subject: [gentoo-devhelp] Re: Calling the default implementation of a function
Date: Sat, 31 Oct 2009 18:06:36
Message-Id: hchua5$2af$1@ger.gmane.org
In Reply to: Re: [gentoo-devhelp] Calling the default implementation of a function by Thomas Sachau
1 On 10/31/2009 07:46 PM, Thomas Sachau wrote:
2 > Nikos Chantziaras schrieb:
3 >> Is there a way to call the default implementation of a function inside
4 >> the ebuild-specified one?
5 >>
6 >> What I mean is:
7 >>
8 >> src_prepare() {
9 >> if [ "$PV" == "9999" ]; then
10 >> ./autogen.sh
11 >> else
12 >> src_prepare() # Default from eclass.
13 >> fi
14 >> }
15 >>
16 >> Possible?
17 >>
18 >>
19 >>
20 >
21 > 1. i suggest to use eautoreconf instead of those homegrown scripts.
22
23 I know, but it doesn't work in this case. In short: doesn't work :P In
24 long: This is a dual ebuild (can be used as live as well as regular) for
25 app-misc/mc, and mc really needs its own autogen.sh; it does weird stuff
26 in there, much more than what eautoreconf does.
27
28
29 > 2.<eclass>_src_prepare will call the src_prepare phase from<eclass>
30
31 Thanks. What's the default eclass of ebuilds that don't have any
32 "inherit" line in them?

Replies