On 03/22/2016 09:34 PM, Jonathan Callen wrote: > > For future reference, this would be a bit more efficient: > > grep -r -l --include="*.ebuild" "EAPI=6" . > > This way, grep only looks at the files you want to search anyway. >
There's a chicken-and-egg problem with storing the EAPI in a variable within the ebuild whose EAPI you need to know to parse the ebuild that contains the EAPI variable whose value you need before you can parse the ebuild... It's a little silly, but the simplest workaround for that was to make the EAPI variable grepable. As a result, the actual regular expression that an EAPI declaration must match is in the PMS: https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-690007.3.1