net-p2p/gift can use libmagic who is provided by sys-apps/file (and is part of the base system).
Created attachment 40417 [details, diff] gift-0.11.7-r1.patch Adds support to libmagic.
fixed in portage in 0.11.8, thanks :)