Created attachment 323346 [details, diff] add support as the subject says; perl-cleaner shouldn't require manual overriding to get it to use the indicated PM, should instead just use it if specified/known.
> Created attachment 323346 [details, diff] [details, diff] > add support Quoting from the patch: +PACKAGE_MANAGER=$(echo $(eselect package-manager show | tail -n1)) Hm, eselect package-manager wasn't supposed to be used like this, but the idea was that packages should take the PACKAGE_MANAGER variable from the environment (quite similar to EDITOR or PAGER). There's also no guarantee that app-admin/eselect-package-manager is installed or that the variable is set, so perl-cleaner should fall back to a sane default in these cases.
Created attachment 407256 [details, diff] Patch making perl-cleaner respect PACKAGE_MANAGER This patch makes it respect the env variable by reordering the code. It uses the fact that the variable used internally by perl-cleaner is the same as set in the environment. By moving the parsing of the variable out of the argument parsing it is executed every time and uses the environment variable if it is set. Command line overwrites and default is portage.
This is in just-uploaded perl-cleaner-2.23