Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-gaming-r3) app-doc/selfhtml-8.0-r1 fails to emerge in first run without a previous version installed. portage will report it installed correctly but it complains: <snip> >>> Install selfhtml-8.0-r1 into /var/tmp/portage/selfhtml-8.0-r1/image/ category app-doc cp: `/usr/share/doc/selfhtml-8.0-r1/html': specified destination directory does not exist Try `cp --help' for more information. </snip> `/usr/share/doc/selfhtml-8.0-r1/html' is created during the merge, but no files are copied to it. a remerge installs all the files correctly. unmerging removes the package from the installed ebuilds but does not actually delete any files.
I can't reproduce the problem. It installs and deinstalls fine on my system. Maybe I changed the code in the meantime...