mxcl/homebrew — pull request #11445 by nichtverstehen (2012-04-04 15:45:30+00:00)
Title: Add formula for gtk-engines for gtk2.

Hi, gtk-engines package seems to be missing from Homebrew.

Gtk-engines package provides several commonly used GTK theme engines (clearlooks, glide, industrial, thinice, crux, hc, mist, redmond95) and theme resource files for popular themes (Clearlooks, Crux, Industrial, Mist, Redmond, ThinIce).

There is one issue though. GTK installed with brew is built with libdir pointing into the Cellar, so GTK looks for modules inside its own directory in the Cellar. There is no apparent way to configure it with alternative module search path. See [1] and [2]. The only way is to set GTK_PATH environment variable in run-time. This additional step is communicated to user as a "caveat". Any ideas how to make it more straightforward are welcome.

[1] http://git.gnome.org/browse/gtk+/tree/gtk/gtkmodules.c?h=gtk-2-24 (functions building modules_path)
[2] http://developer.gnome.org/gtk/2.24/gtk-running.html (GTK_PATH and GTK_EXE_PREFIX docs are of interest)