The imlib2 configure tests for libungif first and if it does not find it, looks for giflib. Either one will do and the ebuild should reflect that rather than pointlessly forcing installation of both.
fixed in 1.2.0, thanks