Below are copied from /usr/portage/app-i18n/scim/scim-0.99.8.ebuild RDEPEND="virtual/x11 gnome? ( >=gnome-base/gconf-1.2 >=dev-libs/libxml2-2.5 >=gnome-base/orbit-2.8 ) >=x11-libs/gtk+-2 >=dev-libs/atk-1 >=x11-libs/pango-1 >=dev-libs/glib-2 !app-i18n/scim-cvs !<app-i18n/scim-chinese-0.4.0" DEPEND="${RDEPEND} dev-lang/perl" scim-lib can be installed/compiled without gtk stuffs, if the user only wants KDE user interface (given he installs skim afterwards, he can use scim-lib without any problems) So I think these four should be surrounded by gtk ? (...) >=x11-libs/gtk+-2 >=dev-libs/atk-1 >=x11-libs/pango-1 >=dev-libs/glib-2 Thanks Reproducible: Always Steps to Reproduce: 1. 2. 3.
It does depend on GTK+ stuff. Try `ldd /usr/lib/scim-1.0/scim-panel-gtk` and see gtk+2, atk, pango and glib are linked. If we cannot disable gtk stuff from scim-lib, we have to make scim-lib hard-depend on them. I made a patch to disable gtk2 features (gtk-utils) from scim (also added --disable-gtk2-immodule --disable-frontend-x11 --disable-setup-ui to configure flag), but skim won't run with the modified version of scim (it seems to need frontend-x11 and frontend-x11 requires scim-panel-gtk, which requires gtk). If you know how to disable gtk2 completely (i.e. disable gtk2 even if it is installed), I'm happy to fix the ebuild.
scim-lib 1.0.0 is just released A new configure parameter was introduced in this version: --disable-panel-gtk, and frontend-x11 does not depend on gtk-utils anymore so it is possible now to disable gtk stuffs completely: --disable-panel-gtk --disable-gtk2-immodule --disable-setup-ui Another concern: IMO most users who do not want gtk user interfaces (panel-gtk and setup-ui) may still use gtk2 based applications, so I think gtk2-immodule should be enabled if gtk2 is installed even if -gtk is present in USE (Just remove --disable-gtk2-immodule in the configure parameters, and the configure script will compile gtk2-immodule if gtk2 is detected).
Thanks for the headsup, I'll test and add it tonight. As for gtk2 immodules, if we build them scim will depend on gtk2, so there isn't any point changing DEPEND to not include gtk2. If I leave gtk2 immodules and just change gtk interface, I will not change DEPEND but pass '--disable-panel-gtk --disable-setup-ui' to configure script if USE="-gtk".
I know what you mean. But my point is that: if the user does not have gtk2 installed, then gtk2-immodule is useless to him, and we should not force him to install gtk2. What's your opinion?
Fixed in CVS. Thanks.