I need a enable use target function in the python-r1 eclass for an ebuild I'm working on which may also be useful for other ebuilds. While the python_foreach_impl is useful for certain situations, I need more control over the loop than it provides. I will attach a patch. Reproducible: Always
Created attachment 333882 [details, diff] python-r1.eclass.patch Patch to add get use implementation function.
Also note that ruby-ng eclass has a similar function as well which I also use in an ebuild (bug 373227).
(In reply to comment #1) > Created attachment 333882 [details, diff] [details, diff] > python-r1.eclass.patch > > Patch to add get use implementation function. I don't get what this gives you. What is wrong with putting the conditional into the function you're calling?
As it turns out, I was able to use python_foreach_impl after all.