I discovered after a bit of hacking, that File::HomeDir has very different behaviour in the presence of the script 'xdg-user-dir', provided by x11-misc/xdg-user-dirs This makes a rather critical logic change, here: https://metacpan.org/source/ADAMK/File-HomeDir-1.00/lib/File/HomeDir.pm#L74 And this basically means the presence of that one script radically changes from generic Unix filesystem layout semantics, to FreeDesktop file system semantics. Under FreeDesktop style semantics, paths for various things consult XDG controlled variables, and respect XDG specific ENV flags: https://metacpan.org/source/ADAMK/File-HomeDir-1.00/lib/File/HomeDir/FreeDesktop.pm Under Unix style semantics, $HOME and $LOGDIR are the ONLY ENV variables that have any impact: https://metacpan.org/source/ADAMK/File-HomeDir-1.00/lib/File/HomeDir/Unix.pm Given that people running Gentoo Linux are running a "FreeDesktop" platform, I consider it an error that File::HomeDir uses Unix instead of FreeDesktop semantics. So, I suggest: IUSE="+xdg" RDEPEND=" ... xdg? ( x11-misc/xdg-user-dirs ) " and use.description = "Ensure XDG Semantics for returned paths via x11-misc/xdg-user-dirs" Or something like that. I'm tempted to suggest a block on that too if the user USE="-xdg", because there's otherwise going to be magical action happening if they don't want xdg semantics, because that package being installed will magically turn them on, despite the USE Alternatively, the conditional could be patched to always fallback to Unix w/ USE="-xdg".
+*File-HomeDir-1.0.0-r1 (22 Dec 2013) + + 22 Dec 2013; Mikle Kolyada <zlogene@gentoo.org> +File-HomeDir-1.0.0-r1.ebuild, + metadata.xml: + Revision bump: EAPI=5; Implement new 'xdg' use flag wrt bug #486938. Thanks to + Kent Fredric for discovering this issue. +