From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23385 invoked from network); 1 Sep 2004 11:08:15 +0000 Received: from smtp.gentoo.org (156.56.111.197) by lists.gentoo.org with AES256-SHA encrypted SMTP; 1 Sep 2004 11:08:15 +0000 Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.34) id 1C2SyM-0002CG-T3 for arch-gentoo-dev@lists.gentoo.org; Wed, 01 Sep 2004 11:08:14 +0000 Received: (qmail 26517 invoked by uid 89); 1 Sep 2004 11:08:14 +0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 1012 invoked from network); 1 Sep 2004 11:08:14 +0000 Message-ID: <4135AD9B.8090109@ifm.liu.se> Date: Wed, 01 Sep 2004 13:08:11 +0200 From: Anton Starikov Reply-To: gentoo-dev@lists.gentoo.org User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040824) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org References: <4134FB0B.9060501@ifm.liu.se> <200408311928.19670.vapier@gentoo.org> <200408312305.54733.ribosome@gentoo.org> In-Reply-To: <200408312305.54733.ribosome@gentoo.org> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-eltn-site-MailScanner-Information: Please contact the administrator, tel. 2826, for more information X-eltn-site-MailScanner: Found to be clean Subject: Re: [gentoo-dev] per-package environment variables. X-Archives-Salt: 855b4b64-34a7-4dbd-8cfa-11928ba48353 X-Archives-Hash: ee9dbec02cd63f4725df11701d33e01d Olivier Fisette wrote: > A file named "/etc/portage/package.env" could contain entries such as: > > app-office/openoffice lang_ru > >>=app-sci/emboss-2.8.0 icc > > =app-sci/pymol-0.95* gcc_low_opt Agree, support for version is also important, as for group, because we have some packages with the name but in dfifferent groups. > If we wanted to make things even easier to configure, we could have something > like the following in "/etc/portage/package.env": > > =app-sci/pymol-0.95* [ CC="gcc" CFLAGS="-O1" ] > > ... were a keyword is replaced by a delimited short bash script that would be > sourced to provide per package env vars. This would avoid having to create > files in "/etc/portage/env.d" which target only one package. Anyway, if we going to include both, files and inlined vars, we have to have a bit complicated parser of lines. In such case we even don't need [], we can leave as =app-sci/pymol-0.95* gcc_low_opt CC="gcc" "=" specify enough that we have inlined expression. -- Anton Starikov -- gentoo-dev@gentoo.org mailing list