1) ruby_emake() should use tc-getCC and tc-getCXX from toolchain-funcs.eclass rather than $CC/$CXX. 2) in erubydoc(), the option in the command "rmdir --ignore-fail-on-non-empty" is a GNU extension and will fail on systems with a non-GNU userland. Please try to use POSIX options (IEEE 1003.2) when it comes to coreutils stuff. If it's not possible, then a case statement switching on $USERLAND will be necessary. In this case, maybe appending 2>/dev/null would suffice?
Thanks, both fixed in CVS.