1 |
On Thursday 13 December 2007 09:18:45 Peter Volkov wrote: |
2 |
> 2. Modify ebuilds to use arrays. |
3 |
> |
4 |
> -FONT_CONF="path1 path2" |
5 |
> +FONT_CONF=( "path1" "path2" ) |
6 |
|
7 |
Why not use a function in pkg_setup as suggested earlier and pass each path |
8 |
component as $1, $2, etc. Then the ebuild itself doesn't actually care about |
9 |
the storage format of FONT_CONF, whether it's a bash array or a standard |
10 |
string using IFS. |
11 |
|
12 |
That gives you the luxury of changing it as you like without having to change |
13 |
any ebuilds later. |
14 |
|
15 |
pkg_setup() { |
16 |
append_font_conf "path1" "path2" |
17 |
} |
18 |
|
19 |
Thanks |
20 |
|
21 |
Roy |
22 |
-- |
23 |
gentoo-dev@g.o mailing list |