[gentoo-user] Re: EAPI-6 dev-python ebuilds

2016-03-24 Thread Martin Vaeth
James  wrote:
>
> works for a specific file, but I want to parse the entire /dev-python
> portion of the portage tree. Is there a more robust tool?

eix -c --eapi 6 --and -C dev-python




[gentoo-user] Re: EAPI-6 dev-python ebuilds

2016-03-23 Thread James
Michael Orlitzky  gentoo.org> writes:


> > grep -r -l --include="*.ebuild" "EAPI=6" .

> 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...

Ah, explains my early am fumbling around with the searches

> 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

I'm going to marinate on this a bit, so any and all input and comment are
good.  Eventually, I'll write something up for the q-applets, in C. That
ought to be fun, I just hope my code does not get 'vaperized'..


;-) 
James









Re: [gentoo-user] Re: EAPI-6 dev-python ebuilds

2016-03-23 Thread Michael Orlitzky
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



[gentoo-user] Re: EAPI-6 dev-python ebuilds

2016-03-22 Thread Jonathan Callen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

On 03/21/2016 01:31 PM, James wrote:
> David M. Fellows  unb.ca> writes:
> 
> 
>> grep -r -l "EAPI=5" * |grep 'ebuild$'
> 
> grep -r -l "EAPI=6" * |grep 'ebuild$'
> 
> 
> yep, it works just fine. sorry for being a bit brain-dead this
> am...
> 
> 
> thx, James
> 

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.

- -- 
Jonathan Callen

-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBCgAGBQJW8fKGAAoJEEIQbvYRB3mgD0QP/0bfBiRldtoZRWQTxuolVnIF
eF0EIxGzY2DAqcg8W/YHEoa0Wk5ohRJw6efISi463ZDAixRwy7lAqS1fsxc+JVJj
4AzKE/j+RNzO1F41PmXXMe2iaRQwm2cz1HNguok44whpUrm7ouj1y9iB0jbChi99
2i64EmsicySes4sh3KBtcqTz8x0rKtOI2cVtz13guDQlbQ8CFQFfNz5bJphvxJWw
/gVT6W4Rpx/eHyJhizWqjqVpPSnd3UuAz2aO3GwTmx6eLCzHMjgZ+yTzU/KTDwQd
GVvFPf8eDWFyes67V2NvBJlDvYJWZrb0izv28gi3CanGmty5TMWka0V4e/1mHfNt
Ga7sCG8xbM2cCYHeMtrjG2ny/Swjhy1jvqZKG7ENOFI41/clVIcV17xcb79YZZhn
4e6PEYTleX61iNdiFFJ3+qkKjP8SxL2IeGLpLzN+iBj0coqkpLkjmC9KKvKcXWqs
M6fL9IoNTI7kVpSc5PFpbtcpXmG1ZGtbLM2hQpaER2a8WIux+NxJWRp517cisP0Q
5rwjnbImdtZEBqbld6GZlxVOKTLISQDI1YNrpIiex7rUzxO03wFPBADGdZ9yql3X
fbMLGmStCVeK1QAa0WvxGOmcwP5BL0qEQAauMz7jOpsmHkEiF20WMjYiIXo8qUWm
VtBDE7xbF7V/sN+trt9e
=S5hB
-END PGP SIGNATURE-



[gentoo-user] Re: EAPI-6 dev-python ebuilds

2016-03-21 Thread James
David M. Fellows  unb.ca> writes:


> grep -r -l "EAPI=5" * |grep 'ebuild$'

grep -r -l "EAPI=6" * |grep 'ebuild$'


yep, it works just fine. sorry for being a bit brain-dead
this am...


thx,
James