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 10:55:26
Message-Id: 200712131052.29635.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 10:17:07 Peter Volkov wrote:
2 > В Чтв, 13/12/2007 в 09:41 +0000, Roy Marples пишет:
3 > > On Thursday 13 December 2007 09:18:45 Peter Volkov wrote:
4 > > > use arrays.
5 > >
6 > > Why not use a function in pkg_setup as suggested earlier
7 >
8 > Because this is more code for the same functionality. Also if at one
9 > point somebody decides to add eclass_pkg_setup function to eclass he/she
10 > will have to touch all ebuild and put this function into pkg_setup
11 > there. BTW. Speaking about font.eclass we already have font_pkg_setup
12 > there. So correct code will be:
13 >
14 > pkg_setup() {
15 > font_pkg_setup
16 > append_font_conf "path1" "path2"
17 > }
18 >
19 > instead of on line
20 >
21 > FONT_CONF=( "path1" "path2" )
22
23 You could do the append_font_conf in any function I think. So there's only
24 more code if there are no functions already.
25
26 Thanks
27
28 Roy
29 --
30 gentoo-dev@g.o mailing list