Patch follows.
Created attachment 134850 [details, diff] electric-gen2.patch Migrate the ebuild to generation 2 eclasses.
Fixed, thanks Petteri. Denis.