Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 449500

Summary: python-r1.eclass - needs a function to retrieve a list of enabled python targets
Product: Gentoo Linux Reporter: Matthew Schultz <mattsch>
Component: EclassesAssignee: Michał Górny <mgorny>
Status: RESOLVED INVALID    
Severity: enhancement CC: hasufell, python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: python-r1.eclass.patch

Description Matthew Schultz 2012-12-31 18:41:29 UTC
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
Comment 1 Matthew Schultz 2012-12-31 18:44:37 UTC
Created attachment 333882 [details, diff]
python-r1.eclass.patch

Patch to add get use implementation function.
Comment 2 Matthew Schultz 2012-12-31 18:46:03 UTC
Also note that ruby-ng eclass has a similar function as well which I also use in an ebuild (bug 373227).
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-01 10:30:30 UTC
(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?
Comment 4 Matthew Schultz 2013-01-01 17:24:35 UTC
As it turns out, I was able to use python_foreach_impl after all.