Gentoo Archives: gentoo-dev

From: Peter Volkov <pva@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] How to pass list of paths to eclass?
Date: Thu, 13 Dec 2007 10:22:10
Message-Id: 1197541027.6128.33.camel@camobap
In Reply to: Re: [gentoo-dev] How to pass list of paths to eclass? by Roy Marples
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.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] How to pass list of paths to eclass? Roy Marples <roy@×××××××.name>