Support more Gentoo package managers

* Portage
* Paludis
* PkgCore

This pull request addresses #1778.

PS: I have no idea how to test this code. Any advice would be much appreciated.