perl-module.eclass: Synchronise a lot of changes from ::gentoo