From: | Thomas Sachau <tommy@g.o> | ||
---|---|---|---|
To: | Nikos Chantziaras <realnc@×××××.de> | ||
Cc: | gentoo-devhelp@l.g.o | ||
Subject: | Re: [gentoo-devhelp] Calling the default implementation of a function | ||
Date: | Sat, 31 Oct 2009 17:46:15 | ||
Message-Id: | 4AEC77DC.6070608@gentoo.org | ||
In Reply to: | [gentoo-devhelp] Calling the default implementation of a function by Nikos Chantziaras |
1 | Nikos Chantziaras schrieb: |
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 | > |
18 | > |
19 | |
20 | 1. i suggest to use eautoreconf instead of those homegrown scripts. |
21 | |
22 | 2. <eclass>_src_prepare will call the src_prepare phase from <eclass> |
23 | |
24 | -- |
25 | Thomas Sachau |
26 | |
27 | Gentoo Linux Developer |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |
Subject | Author |
---|---|
[gentoo-devhelp] Re: Calling the default implementation of a function | Nikos Chantziaras <realnc@×××××.de> |