1 |
On Mon, 23 Jul 2007 21:55:16 +0200 |
2 |
Benedikt Boehm <hollow@g.o> wrote: |
3 |
|
4 |
> On Fri, 20 Jul 2007 23:17:46 +0200 |
5 |
> Michael Hanselmann <hansmi@g.o> wrote: |
6 |
> |
7 |
> > On Fri, Jul 20, 2007 at 10:05:23PM +0200, Benedikt Boehm wrote: |
8 |
> > > > qmail_base_install should be split in smaller functions, maybe |
9 |
> > > > with callbacks (if possible in bash). |
10 |
> > |
11 |
[...] |
12 |
> > |
13 |
> > > I'm not sure what you mean with "callbacks" here, maybe you can |
14 |
> > > elaborate? |
15 |
> > |
16 |
> > If we have a common part which cannot, due to whatever reason, be |
17 |
> > split into several functions, but we've to do something package |
18 |
> > specific in between, we need callbacks. Just a sample (might not |
19 |
> > work at all, I'm not that much into eclasses): |
20 |
> > |
21 |
[...] |
22 |
> |
23 |
> i guess this could be done with some "eval" foo... going to run some |
24 |
> tests the next days |
25 |
> |
26 |
|
27 |
I figured that we can simply use declare to check if a function exists, |
28 |
so i implemented hooks for all install functions and provided a |
29 |
combined qmail_src_install that calls all install functions. |
30 |
|
31 |
I also moved the unpack stuff back into the ebuilds, only genqmail |
32 |
and qmail-spp remain with a little unpack function in the eclass... |
33 |
|
34 |
Bene |
35 |
-- |
36 |
gentoo-dev@g.o mailing list |