There was a gentoo-linux-lib.pl missing for the net
Since I needed it badly I've written one (actually just
modified an existing a little).
I don't know if you want it or if maybe someone else has
already done this. Anyway I've attached it.
I've marked the modified parts with [Gentoo] if someone
wants to have a look at it.