I tried to emerge dopewars using following use-flags: "-esd -gnome -gtk +gtk2 +ncurses +nls +sdl", and I could only use the ncurse interface, not the gtk2 one. Reemerging with gtk enabled allowed me to play with a gui. I couldn't play the game when compiling with only gtk2 or sdl enabled. Reproducible: Always Steps to Reproduce: 1. USE="-gtk gtk2" emerge dopewars 2. dopewars 3. Actual Results: you see a ncurses interface Expected Results: play with an gtk2 gui After looking at INSTALL of dopewars, I couldn't find anything related to sdl and gtk2, so maybe these USE-flags are just useless ?
USE="-gtk +gtk" means the following: Do not use optional GTK support, but when I have a choice, use GTK2. What you want is USE="+gtk +gtk2" which means: Enable optional gtk support and prefer gtk2 over gtk1.
I understand why that you mean, but if I do emerge -pv dopewars, it shows me that dopewars supports the gtk2 USE flag, but it doesn't have any effects when it's enabled or not. Shouldn't it be removed from the IUSE line in the ebuild ?
if use gtk ; then myservconf="--enable-gui-server `use_enable gtk2 glib2`" That says that if you have gtk in your USE, to --enable-gui-server and if you have gtk2 in your USE, to --enable-glib2, which in turns enables a gtk2 front-end. The ebuild is correct. The dopewars ebuild *does* support the gtk use flag and uses it correctly. You *must* have the gtk USE flag for the gtk2 USE flag to be effective, as in all other ebuilds that have optional GTK support.