we have fcaps.eclass now. no need to implement the logic in the ebuild itself.
Fixed in 1.6.13-r1 and 1.8.5-r1.