1 |
Nikos Chantziaras schrieb: |
2 |
> On 10/31/2009 07:46 PM, Thomas Sachau wrote: |
3 |
>> Nikos Chantziaras schrieb: |
4 |
>>> Is there a way to call the default implementation of a function inside |
5 |
>>> the ebuild-specified one? |
6 |
>>> |
7 |
>>> What I mean is: |
8 |
>>> |
9 |
>>> src_prepare() { |
10 |
>>> if [ "$PV" == "9999" ]; then |
11 |
>>> ./autogen.sh |
12 |
>>> else |
13 |
>>> src_prepare() # Default from eclass. |
14 |
>>> fi |
15 |
>>> } |
16 |
>>> |
17 |
>>> Possible? |
18 |
>>> |
19 |
>>> |
20 |
>>> |
21 |
>> |
22 |
>> 1. i suggest to use eautoreconf instead of those homegrown scripts. |
23 |
> |
24 |
> I know, but it doesn't work in this case. In short: doesn't work :P In |
25 |
> long: This is a dual ebuild (can be used as live as well as regular) for |
26 |
> app-misc/mc, and mc really needs its own autogen.sh; it does weird stuff |
27 |
> in there, much more than what eautoreconf does. |
28 |
> |
29 |
> |
30 |
>> 2.<eclass>_src_prepare will call the src_prepare phase from<eclass> |
31 |
> |
32 |
> Thanks. What's the default eclass of ebuilds that don't have any |
33 |
> "inherit" line in them? |
34 |
|
35 |
No inherit => no eclass, simple as that ;-) |
36 |
|
37 |
In that case, you can call the default function with just "default". But there is no need for that |
38 |
for the default src_prepare since its empty by default. |
39 |
|
40 |
-- |
41 |
Thomas Sachau |
42 |
|
43 |
Gentoo Linux Developer |