From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1J2liw-0007g0-Fi for garchives@archives.gentoo.org; Thu, 13 Dec 2007 10:55:26 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.2/8.14.0) with SMTP id lBDAsWXY022479; Thu, 13 Dec 2007 10:54:32 GMT Received: from mail.marples.name (rsm.demon.co.uk [80.177.111.50]) by robin.gentoo.org (8.14.2/8.14.0) with ESMTP id lBDAqWfo019984 for ; Thu, 13 Dec 2007 10:52:32 GMT Received: from [10.73.1.31] (uberlaptop.marples.name [10.73.1.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.marples.name (Postfix) with ESMTP id 14396190077 for ; Thu, 13 Dec 2007 10:52:32 +0000 (GMT) From: Roy Marples To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] How to pass list of paths to eclass? Date: Thu, 13 Dec 2007 10:52:29 +0000 User-Agent: KMail/1.9.7 References: <1197361032.10214.17.camel@camobap> <200712130941.31395.roy@marples.name> <1197541027.6128.33.camel@camobap> In-Reply-To: <1197541027.6128.33.camel@camobap> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200712131052.29635.roy@marples.name> X-Archives-Salt: e4e9451d-27b3-4521-bfda-ccc3e3439a45 X-Archives-Hash: 33e5f37836757e90cc743875c4a8def5 On Thursday 13 December 2007 10:17:07 Peter Volkov wrote: > =D0=92 =D0=A7=D1=82=D0=B2, 13/12/2007 =D0=B2 09:41 +0000, Roy Marples =D0= =BF=D0=B8=D1=88=D0=B5=D1=82: > > On Thursday 13 December 2007 09:18:45 Peter Volkov wrote: > > > use arrays. > > > > Why not use a function in pkg_setup as suggested earlier > > Because this is more code for the same functionality. Also if at one > point somebody decides to add eclass_pkg_setup function to eclass he/she > will have to touch all ebuild and put this function into pkg_setup > there. BTW. Speaking about font.eclass we already have font_pkg_setup > there. So correct code will be: > > pkg_setup() { > font_pkg_setup > append_font_conf "path1" "path2" > } > > instead of on line > > FONT_CONF=3D( "path1" "path2" ) You could do the append_font_conf in any function I think. So there's only= =20 more code if there are no functions already. Thanks Roy -- gentoo-dev@gentoo.org mailing list