1 |
В Чтв, 13/12/2007 в 09:41 +0000, Roy Marples пишет: |
2 |
> On Thursday 13 December 2007 09:18:45 Peter Volkov wrote: |
3 |
> > use arrays. |
4 |
|
5 |
> Why not use a function in pkg_setup as suggested earlier |
6 |
|
7 |
Because this is more code for the same functionality. Also if at one |
8 |
point somebody decides to add eclass_pkg_setup function to eclass he/she |
9 |
will have to touch all ebuild and put this function into pkg_setup |
10 |
there. BTW. Speaking about font.eclass we already have font_pkg_setup |
11 |
there. So correct code will be: |
12 |
|
13 |
pkg_setup() { |
14 |
font_pkg_setup |
15 |
append_font_conf "path1" "path2" |
16 |
} |
17 |
|
18 |
instead of on line |
19 |
|
20 |
FONT_CONF=( "path1" "path2" ) |
21 |
|
22 |
-- |
23 |
Peter. |