Gentoo Archives: gentoo-dev

From: Roy Marples <roy@×××××××.name>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] How to pass list of paths to eclass?
Date: Thu, 13 Dec 2007 09:44:23
Message-Id: 200712130941.31395.roy@marples.name
In Reply to: Re: [gentoo-dev] How to pass list of paths to eclass? by Peter Volkov
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

Replies

Subject Author
Re: [gentoo-dev] How to pass list of paths to eclass? Peter Volkov <pva@g.o>