From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-pms+bounces-494-garchives=archives.gentoo.org@gentoo.org>)
	id 1SHe2m-0005h1-CT
	for garchives@archives.gentoo.org; Tue, 10 Apr 2012 16:35:48 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 21544E0B7F;
	Tue, 10 Apr 2012 16:35:40 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id DBA15E0B7F
	for <gentoo-pms@lists.gentoo.org>; Tue, 10 Apr 2012 16:35:39 +0000 (UTC)
Received: from [192.168.42.4] (staff-wireless.saddleback.edu [209.129.85.50])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	(Authenticated sender: zmedico)
	by smtp.gentoo.org (Postfix) with ESMTPSA id CA9661B4006
	for <gentoo-pms@lists.gentoo.org>; Tue, 10 Apr 2012 16:35:38 +0000 (UTC)
Message-ID: <4F846155.8020803@gentoo.org>
Date: Tue, 10 Apr 2012 09:35:33 -0700
From: Zac Medico <zmedico@gentoo.org>
User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:11.0) Gecko/20120404 Thunderbird/11.0.1
Precedence: bulk
List-Post: <mailto:gentoo-pms@lists.gentoo.org>
List-Help: <mailto:gentoo-pms+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-pms+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-pms+subscribe@lists.gentoo.org>
List-Id: Gentoo Package Manager Specification discussions <gentoo-pms.gentoo.org>
X-BeenThere: gentoo-pms@gentoo.org
X-BeenThere: gentoo-pms@lists.gentoo.org
Reply-To: gentoo-pms@lists.gentoo.org
MIME-Version: 1.0
To: gentoo-pms@lists.gentoo.org
Subject: Re: [gentoo-pms] EAPI specification in ebuilds
References: <20350.40416.730245.346082@a1i15.kph.uni-mainz.de> <CALc3eMUJF36fxXfp1f+MgTp1TC5GChv0Mj-FM11urqhctK1UFg@mail.gmail.com> <20351.24367.951995.770498@a1i15.kph.uni-mainz.de> <CALc3eMUY8H75B0_TFph=Th9wRQb=6VtgcnnT1u-J60JXxmQ=RA@mail.gmail.com> <20351.43524.730580.845660@a1i15.kph.uni-mainz.de> <20356.4391.807488.609689@a1i15.kph.uni-mainz.de> <4F84553B.4040104@gentoo.org> <20120410163044.GA1158@localhost>
In-Reply-To: <20120410163044.GA1158@localhost>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Archives-Salt: ec76b352-bdb1-4956-895b-92629260801f
X-Archives-Hash: ca1367403875d08b1b7660a820b227a5

On 04/10/2012 09:30 AM, Brian Harring wrote:
> On Tue, Apr 10, 2012 at 08:43:55AM -0700, Zac Medico wrote:
>> On 04/10/2012 03:53 AM, Ulrich Mueller wrote:
>>> +^[ \t]*EAPI=(['"]?)([A-Za-z0-9+_.-]*)\1[ \t]*(#.*)?$
>>
>> We could make the ([A-Za-z0-9+_.-]*) group "optional", but treat it as
>> an error if the group is missing. That way, the package manager can
>> detect invalid assignments earlier, and can skip sourcing the ebuild in
>> this case.
>
> Or disallow EAPI= .

My intention was to catch anything that starts with the ^[ \t]*EAPI= 
part. For my optional group thing to work, I guess you'd also have to 
add a (.*)? group to match whatever invalid characters may be there.
-- 
Thanks,
Zac