1 |
On 10/31/2009 11:37 PM, Mike Frysinger wrote: |
2 |
> On Saturday 31 October 2009 11:47:54 Nikos Chantziaras wrote: |
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 |
> better to wrap the func definition: |
19 |
> if [[ ${PV} == "9999" ]] ; then |
20 |
> src_prepare() { eautoreconf; } |
21 |
> fi |
22 |
|
23 |
/usr/local/portage/app-misc/mc/mc-9999.ebuild: line 49: syntax error |
24 |
near unexpected token `fi' |
25 |
/usr/local/portage/app-misc/mc/mc-9999.ebuild: line 49: `fi' |
26 |
* ERROR: app-misc/mc-9999 failed: |
27 |
* error sourcing ebuild |