Running: TERMINFO=/foo emerge -v1 ncurses creates the terminfo database in /foo. It shouldn't. Eg. a user might have its own TERMINFO definitions.
Created attachment 74405 [details, diff] ebuild patch
done, thanks
Verified on amd64.