--- /usr/portage/x11-libs/wxGTK/wxGTK-2.6.2.ebuild 2005-10-15 16:35:44.000000000 -0300 +++ x11-libs/wxGTK/wxGTK-2.6.2-r1.ebuild 2005-11-20 13:38:22.000000000 -0200 @@ -12,9 +12,9 @@ IUSE="gnome joystick odbc opengl sdl X" RDEPEND="${RDEPEND} opengl? ( virtual/opengl ) - >=x11-libs/gtk+-2.0 - >=dev-libs/glib-2.0 - media-libs/tiff + X? ( >=x11-libs/gtk+-2.0 + >=dev-libs/glib-2.0 + media-libs/tiff ) odbc? ( dev-db/unixODBC ) !mips? ( !arm? ( !hppa? ( !ia64? ( !ppc64? ( !alpha? ( !sparc? ( sdl? ( media-libs/sdl-sound ) ) ) ) ) ) ) )" @@ -30,17 +30,20 @@ src_compile() { gnuconfig_update myconf="${myconf} - --with-png - --with-jpeg - --with-tiff - $(use_enable opengl) - $(use_with opengl) - $(use_with gnome gnomeprint) - $(use_with sdl) - $(use_enable joystick)" + $(use_with sdl)" + if use X; then + myconf="${myconf} + --with-png + --with-jpeg + --with-tiff + $(use_enable opengl) + $(use_with opengl) + $(use_with gnome gnomeprint) + $(use_enable joystick)" + fi use X && configure_build gtk2 unicode "${myconf} --with-gtk=2" - use X || configure_build base unicode "--disable-gui" + use X || configure_build base unicode "${myconf} --disable-gui" } src_install() {