ebuild attached. Tested on x86.
Created attachment 76793 [details] mdadm-2.2.ebuild
i dont know why you cut everything that you did out of the ebuild, everything you removed needs to be there version bumped in cvs, thanks for the report