None of the giflib ebuilds in the tree support modular X deps yet.
post a patch then
http://dev.gentoo.org/~spyderous/xorg-x11/porting_to_modular_x_howto.txt should help.
First time I use the scripts so I'm not sure I'm doing it right. linking_libs.sh finds: x11-libs/libICE-0.99.0 x11-libs/libX11-0.99.2 x11-libs/libSM-0.99.1-r1 included_headers.sh finds: x11-libs/libXt-0.99.1 x11-libs/libX11-0.99.2 so DEPEND="|| ( ( x11-libs/libXt x11-libs/libX11 x11-libs/libICE x11-libs/libSM ) virtual/x11 )" RDEPEND="|| ( ( x11-libs/libICE x11-libs/libX11 x11-libs/libSM ) virtual/x11 )"
There's an ebuild in Gentopia that cleans up the depends in addition to adds Modular X depends.
*** Bug 112052 has been marked as a duplicate of this bug. ***
*** Bug 112053 has been marked as a duplicate of this bug. ***
Created attachment 72564 [details] patched ebuild works fine here
Comment on attachment 72564 [details] patched ebuild giflib doesnt use anything from libXft
fixed in cvs