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 1J2kcA-0003Ru-HA for garchives@archives.gentoo.org; Thu, 13 Dec 2007 09:44:23 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.2/8.14.0) with SMTP id lBD9hRQ3025844; Thu, 13 Dec 2007 09:43:27 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 lBD9fWHP023537 for ; Thu, 13 Dec 2007 09:41:33 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 8BA8C190077 for ; Thu, 13 Dec 2007 09:41: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 09:41:31 +0000 User-Agent: KMail/1.9.7 References: <1197361032.10214.17.camel@camobap> <1197537525.6128.10.camel@camobap> In-Reply-To: <1197537525.6128.10.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="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712130941.31395.roy@marples.name> X-Archives-Salt: 7432ff10-e2c7-4442-9fa5-c43a283dfa2a X-Archives-Hash: a4d140f261e7b8963839f47b02865e86 On Thursday 13 December 2007 09:18:45 Peter Volkov wrote: > 2. Modify ebuilds to use arrays. > > -FONT_CONF="path1 path2" > +FONT_CONF=( "path1" "path2" ) Why not use a function in pkg_setup as suggested earlier and pass each path component as $1, $2, etc. Then the ebuild itself doesn't actually care about the storage format of FONT_CONF, whether it's a bash array or a standard string using IFS. That gives you the luxury of changing it as you like without having to change any ebuilds later. pkg_setup() { append_font_conf "path1" "path2" } Thanks Roy -- gentoo-dev@gentoo.org mailing list